Files
36c7b6e89e ci(ts): verify packed package on Node 20 and 22 (#278)
Run the TypeScript unit suite in CI and exercise the actual npm tarball from an external ESM consumer. Validate lazy optional runtimes, runtime inference, declarations, clean build output, and the published file set.

Co-authored-by: Copilot <[email protected]>
Co-authored-by: NandhaKishorM <[email protected]>
2026-09-24 08:35:59 +05:30

20 lines
715 B
JSON

{
"name": "laya-ts",
"version": "0.1.0",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": { ".": { "import": "./dist/index.js", "types": "./dist/index.d.ts" } },
"scripts": {
"clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
"build": "npm run clean && tsc -p tsconfig.json",
"test": "vitest",
"test:package": "node --test tests/package-e2e.mjs",
"prepack": "npm run build"
},
"files": ["dist", "scripts"],
"devDependencies": { "typescript": "^5.6.0", "vitest": "^2.1.0" },
"optionalDependencies": { "onnxruntime-node": "^1.20.0", "onnxruntime-web": "^1.20.0" }
}