Skip to content
Permalink
Browse files

fix(cli): should not require ts-node in Production (#198)

  • Loading branch information...
goldcaddy77 committed Aug 21, 2019
1 parent a167fe8 commit d271d2a026316032e1c91561597e1356b82db5fe
Showing with 2 additions and 1 deletion.
  1. +2 −1 bin/warthog
@@ -8,7 +8,8 @@ var wantsCompiled = process.argv.indexOf('--compiled-build') >= 0;

if (wantsCompiled || !devMode) {
// TODO: had to load up ts-node so that we can use the warthog CLI in TypeScript projects
require('ts-node').register({ project: path.join(process.cwd(), 'tsconfig.json') });
// NOTE: commented the line below because in production, ts-node is not installed
// require('ts-node').register({ project: path.join(process.cwd(), 'tsconfig.json') });

// this runs from the compiled javascript source
require(`${__dirname}/../dist/cli/cli`).run(process.argv);

0 comments on commit d271d2a

Please sign in to comment.
You can’t perform that action at this time.