@scrolled/nav-graph 0.1.0-dev.42491aa → 0.1.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.
Files changed (2) hide show
  1. package/README.md +5 -3
  2. package/package.json +17 -22
package/README.md CHANGED
@@ -78,6 +78,8 @@ the Actions tab with `dry_run: true`. It uploads the packed tarball as an
78
78
  artifact so you can inspect it before flipping the toggle off.
79
79
 
80
80
  The published tarball contains only `dist/` (compiled JS + .d.ts +
81
- sourcemaps), `LICENSE`, and `README.md`. `publishConfig` in `package.json`
82
- rewrites `main`/`types`/`exports` to point at `dist/` so workspace consumers
83
- inside this monorepo continue to read `src/*.ts` directly.
81
+ sourcemaps), `LICENSE`, and `README.md`. `main`/`types`/`exports` in
82
+ `package.json` point directly at `dist/`; running tests or the export CLI
83
+ inside this monorepo works without consulting the exports field (Vitest and
84
+ the CLI use relative imports), so the dist-only exports don't get in the way
85
+ of source-tree dev.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrolled/nav-graph",
3
- "version": "0.1.0-dev.42491aa",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "description": "Framework-agnostic graph core: IR types + Zod schema, an authoring DSL, a compiler (IR → runtime adjacency), and pathfinding (BFS + eligibility). The engine behind Scrolled Navigator; usable standalone in Node and the browser.",
6
6
  "license": "Apache-2.0",
@@ -29,30 +29,25 @@
29
29
  "README.md",
30
30
  "LICENSE"
31
31
  ],
32
+ "main": "./dist/index.js",
33
+ "module": "./dist/index.js",
34
+ "types": "./dist/index.d.ts",
32
35
  "exports": {
33
- ".": "./src/index.ts",
34
- "./ir": "./src/ir/index.ts",
35
- "./dsl": "./src/dsl/index.ts"
36
+ ".": {
37
+ "types": "./dist/index.d.ts",
38
+ "import": "./dist/index.js"
39
+ },
40
+ "./ir": {
41
+ "types": "./dist/ir/index.d.ts",
42
+ "import": "./dist/ir/index.js"
43
+ },
44
+ "./dsl": {
45
+ "types": "./dist/dsl/index.d.ts",
46
+ "import": "./dist/dsl/index.js"
47
+ }
36
48
  },
37
49
  "publishConfig": {
38
- "access": "public",
39
- "main": "./dist/index.js",
40
- "module": "./dist/index.js",
41
- "types": "./dist/index.d.ts",
42
- "exports": {
43
- ".": {
44
- "types": "./dist/index.d.ts",
45
- "import": "./dist/index.js"
46
- },
47
- "./ir": {
48
- "types": "./dist/ir/index.d.ts",
49
- "import": "./dist/ir/index.js"
50
- },
51
- "./dsl": {
52
- "types": "./dist/dsl/index.d.ts",
53
- "import": "./dist/dsl/index.js"
54
- }
55
- }
50
+ "access": "public"
56
51
  },
57
52
  "scripts": {
58
53
  "build": "tsc -p tsconfig.build.json",