@aethrekh/pi-cs 0.2.0-alpha.0 → 0.2.0-alpha.1
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.
- package/CHANGELOG.md +6 -0
- package/extensions/progress-tracker.js +15 -5
- package/package.json +1 -1
- package/pi-cs.meta.json +2 -2
- package/pi-package.yaml +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [0.2.0-alpha.1](https://github.com/AshishBagdane/pi-cs/compare/v0.2.0-alpha.0...v0.2.0-alpha.1) (2026-06-05)
|
|
11
|
+
|
|
12
|
+
### ### Fixed
|
|
13
|
+
|
|
14
|
+
* resolve package.json path for both pack and dev layouts in /pisces --version ([4cb59b5](https://github.com/AshishBagdane/pi-cs/commit/4cb59b5c80f80434c9931beddb6845c7b34d033e))
|
|
15
|
+
|
|
10
16
|
## [0.2.0-alpha.0](https://github.com/AshishBagdane/pi-cs/compare/v0.1.10...v0.2.0-alpha.0) (2026-06-05)
|
|
11
17
|
|
|
12
18
|
### ### Added
|
|
@@ -250,12 +250,22 @@ function default_1(pi) {
|
|
|
250
250
|
if (flag === "--version") {
|
|
251
251
|
// Read version from package.json at runtime to stay in sync with releases
|
|
252
252
|
let version = "unknown";
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
253
|
+
// Pack layout: <install>/extensions/progress-tracker.js → ../package.json
|
|
254
|
+
// Dev layout: src/extensions/progress-tracker.ts → ../../package.json
|
|
255
|
+
const pkgCandidates = [
|
|
256
|
+
path.resolve(__dirname, "../package.json"),
|
|
257
|
+
path.resolve(__dirname, "../../package.json"),
|
|
258
|
+
];
|
|
259
|
+
for (const p of pkgCandidates) {
|
|
260
|
+
try {
|
|
261
|
+
const pkg = JSON.parse(fs.readFileSync(p, "utf-8"));
|
|
262
|
+
if (pkg.version) {
|
|
263
|
+
version = pkg.version;
|
|
264
|
+
break;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
catch { /* try next */ }
|
|
257
268
|
}
|
|
258
|
-
catch { /* fall through */ }
|
|
259
269
|
ctx.ui.notify(`🐠 pi-cs (Pisces) v${version}`, "info");
|
|
260
270
|
return;
|
|
261
271
|
}
|
package/package.json
CHANGED
package/pi-cs.meta.json
CHANGED
package/pi-package.yaml
CHANGED