@armoriq/policy-ir 0.1.1 → 0.1.2

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 (1) hide show
  1. package/package.json +6 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@armoriq/policy-ir",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Armor Policy v2 intermediate representation: types, canonical serializer, policy hash, evaluator, compiler and the golden vectors every runtime must pass",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -13,14 +13,12 @@
13
13
  "types": "./dist/index.d.ts",
14
14
  "exports": {
15
15
  ".": {
16
- "types": "./dist/index.d.ts",
17
- "import": "./dist/index.js",
18
- "require": "./dist/index.cjs"
16
+ "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
17
+ "require": { "types": "./dist/index.d.cts", "default": "./dist/index.cjs" }
19
18
  },
20
19
  "./vectors": {
21
- "types": "./dist/vectors.d.ts",
22
- "import": "./dist/vectors.js",
23
- "require": "./dist/vectors.cjs"
20
+ "import": { "types": "./dist/vectors.d.ts", "default": "./dist/vectors.js" },
21
+ "require": { "types": "./dist/vectors.d.cts", "default": "./dist/vectors.cjs" }
24
22
  }
25
23
  },
26
24
  "files": [
@@ -38,7 +36,7 @@
38
36
  "typecheck": "tsc -p tsconfig.json --noEmit",
39
37
  "lint": "eslint .",
40
38
  "test": "vitest run",
41
- "smoke": "node test/smoke/consume.mjs && node test/smoke/consume.cjs",
39
+ "smoke": "node test/smoke/consume.mjs && node test/smoke/consume.cjs && node test/smoke/typecheck.mjs",
42
40
  "check": "npm run lint && npm run typecheck && npm test && npm run build && npm run smoke",
43
41
  "vectors:generate": "tsx scripts/generate-vectors.ts"
44
42
  },