Skip to content

Commit

Permalink
fix: a few more tweaks to babel ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Dec 9, 2019
1 parent 3b1c2c1 commit e0ad2c6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"build-bundles": "lerna run build-bundles",
"test": "yarn run lint && yarn run check && yarn run build && yarn run testonly && yarn build-bundles && yarn run e2e && yarn build-demo",
"testonly": "jest && lerna run test --scope codemirror-graphql",
"e2e": "cd packages/graphiql && yarn e2e",
"e2e": "yarn workspace graphiql e2e",
"cypress-open": "yarn workspace graphiql cypress-open",
"t": "yarn run testonly",
"lint": "eslint --ext=ts,js,jsx,tsx . || (printf '\\033[33mTry: \\033[7m yarn format \\033[0m\\n' && exit 1)",
Expand Down
7 changes: 3 additions & 4 deletions packages/codemirror-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
"mode.js",
"mode.js.flow",
"utils",
"variables",
"results"
"variables"
],
"options": {
"mocha": "--full-trace --require resources/mochaBootload src/*/__tests__/*-test.js",
Expand All @@ -41,8 +40,8 @@
"lint": "eslint src",
"check": "flow check",
"build": "yarn build-clean && yarn build-js && yarn build-esm && yarn build-flow .",
"build-js": "babel src --root-mode upward --ignore src/__tests__ --out-dir . && babel src --root-mode upward --ignore src/__tests__ --out-dir esm && node ../../resources/renameFileExtensions.js './esm/**/*.js' . .esm.js",
"build-esm": "cross-env ESM=true babel src --root-mode upward --ignore src/__tests__ --out-dir esm",
"build-js": "babel src --root-mode upward --ignore **/__tests__/**,**/__mocks__/** --out-dir .",
"build-esm": "cross-env ESM=true babel src --root-mode upward --ignore **/__tests__/**,**/__mocks__/** --out-dir esm && node ../../resources/renameFileExtensions.js './esm/{**,!**/__tests__/}/*.js' . .esm.js",
"build-clean": "rimraf {mode,hint,info,jump,lint}.{js,esm.js,js.flow} && rimraf esm results utils variables coverage __tests__",
"build-flow": "node ../../resources/buildFlow.js",
"watch": "babel --optional runtime resources/watch.js | node",
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-language-service-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"test": "node ../../resources/runTests.js",
"build": "yarn build-js && yarn build-esm && yarn build-flow",
"build-js": "node ../../resources/buildJs.js",
"build-esm": "cross-env ESM=true babel src --root-mode upward --ignore __tests__ --out-dir esm",
"build-esm": "cross-env ESM=true babel src --root-mode upward --ignore **/__tests__/**,**/__mocks__/** --out-dir esm",
"build-flow": "node ../../resources/buildFlow.js"
},
"peerDependencies": {
Expand Down
6 changes: 1 addition & 5 deletions resources/buildJs.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ const commands = [
'babel',
'src',
'--ignore',
'**/__tests__/**',
'--ignore',
'**/*.spec.*',
'--ignore',
'**/*-test.*',
'**/__tests__/**,**/__mocks__/**,**/*.spec.*,**/*-test.*',
'--out-dir',
'dist',
'--root-mode',
Expand Down

0 comments on commit e0ad2c6

Please sign in to comment.