Skip to content

Commit e0ad2c6

Browse files
committed
fix: a few more tweaks to babel ignore
1 parent 3b1c2c1 commit e0ad2c6

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"build-bundles": "lerna run build-bundles",
2121
"test": "yarn run lint && yarn run check && yarn run build && yarn run testonly && yarn build-bundles && yarn run e2e && yarn build-demo",
2222
"testonly": "jest && lerna run test --scope codemirror-graphql",
23-
"e2e": "cd packages/graphiql && yarn e2e",
23+
"e2e": "yarn workspace graphiql e2e",
2424
"cypress-open": "yarn workspace graphiql cypress-open",
2525
"t": "yarn run testonly",
2626
"lint": "eslint --ext=ts,js,jsx,tsx . || (printf '\\033[33mTry: \\033[7m yarn format \\033[0m\\n' && exit 1)",

packages/codemirror-graphql/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030
"mode.js",
3131
"mode.js.flow",
3232
"utils",
33-
"variables",
34-
"results"
33+
"variables"
3534
],
3635
"options": {
3736
"mocha": "--full-trace --require resources/mochaBootload src/*/__tests__/*-test.js",
@@ -41,8 +40,8 @@
4140
"lint": "eslint src",
4241
"check": "flow check",
4342
"build": "yarn build-clean && yarn build-js && yarn build-esm && yarn build-flow .",
44-
"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",
45-
"build-esm": "cross-env ESM=true babel src --root-mode upward --ignore src/__tests__ --out-dir esm",
43+
"build-js": "babel src --root-mode upward --ignore **/__tests__/**,**/__mocks__/** --out-dir .",
44+
"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",
4645
"build-clean": "rimraf {mode,hint,info,jump,lint}.{js,esm.js,js.flow} && rimraf esm results utils variables coverage __tests__",
4746
"build-flow": "node ../../resources/buildFlow.js",
4847
"watch": "babel --optional runtime resources/watch.js | node",

packages/graphql-language-service-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"test": "node ../../resources/runTests.js",
2828
"build": "yarn build-js && yarn build-esm && yarn build-flow",
2929
"build-js": "node ../../resources/buildJs.js",
30-
"build-esm": "cross-env ESM=true babel src --root-mode upward --ignore __tests__ --out-dir esm",
30+
"build-esm": "cross-env ESM=true babel src --root-mode upward --ignore **/__tests__/**,**/__mocks__/** --out-dir esm",
3131
"build-flow": "node ../../resources/buildFlow.js"
3232
},
3333
"peerDependencies": {

resources/buildJs.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ const commands = [
1414
'babel',
1515
'src',
1616
'--ignore',
17-
'**/__tests__/**',
18-
'--ignore',
19-
'**/*.spec.*',
20-
'--ignore',
21-
'**/*-test.*',
17+
'**/__tests__/**,**/__mocks__/**,**/*.spec.*,**/*-test.*',
2218
'--out-dir',
2319
'dist',
2420
'--root-mode',

0 commit comments

Comments
 (0)