Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 15c3f0f

Browse files
committed
release(guard): prepare v1.0.3 publish
- restrict published files via "files" field - exclude test sources from build output - ensure clean npm tarball (no src, no tests) - align packaging with release policy
1 parent 8db5f86 commit 15c3f0f

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

packages/guard/package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@oxdeai/guard",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"license": "Apache-2.0",
55
"description": "Universal execution authorization guard (PEP boundary) for OxDeAI",
66
"keywords": [
@@ -31,5 +31,11 @@
3131
"typecheck": "tsc -p tsconfig.json --noEmit",
3232
"build": "rm -rf dist && tsc -p tsconfig.json",
3333
"test": "pnpm build && node --test \"dist/test/guard.test.js\" \"dist/test/guard.property.test.js\" \"dist/test/guard.delegation.test.js\" \"dist/test/guard.delegation.matrix.test.js\" \"dist/test/guard.delegation.property.test.js\" \"dist/test/guard.toctou.test.js\" \"dist/test/guard.boundary.test.js\" \"dist/test/guard.replay-store.test.js\" \"dist/test/guard.replay-store.redis.test.js\" \"dist/test/guard.authorization.test.js\" \"dist/test/guard.state-binding.test.js\" \"dist/test/guard.cas.test.js\" \"dist/test/guard.pep-conformance.test.js\" \"dist/test/guard.intent-binding.test.js\""
34-
}
35-
}
34+
},
35+
"files": [
36+
"dist",
37+
"README.md",
38+
"CHANGELOG.md",
39+
"LICENSE"
40+
]
41+
}

packages/guard/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
"rootDir": "src",
66
"types": ["node"]
77
},
8-
"include": ["src"]
8+
"include": ["src/**/*.ts"],
9+
"exclude": ["src/**/*.test.ts"]
910
}

0 commit comments

Comments
 (0)