@adukiorg/anza 0.2.4 → 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 CHANGED
@@ -17,6 +17,24 @@ 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
+
29
+ ## [0.2.5] — 2026-06-09
30
+
31
+ ### Fixed
32
+
33
+ - Add `./package.json` export to `@adukiorg/anza` so `npm create` resolver works
34
+ - Fix `@adukiorg/create-anza` fallback resolution for local development
35
+
36
+ ---
37
+
20
38
  ## [0.2.4] — 2026-06-09
21
39
 
22
40
  ### Added
package/README.md CHANGED
@@ -47,7 +47,7 @@ The Rust CLI (`anza`) resolves your ESM import graph and copies only the modules
47
47
  ## Quick Start
48
48
 
49
49
  ```bash
50
- npx anza-create myapp
50
+ npm create @adukiorg/anza myapp
51
51
  cd myapp
52
52
  npm install
53
53
  npm run dev
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 isCli = process.argv[1] === __filename;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adukiorg/anza",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "Anza web platform library — reactive state, networking, offline, animations, custom elements. Zero build step. Pure browser ESM.",
5
5
  "author": "fescii",
6
6
  "license": "MIT",
@@ -99,7 +99,8 @@
99
99
  },
100
100
  "./bin/create": {
101
101
  "default": "./bin/create/index.js"
102
- }
102
+ },
103
+ "./package.json": "./package.json"
103
104
  },
104
105
  "scripts": {
105
106
  "test": "npx @web/test-runner",