Skip to content

Commit

Permalink
Merge pull request #744 from redwoodjs/pp-make-build-command-actually…
Browse files Browse the repository at this point in the history
…-build-ts

Actually build TS files.
  • Loading branch information
peterp committed Jun 24, 2020
2 parents c429ce1 + 2e89d4c commit 0dc1afe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/src/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ export const handler = async ({
api: {
// 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',
cmd:
'yarn cross-env NODE_ENV=production babel src --out-dir dist --extensions .ts,.js',
},
web: {
cwd: path.join(getPaths().base, 'web'),
Expand Down

0 comments on commit 0dc1afe

Please sign in to comment.