|
10 | 10 | "eslint --fix", |
11 | 11 | "prettier --write" |
12 | 12 | ], |
13 | | - "*.{md,html,json,toml}": [ |
| 13 | + "*.{md,html,json}": [ |
14 | 14 | "prettier --write" |
15 | 15 | ] |
16 | 16 | }, |
|
21 | 21 | } |
22 | 22 | }, |
23 | 23 | "scripts": { |
24 | | - "build": "yarn run build-clean && yarn build-ts-cjs && yarn build-js", |
25 | | - "build-js": "lerna run build --scope codemirror-graphql", |
26 | | - "build-ts-cjs": "yarn run tsc resources/tsconfig.build.cjs.json", |
27 | | - "build-ts-esm": "yarn run tsc resources/tsconfig.build.esm.json", |
28 | | - "build-clean": "yarn run tsc --clean && rimraf '{packages,examples}/**/{dist,esm,bundle,cdn,webpack,storybook}' && lerna run build-clean --parallel", |
| 24 | + "build": "yarn run build-clean && yarn build-ts-cjs && yarn build-babel", |
| 25 | + "build-babel": "lerna run build --scope codemirror-graphql", |
| 26 | + "build-ts": "yarn run tsc --clean && yarn run tsc", |
| 27 | + "build-ts-cjs": "yarn run tsc resources/tsconfig.build.cjs.json --clean && yarn run tsc resources/tsconfig.build.cjs.json", |
| 28 | + "build-ts-esm": "yarn run tsc resources/tsconfig.build.esm.json --clean && yarn run tsc resources/tsconfig.build.esm.json", |
| 29 | + "build-clean": "yarn run tsc --clean && rimraf '{packages,examples}/**/{dist,esm}' && lerna run build-clean", |
29 | 30 | "build-validate": "lerna run build-validate", |
30 | 31 | "build-demo": "lerna run build-demo", |
31 | 32 | "build-docs": "rimraf 'packages/graphiql/lsp' && typedoc 'packages'", |
32 | | - "build-bundles": "yarn build-ts-esm && lerna run build-bundles", |
| 33 | + "build-bundles": "yarn prebuild-bundles && yarn workspace graphiql run build-bundles", |
| 34 | + "prebuild-bundles": "yarn build-ts-esm && yarn build-bundles-clean", |
| 35 | + "build-bundles-clean": "rimraf '{packages,examples}/**/{bundle,cdn,webpack}' && lerna run build-bundles-clean", |
33 | 36 | "tsc": "tsc --build", |
34 | | - "test": "yarn build && yarn run testonly", |
35 | | - "ci": "yarn run lint && yarn run check && yarn run build && yarn run testonly && yarn build-bundles && yarn run e2e && yarn build-validate", |
| 37 | + "test": "jest", |
| 38 | + "test-mocha": "yarn workspace codemirror-graphql run test", |
| 39 | + "test-all": "yarn test && yarn test-mocha", |
| 40 | + "ci": "yarn lint && yarn run check && yarn test && yarn build && yarn test-mocha && yarn build-bundles && yarn e2e && yarn build-validate", |
36 | 41 | "testonly": "jest && yarn workspace codemirror-graphql run test", |
37 | 42 | "e2e": "yarn workspace graphiql e2e", |
38 | 43 | "cypress-open": "yarn workspace graphiql cypress-open", |
|
45 | 50 | "pretty": "node resources/pretty.js", |
46 | 51 | "pretty-check": "node resources/pretty.js --check", |
47 | 52 | "format": "yarn eslint --fix && yarn pretty", |
48 | | - "lerna-publish": "lerna publish" |
| 53 | + "lerna-publish": "lerna publish", |
| 54 | + "prepublish": "yarn lint && yarn build && yarn build-bundles && yarn test-all && yarn e2e" |
49 | 55 | }, |
50 | 56 | "devDependencies": { |
51 | 57 | "@babel/cli": "7.7.7", |
|
0 commit comments