Reality: repository consists of js
and json
files. Test files are collocated by *.test.js
convention.
Requirement: repo should have *.js
and *.json
files, but shouldnt have *.test.js
.
Problem:
- with
--copy-files
flag*.test.js
are transpiled and copied even though babel config hasignore: [ '**/*.test.js' ]
. - without
--copy-files
flag*.json
files are left out and package breaks.
โฏ npm run build -s
๐ Successfully compiled 1 file with Babel.
๐ Successfully compiled 1 file with Babel.
dist
โโโ copy
โ โโโ index.js
โ โโโ index.test.js
โ โโโ l10n.json
โโโ notcopy
โโโ index.js
dist-expected
โโโ index.js
โโโ l10n.json