Skip to content

Commit

Permalink
fix: add batching/*.js to parent eslintignore
Browse files Browse the repository at this point in the history
This also adds a prefix / to the babel ignore flag, because the build
was still transforming and outputting files from __tests__ directories.
  • Loading branch information
copperwall committed Apr 4, 2020
1 parent 8afca9a commit c704999
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ packages/*/*.js
packages/gatsby-plugin-preload-fonts/prepare/*.js
packages/gatsby-image/withIEPolyfill/index.js
packages/gatsby/cache-dir/commonjs/**/*
packages/gatsby-source-graphql/batching/*.js
4 changes: 2 additions & 2 deletions packages/gatsby-source-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
"directory": "packages/gatsby-source-graphql"
},
"scripts": {
"build": "babel src --out-dir . --ignore **/__tests__ --extensions \".ts,.js\"",
"build": "babel src --out-dir . --ignore /**/__tests__ --extensions \".ts,.js\"",
"prepare": "cross-env NODE_ENV=production npm run build",
"watch": "babel -w src --out-dir . --ignore **/__tests__ --extensions \".ts,.js\""
"watch": "babel -w src --out-dir . --ignore /**/__tests__ --extensions \".ts,.js\""
},
"engines": {
"node": ">=10.13.0"
Expand Down
9 changes: 9 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1580,6 +1580,15 @@
"@babel/helper-plugin-utils" "^7.8.3"
"@babel/plugin-syntax-typescript" "^7.8.3"

"@babel/plugin-transform-typescript@^7.9.4":
version "7.9.4"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.9.4.tgz#4bb4dde4f10bbf2d787fce9707fb09b483e33359"
integrity sha512-yeWeUkKx2auDbSxRe8MusAG+n4m9BFY/v+lPjmQDgOFX5qnySkUY5oXzkp6FwPdsYqnKay6lorXYdC0n3bZO7w==
dependencies:
"@babel/helper-create-class-features-plugin" "^7.8.3"
"@babel/helper-plugin-utils" "^7.8.3"
"@babel/plugin-syntax-typescript" "^7.8.3"

"@babel/plugin-transform-unicode-regex@^7.4.4":
version "7.4.4"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.4.4.tgz#ab4634bb4f14d36728bf5978322b35587787970f"
Expand Down

0 comments on commit c704999

Please sign in to comment.