Skip to content

Commit

Permalink
Ignore test files in build command.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterp committed Jul 2, 2020
1 parent 687abc2 commit 3bf95d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const handler = async ({
// must use path.join() here, and for 'web' below, to support Windows
cwd: path.join(getPaths().base, 'api'),
cmd:
'yarn cross-env NODE_ENV=production babel src --out-dir dist --extensions .ts,.js',
"yarn cross-env NODE_ENV=production babel src --out-dir dist --delete-dir-on-start --extensions .ts,.js --ignore '**/*.test.ts,**/*.test.js,**/__tests__'",
},
web: {
cwd: path.join(getPaths().base, 'web'),
Expand Down

0 comments on commit 3bf95d6

Please sign in to comment.