|
26 | 26 | }, |
27 | 27 | "scripts": { |
28 | 28 | "build": "yarn tsc --clean && yarn tsc", |
29 | | - "postbuild": "yarn workspace codemirror-graphql run postbuild", |
30 | | - "build-ts": "yarn run tsc --force", |
31 | | - "build-ts-cjs": "yarn run tsc resources/tsconfig.build.cjs.json", |
32 | | - "build-ts-esm": "yarn run tsc resources/tsconfig.build.esm.json", |
33 | | - "build-clean": "rimraf '{packages,examples}/**/{dist,esm}' && yarn workspace graphiql run build-clean && yarn workspace codemirror-graphql run build-clean", |
34 | | - "build-validate": "yarn workspaces run build-validate", |
35 | | - "build-demo": "yarn workspaces run build-demo", |
36 | | - "build-docs": "rimraf 'packages/graphiql/typedoc' && typedoc 'packages'", |
37 | 29 | "build-bundles": "yarn prebuild-bundles && yarn workspace graphiql run build-bundles", |
38 | | - "prebuild-bundles": "yarn build-ts-esm && yarn build-bundles-clean", |
39 | 30 | "build-bundles-clean": "rimraf '{packages,examples,plugins}/**/{bundle,cdn,webpack}' && yarn workspace graphiql run build-bundles-clean", |
40 | | - "tsc": "tsc --build", |
41 | | - "test": "yarn jest", |
42 | | - "jest": "jest", |
43 | | - "test-all": "yarn test --coverage", |
44 | | - "ci": "yarn lint && yarn run check && yarn build && yarn test-all", |
45 | | - "ci-e2e": "yarn build && yarn build-ts-esm && yarn workspace graphiql run build-bundles-min && yarn run e2e", |
46 | | - "ci-validate": "yarn build-ts-esm && yarn build-validate", |
47 | | - "testonly": "jest && yarn workspace codemirror-graphql run test", |
48 | | - "e2e": "yarn workspace graphiql e2e", |
| 31 | + "build-clean": "ws-run build-clean", |
| 32 | + "build-demo": "yarn workspaces run build-demo", |
| 33 | + "build-docs": "rimraf 'packages/graphiql/typedoc' && typedoc 'packages'", |
| 34 | + "build:clean": "yarn tsc --clean", |
| 35 | + "build:watch": "yarn tsc --watch", |
| 36 | + "check": "flow check --show-all-errors && yarn tsc --dry", |
49 | 37 | "cypress-open": "yarn workspace graphiql cypress-open", |
50 | | - "t": "yarn run testonly", |
| 38 | + "dev-graphiql": "yarn workspace graphiql dev", |
| 39 | + "e2e": "yarn run e2e:build && yarn workspace graphiql e2e", |
| 40 | + "e2e:build": "yarn build && yarn workspace graphiql run build-bundles-min", |
51 | 41 | "eslint": "eslint --ext=ts,js,jsx,tsx .", |
| 42 | + "format": "yarn eslint --fix && yarn pretty", |
| 43 | + "jest": "jest", |
| 44 | + "license-check": "jsgl --local ./", |
52 | 45 | "lint": "yarn eslint && yarn lint-check && yarn pretty-check", |
53 | | - "lint-fix": "yarn eslint --fix", |
54 | 46 | "lint-check": "eslint --print-config .eslintrc.js | eslint-config-prettier-check", |
55 | | - "check": "flow check --show-all-errors && yarn tsc --dry", |
| 47 | + "lint-fix": "yarn eslint --fix", |
| 48 | + "postbuild": "yarn workspace codemirror-graphql run postbuild", |
| 49 | + "postpublish": "ts-node ./resources/publishCleanup.ts", |
| 50 | + "prebuild-bundles": "yarn build && yarn build-bundles-clean", |
| 51 | + "prepublishOnly": "./resources/prepublish.sh", |
56 | 52 | "pretty": "node resources/pretty.js", |
57 | 53 | "pretty-check": "node resources/pretty.js --check", |
58 | | - "format": "yarn eslint --fix && yarn pretty", |
59 | | - "prepublishOnly": "./resources/prepublish.sh", |
60 | | - "postpublish": "ts-node ./resources/publishCleanup.ts", |
61 | 54 | "release": "yarn build && yarn build-bundles && yarn changeset publish", |
62 | | - "watch": "yarn tsc --watch", |
63 | | - "start-graphiql": "yarn workspace graphiql dev", |
64 | | - "start-monaco": "yarn workspace example-monaco-graphql-webpack start" |
| 55 | + "start-graphiql": "yarn build:clean && npm-run-all -l -p build dev-graphiql", |
| 56 | + "start-monaco": "yarn workspace example-monaco-graphql-webpack start", |
| 57 | + "t": "yarn run testonly", |
| 58 | + "test": "yarn jest", |
| 59 | + "test:coverage": "yarn jest --coverage", |
| 60 | + "test:watch": "yarn jest --watch", |
| 61 | + "testonly": "jest && yarn workspace codemirror-graphql run test", |
| 62 | + "tsc": "tsc --build" |
65 | 63 | }, |
66 | 64 | "devDependencies": { |
67 | 65 | "@babel/cli": "^7.8.4", |
|
115 | 113 | "jest": "^25.3.0", |
116 | 114 | "jest-environment-jsdom": "^25.3.0", |
117 | 115 | "jest-environment-jsdom-global": "^2.0.2", |
| 116 | + "js-green-licenses": "3.0.0", |
118 | 117 | "jsdom": "^16.4.0", |
119 | 118 | "lint-staged": "^10.1.2", |
120 | 119 | "mkdirp": "^1.0.4", |
| 120 | + "npm-run-all": "^4.1.5", |
121 | 121 | "prettier": "^2.0.4", |
122 | 122 | "rimraf": "^3.0.2", |
123 | 123 | "serverless-http": "^2.7.0", |
124 | 124 | "ts-jest": "^25.3.1", |
125 | 125 | "typedoc": "^0.19.2", |
126 | 126 | "typescript": "^4.1.3", |
127 | | - "whatwg-url": "^8.4.0" |
128 | | - } |
| 127 | + "whatwg-url": "^8.4.0", |
| 128 | + "wsrun": "^5.2.4" |
| 129 | + }, |
| 130 | + "packageAllowlist": [ |
| 131 | + "package-with-no-license", |
| 132 | + "package-with-okish-license" |
| 133 | + ] |
129 | 134 | } |
0 commit comments