Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Commit

Permalink
fix(babel): Ignore test-files while building
Browse files Browse the repository at this point in the history
Babel will now ignore *.test.js and *.spec.js files when running frans-script build. __test__ and
__mocks__ are still ignored as well.

fix #5
  • Loading branch information
adambrgmn committed Dec 6, 2017
1 parent ff7d853 commit 9a54987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/build/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const config = useBuiltinConfig

const ignore = args.includes('--ignore')
? []
: ['--ignore', '__tests__,__mocks__'];
: ['--ignore', '__tests__,__mocks__,*.test.js,*.spec.js'];

const copyFiles = args.includes('--no-copy-files') ? [] : ['--copy-files'];

Expand Down

0 comments on commit 9a54987

Please sign in to comment.