Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
72 lines (72 loc) · 4.1 KB
/
Copy pathpackage.json
File metadata and controls
72 lines (72 loc) · 4.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"name": "node-opcua-crypto-project",
"private": true,
"version": "4.2.0",
"description": "Crypto tools for Node-OPCUA",
"scripts": {
"build:crypto": "cd packages/node-opcua-crypto && npm run build",
"//build:web": "must run after build:crypto - tsup rolls up types from node-opcua-crypto/web, which only exist once dist/ is built.",
"build:web": "cd packages/node-opcua-crypto-web && npm run build",
"build:test": "cd packages/node-opcua-crypto-test && npm run build",
"build": "npm run build:crypto && npm run build:web && npm run build:test",
"test": "npx vitest run --root packages/node-opcua-crypto-test",
"lint": "biome lint",
"format": "biome format --write",
"check": "biome check",
"makedoc": "cd packages/node-opcua-crypto && npm run makedoc",
"cost-of-modules": "npx cost-of-modules --no-install",
"ncu": "npx npm-check-updates --deep -u -x env-paths,chalk,@types/node,typescript && npx npm-check-updates --deep -u -t minor",
"experiment": "tsc test/test_peculiar_edge_case.ts -t es2021 -m nodenext",
"release": "npx -y lerna publish",
"esm:test": "cd packages/node-opcua-crypto-test && npm run test:esm2",
"//check:package": "verifies the published shape of both publishable packages: exports map, files globs, and the per-condition types a CommonJS consumer resolves. attw is what catches a CJS consumer being handed ESM types (TS1479 / FalseESM); a runtime require() smoke test does not. Run after build - it packs the real dist.",
"//ignore-rules": "scoped deliberately - do NOT widen. crypto ignores (a) no-resolution: the browser condition points at the OPTIONAL node-opcua-crypto-web peer, absent by design; and (b) cjs-resolves-to-esm: this is an ESM-only package whose \"default\" condition intentionally lets require() resolve to the ESM (require(esm) on Node 22.12+, ERR_REQUIRE_ESM below) - attw flags that as a warning but it is the intended shape, not a defect. web ignores cjs-resolves-to-esm for the same ESM-only reason. Everything else stays enforced - in particular false-esm/false-cjs, the CJS-gets-ESM-types bug this gate exists to catch (our .d.ts are ESM and match the ESM .js, so no masquerade).",
"check:package:crypto": "cd packages/node-opcua-crypto && npx -y publint && npx -y @arethetypeswrong/cli --pack . --ignore-rules no-resolution cjs-resolves-to-esm",
"check:package:web": "cd packages/node-opcua-crypto-web && npx -y publint && npx -y @arethetypeswrong/cli --pack . --ignore-rules cjs-resolves-to-esm",
"check:package": "npm run check:package:crypto && npm run check:package:web",
"//check:browser": "proves through a real bundler that the \"browser\" export condition redirects to node-opcua-crypto-web and that the Node build stays polyfill-free. Neither tsc nor the vitest suite can see this - it only manifests during bundling. Run after build.",
"check:browser": "node scripts/check-browser-redirect.mjs"
},
"keywords": [
"OPCUA",
"opcua",
"m2m",
"iot",
"opc ua",
"internet of things"
],
"author": "Etienne Rossignon",
"license": "MIT",
"engine": {
"node": ">=18.0"
},
"repository": {
"type": "git",
"url": "git://github.com/node-opcua/node-opcua-crypto.git"
},
"bugs": {
"url": "https://github.com/node-opcua/node-opcua-crypto/issues"
},
"workspaces": [
"packages/node-opcua-crypto-test",
"packages/node-opcua-crypto",
"packages/node-opcua-crypto-web",
"packages/node-opcua-crypto-web-demo"
],
"dependencies": {
"@types/node": "^24.19.2",
"cross-env": "^10.1.0",
"glob": "^13.0.6",
"ts-node": "^10.9.2",
"tsup": "^8.5.1",
"typescript": "^6.0.3"
},
"devDependencies": {
"@biomejs/biome": "^2.5.15",
"@rollup/plugin-node-resolve": "^16.0.3",
"esbuild": "^0.28.2",
"rollup-plugin-polyfill-node": "^0.13.0",
"vite-plugin-node-polyfills": "^0.28.0",
"vitest": "^5.0.4"
}
}