Skip to content

Commit

Permalink
fix: specify babel ignore files in cli only
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlkoch committed Dec 7, 2022
1 parent bb64078 commit b0da51f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
4 changes: 0 additions & 4 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,5 @@ module.exports = {
],
'@babel/preset-typescript',
'@babel/preset-react'
],
ignore: [
/\.spec\.(j|t)s?(x)/,
/\.spec\.d\.(j|t)s?(x)/
]
};
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@
"dist"
],
"scripts": {
"build:declaration": "tsc --emitDeclarationOnly",
"build": "webpack --config webpack.prod.js",
"build:dist": "npm run clean:dist && BABEL_ENV=production babel src --out-dir dist --copy-files --no-copy-ignored --extensions '.ts,.tsx' --source-maps && npm run build:declaration",
"clean:dist": "rimraf ./dist/*",
"build:analyze": "BUNDLE_ANALYZE=true npm run build",
"build:babel": "BABEL_ENV=production babel src --out-dir dist --copy-files --no-copy-ignored --ignore 'src/**/*.spec.tsx' --ignore 'src/**/*.spec.js' --extensions '.ts,.tsx' --source-maps",
"build:declaration": "tsc --emitDeclarationOnly",
"build:dist": "npm run clean:dist && npm run build:babel && npm run build:declaration",
"check": "npm run typecheck && npm run lint && npm run test && npm run test:ui",
"clean:dist": "rimraf ./dist/*",
"husky": "husky install",
"lint": "eslint -c .eslintrc.js --ext .ts,.tsx src/",
"prepare": "npm run husky",
Expand Down Expand Up @@ -124,10 +125,6 @@
"publishConfig": {
"access": "public"
},
"devEngines": {
"node": ">=14",
"npm": ">=7"
},
"@casualbot/jest-sonar-reporter": {
"suiteName": "jest tests",
"outputDirectory": "coverage",
Expand All @@ -138,5 +135,9 @@
"ancestorSeparator": "",
"usePathForSuiteName": "true",
"relativePaths": "true"
},
"devEngines": {
"node": ">=14",
"npm": ">=7"
}
}

0 comments on commit b0da51f

Please sign in to comment.