Skip to content

Commit

Permalink
chore(package): change tsconfig and npm scripts changes
Browse files Browse the repository at this point in the history
- run npm start in production
- run npm start-dev in development mode
  • Loading branch information
purnimagupta committed May 22, 2020
1 parent b734abd commit 11ea7f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
"npm": "6.4.1"
},
"scripts": {
"clean": "rimraf ./lib/",
"start": "npm-run-all clean --parallel watch:server --print-label",
"start-dev": "npm-run-all clean --parallel watch:server --print-label",
"start":"npm run build && node build/server.js",
"build": "rimraf ./build && tsc",
"clean": "rimraf ./build/",
"tsc": "tsc",
"watch:build": "tsc --watch",
"watch:server": "nodemon --watch 'src/**/*.ts' --exec ./node_modules/.bin/ts-node src/server.ts",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
// "outDir": "lib", /* Redirect output structure to the directory. */
"outDir": "./lib",
"rootDir": ".", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
"outDir": "build",
"rootDir": "src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
// "composite": true, /* Enable project compilation */
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
// "removeComments": true, /* Do not emit comments to output. */
Expand Down

0 comments on commit 11ea7f9

Please sign in to comment.