From 7dcd6bb074bcf9498d154971e6478e4484d3cb74 Mon Sep 17 00:00:00 2001 From: Mats Sibelius Date: Fri, 5 May 2023 21:40:29 +0300 Subject: [PATCH 1/2] Added `build` and `postinstall` --- package-lock.json | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 76b5c0c..9618136 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,6 +7,7 @@ "": { "name": "autocell", "version": "1.0.0", + "hasInstallScript": true, "license": "MIT", "devDependencies": { "typescript": "^5.0.4" diff --git a/package.json b/package.json index 4707e09..8431850 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "Cellular Automata Experiment", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "postinstall": "npm run build", + "build": "tsc" }, "author": "Alexey Kutepov ", "license": "MIT", From 0d3ced29f91ec99299a393719367b75ec8eef220 Mon Sep 17 00:00:00 2001 From: Mats Sibelius Date: Fri, 5 May 2023 21:41:20 +0300 Subject: [PATCH 2/2] Updated `README.md` with new build and rebuild steps --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8897195..449f135 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,11 @@ generated Transition Tables. ```console $ npm install -$ ./node_modules/.bin/tsc $ iexplore.exe index.html ``` + +## In case of rebuild + +```console +$ npm run build +``` \ No newline at end of file