From d9deb9968c405a3525db358366e6815f1b28e616 Mon Sep 17 00:00:00 2001 From: Orestes Carracedo Date: Fri, 17 Apr 2020 22:43:57 +0200 Subject: [PATCH 1/2] feat: Compile the app after installing dependencies so we can run it as JS --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index dc07c74..0aaa6a9 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "ci:format": "prettier --ignore-path .gitignore -l .", "lint": "yarn ci:lint --fix", "format": "yarn ci:format --write", + "postinstall": "yarn run compile", "dev": "nodemon src/index.js" }, "dependencies": { From 39689764291ba0da051103da1b4e7776d1783747 Mon Sep 17 00:00:00 2001 From: Orestes Carracedo Date: Fri, 17 Apr 2020 22:44:23 +0200 Subject: [PATCH 2/2] feat: Make node run the compiled JS --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0aaa6a9..7d8788a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "compile:check": "tsc --project . --noEmit", "test": "jest", "test:watch": "jest --watch", - "start": "node src/index.js", + "start": "node dist/src/index.js", "ci:lint": "eslint --ext .js --ignore-path .gitignore .", "ci:format": "prettier --ignore-path .gitignore -l .", "lint": "yarn ci:lint --fix",