Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Add runtimes to all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
BPScott committed Apr 9, 2021
1 parent 38988b0 commit 002b799
Show file tree
Hide file tree
Showing 78 changed files with 148 additions and 70 deletions.
3 changes: 2 additions & 1 deletion packages/address-consts/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/address-mocks/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/address/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/admin-graphql-api-utilities/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/ast-utilities/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.entry({name: 'javascript', root: './src/javascript'});
pkg.entry({name: 'markdown', root: './src/markdown'});
Expand Down
3 changes: 2 additions & 1 deletion packages/async/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.entry({name: 'babel', root: './src/babel-plugin'});
pkg.use(quiltPackage());
Expand Down
3 changes: 2 additions & 1 deletion packages/browser/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/csrf-token-fetcher/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/css-utilities/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/dates/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/decorators/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/enzyme-utilities/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage({useReact: true}));
});
3 changes: 2 additions & 1 deletion packages/function-enhancers/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
1 change: 1 addition & 0 deletions packages/graphql-config-utilities/sewing-kit.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {createPackage, Runtime} from '@sewing-kit/config';
import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
1 change: 1 addition & 0 deletions packages/graphql-fixtures/sewing-kit.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {createPackage, Runtime} from '@sewing-kit/config';
import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
1 change: 1 addition & 0 deletions packages/graphql-mini-transforms/sewing-kit.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {createPackage, Runtime} from '@sewing-kit/config';
import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.entry({name: 'jest', root: './src/jest'});
pkg.entry({name: 'jest-simple', root: './src/jest-simple'});
Expand Down
3 changes: 2 additions & 1 deletion packages/graphql-persisted/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({name: 'koa', root: './src/koa-middleware'});
pkg.entry({name: 'apollo', root: './src/apollo'});
pkg.use(quiltPackage());
Expand Down
3 changes: 2 additions & 1 deletion packages/graphql-testing/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.entry({name: 'matchers', root: './src/matchers'});
pkg.use(quiltPackage());
Expand Down
1 change: 1 addition & 0 deletions packages/graphql-tool-utilities/sewing-kit.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {createPackage, Runtime} from '@sewing-kit/config';
import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
1 change: 1 addition & 0 deletions packages/graphql-typed/sewing-kit.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {createPackage, Runtime} from '@sewing-kit/config';
import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {createPackage, Runtime} from '@sewing-kit/config';
import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.binary({name: 'graphql-typescript-definitions', root: './src/cli'});
pkg.use(quiltPackage());
Expand Down
1 change: 1 addition & 0 deletions packages/graphql-validate-fixtures/sewing-kit.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {createPackage, Runtime} from '@sewing-kit/config';
import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.binary({name: 'graphql-validate-fixtures', root: './src/cli'});
pkg.use(quiltPackage());
Expand Down
3 changes: 2 additions & 1 deletion packages/i18n/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/jest-dom-mocks/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/jest-koa-mocks/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/jest-mock-apollo/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage({useReact: true}));
});
3 changes: 2 additions & 1 deletion packages/jest-mock-router/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage({useReact: true}));
});
3 changes: 2 additions & 1 deletion packages/koa-liveness-ping/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/koa-metrics/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/koa-performance/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/koa-shopify-graphql-proxy/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/koa-shopify-webhooks/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/logger/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/magic-entries-webpack-plugin/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/mime-types/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/network/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/performance/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
3 changes: 2 additions & 1 deletion packages/polyfills/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});

pkg.entry({name: 'base', root: './src/base'});
Expand Down
Loading

0 comments on commit 002b799

Please sign in to comment.