Skip to content

Commit

Permalink
change deploy config
Browse files Browse the repository at this point in the history
  • Loading branch information
edumudu committed Jul 27, 2020
1 parent a84f548 commit e6b796e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Eduardo Wesley <[email protected]>",
"license": "MIT",
"scripts": {
"postinstall": "cd server && yarn",
"postinstall": "cd server && yarn && yarn build",
"start": "cd server && yarn start"
}
}
3 changes: 2 additions & 1 deletion server/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
dist
3 changes: 2 additions & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"license": "MIT",
"scripts": {
"dev": "nodemon --watch '*.ts' --exec 'ts-node' app.ts",
"start": "node app.js"
"start": "node ./dist/app.js",
"build": "tsc -p tsconfig.json"
},
"dependencies": {
"express": "^4.17.1",
Expand Down
4 changes: 4 additions & 0 deletions server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */

"outDir": "./dist",
"rootDir": "./",
"removeComments": true,

"strict": true, /* Enable all strict type-checking options. */

"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
Expand Down

0 comments on commit e6b796e

Please sign in to comment.