The forge's bundle met "Could not resolve blakejs" in the SDK's seal code. blakejs and tweetnacl are declared dependencies already. The build now runs a check after tsc: every bare import in dist/**/*.js must be a Node built-in, the package itself, or a declared dependency or peerDependency. The builder runs npm run build before npm pack, so a package that breaks this is never published. The check lives under src because the builder's workspace holds only the artifact's paths. Builds: design 47 H2 H-A-491
39 lines
1.1 KiB
JSON
39 lines
1.1 KiB
JSON
{
|
|
"name": "@novox/mesh-sdk",
|
|
"version": "0.1.19",
|
|
"description": "The stable spine a Novox Mesh module's own code builds against.",
|
|
"type": "module",
|
|
"exports": {
|
|
".": "./dist/index.js",
|
|
"./provider-loop": "./dist/provider-loop/index.js",
|
|
"./provisioner": "./dist/provider-loop/index.js",
|
|
"./tools": "./dist/tools/index.js",
|
|
"./messaging": "./dist/messaging/index.js",
|
|
"./events": "./dist/events/index.js",
|
|
"./primitives": "./dist/primitives/index.js",
|
|
"./stdio": "./dist/stdio/index.js",
|
|
"./state": "./dist/state/index.js",
|
|
"./callers": "./dist/callers/index.js",
|
|
"./runtime": "./dist/runtime/index.js",
|
|
"./views": "./dist/views/index.js",
|
|
"./seal": "./dist/seal/index.js"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc && node src/declared-imports.mjs",
|
|
"pretest": "tsc --noEmit",
|
|
"test": "node --test --experimental-strip-types 'test/*.test.ts'",
|
|
"prepare": "tsc"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.0",
|
|
"typescript": "^5.6.0"
|
|
},
|
|
"dependencies": {
|
|
"blakejs": "1.2.1",
|
|
"tweetnacl": "1.0.3"
|
|
}
|
|
}
|