@adukiorg/anza 0.2.5 → 0.2.6
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 +9 -0
- package/README.md +1 -1
- package/bin/anza/anza-windows-x64.exe +0 -0
- package/bin/anza/index.js +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,15 @@ Versioning follows [Semantic Versioning](https://semver.org/).
|
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
+
## [0.2.6] — 2026-06-09
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- `bin/anza/index.js` wrapper now uses `realpathSync` to correctly detect CLI entry through npm bin symlinks
|
|
25
|
+
- `npm run dev` and `npx anza` now work from installed packages
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
20
29
|
## [0.2.5] — 2026-06-09
|
|
21
30
|
|
|
22
31
|
### Fixed
|
package/README.md
CHANGED
|
Binary file
|
package/bin/anza/index.js
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { fileURLToPath } from 'url';
|
|
10
10
|
import { dirname, join } from 'path';
|
|
11
|
+
import { realpathSync } from 'fs';
|
|
11
12
|
import { resolve } from './find.js';
|
|
12
13
|
import { start } from './launch.js';
|
|
13
14
|
|
|
@@ -20,8 +21,9 @@ const __dirname = dirname(__filename);
|
|
|
20
21
|
const library = join(__dirname, '..', '..');
|
|
21
22
|
const root = join(library, '..');
|
|
22
23
|
|
|
23
|
-
// CLI entry only when executed directly
|
|
24
|
-
const
|
|
24
|
+
// CLI entry only when executed directly (handles npm bin symlinks)
|
|
25
|
+
const argvFile = process.argv[1] ? realpathSync(process.argv[1]) : null;
|
|
26
|
+
const isCli = argvFile === realpathSync(__filename);
|
|
25
27
|
|
|
26
28
|
if (isCli) {
|
|
27
29
|
try {
|
package/package.json
CHANGED