Skip to content

Commit 17e2858

Browse files
committed
♻️ reintroduce post-install
1 parent 29d8c32 commit 17e2858

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ cd ~/MagicMirror/modules
2323
git clone https://github.com/miccl/MMM-Random-local-image.git
2424
cd MMM-Random-local-image
2525
npm ci
26-
npm run build
2726
```
2827

28+
If post-scripts are disabled, run `npm run build` afterward.
29+
2930
Finally, configure the module in the config.js file (instructions below).
3031

3132
## Updating the module
@@ -39,6 +40,8 @@ npm ci
3940
npm run build
4041
```
4142

43+
If post-scripts are disabled, run `npm run build` afterward.
44+
4245
Check the [Changelog](CHANGELOG.md) for all updates.
4346

4447
## Using the module

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"lint": "biome check . --write",
1010
"lint:check": "biome check .",
1111
"format": "biome check . --write",
12-
"build": "rollup -c",
12+
"postinstall": "npm run build",
13+
"build": "rollup -c",
1314
"build:dev": "rollup -c --sourcemap=inline",
1415
"build:watch": "npm run dev -- --watch",
1516
"test": "vitest",

0 commit comments

Comments
 (0)