From 39be993c6376ad9df93a9a600e528a4809fbc8db Mon Sep 17 00:00:00 2001 From: Xymorot Date: Tue, 4 Jun 2019 23:28:18 +0200 Subject: [PATCH] change output directory from out to dist --- .gitignore | 2 +- package.json | 2 +- src/index.ts | 6 +----- tsconfig.json | 2 +- tslint.json | 2 +- 5 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 2456fd3..e32d69a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,4 @@ node_modules # generated code -/out +/dist diff --git a/package.json b/package.json index 47269c3..2d2b9dd 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": ".", "scripts": { - "start": "node out/index.js", + "start": "node dist/index.js", "watch": "tsc --watch", "build": "tsc --build", "tslint-check": "tslint-config-prettier-check ./tslint.json" diff --git a/src/index.ts b/src/index.ts index 02a348a..e1d47da 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,8 +12,4 @@ const server = http.createServer((req, res) => { res.end('Hello World\n'); }); -server.listen(port, hostname, () => { - console.log(`Server running at http://${hostname}:${port}/`); - const x = 1; - const y = x + 1; -}); +server.listen(port, hostname, () => {}); diff --git a/tsconfig.json b/tsconfig.json index 8d0fced..8fc479d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ "removeComments": true, "preserveConstEnums": true, "sourceMap": true, - "outDir": "out/" + "outDir": "dist" }, "include": ["src/**/*"], "exclude": ["node_modules", "**/*.spec.ts"] diff --git a/tslint.json b/tslint.json index 7f29fe0..e5d33dd 100644 --- a/tslint.json +++ b/tslint.json @@ -6,6 +6,6 @@ "no-console": true }, "linterOptions": { - "exclude": ["node_modules", "out/*"] + "exclude": ["node_modules", "dist/*"] } }