From 88959eb554146bebbd9dc20c1d1a11f2d453fef0 Mon Sep 17 00:00:00 2001 From: Rick Staa Date: Fri, 15 Jul 2022 12:12:31 +0200 Subject: [PATCH 1/2] refactor: add tsc watch script This commit adds the `tsc:watch` script that can be used to compile the typescript code in watch mode. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 786f9f6..c47420c 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "main": "lib/main.js", "scripts": { "build": "tsc", + "build:watch": "tsc --watch", "format": "prettier --write '**/*.ts'", "format-check": "prettier --check '**/*.ts'", "lint": "eslint src/**/*.ts", From 5c6e9a37b0ad05b7477aa8605ca52424cd7565de Mon Sep 17 00:00:00 2001 From: Rick Staa Date: Fri, 15 Jul 2022 12:37:23 +0200 Subject: [PATCH 2/2] refactor: add source-map generation to watch command --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c47420c..0e6a244 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "main": "lib/main.js", "scripts": { "build": "tsc", - "build:watch": "tsc --watch", + "build:watch": "tsc --watch --sourceMap", "format": "prettier --write '**/*.ts'", "format-check": "prettier --check '**/*.ts'", "lint": "eslint src/**/*.ts",