@shinobiapps/shinobi 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -5,6 +5,25 @@ All notable changes to Shinobi will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.1.5] — 2026-06-04
9
+
10
+ Bugfix release: the `prepare` lifecycle script no longer recurses on Windows.
11
+
12
+ ### Fixed
13
+
14
+ - **`prepare` script no longer loops on Windows when nested `npm`
15
+ invocations can't find `node` on `cmd.exe`'s PATH.** The previous
16
+ inline form was `node -e "...exists..." || (npm install --prefix
17
+ dashboard-spa && npm run build)`; on Windows, each nested `npm` call
18
+ spawned its own `cmd.exe`, and somewhere ~25 levels deep `node` fell
19
+ off PATH and the whole tree retried in a loop. Replaced with
20
+ `node scripts/prepare.mjs`, which does the dist-exists check directly
21
+ via `fs.existsSync` and short-circuits via `SHINOBI_PREPARE_RUNNING`
22
+ to break any future recursion. Only ever bit contributors cloning the
23
+ repo on Windows when node wasn't on the system `cmd.exe` PATH — npm
24
+ registry users were never affected (registry installs ship a prebuilt
25
+ `dist/` and don't run `prepare`).
26
+
8
27
  ## [0.1.4] — 2026-06-04
9
28
 
10
29
  Dashboard quality-of-life: project list now shows subtask completion at a glance.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shinobiapps/shinobi",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -29,7 +29,7 @@
29
29
  "CODE_OF_CONDUCT.md"
30
30
  ],
31
31
  "scripts": {
32
- "prepare": "node -e \"process.exit(require('fs').existsSync('dist/cli.js')?0:1)\" || (npm install --prefix dashboard-spa --no-audit --no-fund && npm run build)",
32
+ "prepare": "node scripts/prepare.mjs",
33
33
  "clean:dist": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
34
34
  "prepublishOnly": "npm run clean:dist && npm install --prefix dashboard-spa --no-audit --no-fund && npm run build",
35
35
  "build": "tsc && npm run build:spa",