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 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",