Skip to content

Commit

Permalink
build(babel): 💚 ignore tests and stories from build
Browse files Browse the repository at this point in the history
  • Loading branch information
navin-moorthy committed Sep 30, 2020
1 parent a147c93 commit d0c090b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ module.exports = {
},
],
].filter(Boolean),
ignore: ["**/*/__tests__", "**/*/stories"],
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"scripts": {
"build": "yarn build:commonjs && yarn build:es && yarn build:types",
"build-storybook": "build-storybook",
"build:commonjs": "rimraf ./dits/lib && cross-env BABEL_ENV=commonjs babel --extensions .ts,.tsx --ignore ./src/**/*.test.tsx ./src --out-dir dist/lib",
"build:es": "rimraf ./dist/es && babel --extensions .ts,.tsx --ignore ./src/**/*.test.tsx ./src --out-dir dist/es",
"build:commonjs": "rimraf ./dits/lib && cross-env BABEL_ENV=commonjs babel --extensions .ts,.tsx ./src --out-dir dist/lib",
"build:es": "rimraf ./dist/es && babel --extensions .ts,.tsx ./src --out-dir dist/es",
"build:types": "rimraf ./dits/types && tsc --emitDeclarationOnly",
"commit": "gacp",
"format": "prettier --write \"./**/*.{js,ts,css,less,json,md,html,yml,yaml,pcss,jsx,tsx}\"",
Expand Down

0 comments on commit d0c090b

Please sign in to comment.