mirror of
https://github.com/hanzoai/laya.git
synced 2026-10-30 19:33:31 +00:00
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]>
20 lines
715 B
JSON
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" }
|
|
}
|