2026-03-04 12:59:40 +01:00

93 lines
3.2 KiB
JSON

{
"name": "coincident",
"version": "1.2.3",
"description": "An Atomics based Proxy to simplify, and synchronize, Worker related tasks",
"main": "./cjs/index.js",
"types": "./types/index.d.ts",
"scripts": {
"build": "node rollup/channel.cjs && npm run cjs && npm run rollup:es && npm run rollup:window && npm run rollup:structured && npm run rollup:uhtml && npm run rollup:server && npm run ts && npm run test:integration && cp *.js test/dist/ && npm run size",
"cjs": "ascjs --no-default esm cjs",
"rollup:es": "rollup --config rollup/es.config.js",
"rollup:server": "rollup --config rollup/server.config.js",
"rollup:structured": "rollup --config rollup/structured.config.js",
"rollup:uhtml": "rollup --config rollup/uhtml.config.js",
"rollup:window": "rollup --config rollup/window.config.js",
"test": "c8 node test/index.js",
"test:integration": "static-handler --coi . 2>/dev/null & SH_PID=$!; EXIT_CODE=0; playwright test test/ || EXIT_CODE=$?; kill $SH_PID 2>/dev/null; exit $EXIT_CODE",
"test:server": "node test/server/main.cjs",
"ts": "tsc -p .",
"server": "npx static-handler --coi .",
"size": "echo -e \"\\x1b[1mfile size\\x1b[0m\"; echo \"es $(cat es.js | brotli | wc -c)\"; echo \"structured $(cat structured.js | brotli | wc -c)\"; echo \"window $(cat window.js | brotli | wc -c)\"; echo \"server $(cat server.js | brotli | wc -c)\"; echo \"uhtml $(cat uhtml.js | brotli | wc -c)\";",
"coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info"
},
"keywords": [
"Atomics",
"Worker",
"sync",
"synchronize"
],
"author": "Andrea Giammarchi",
"license": "ISC",
"devDependencies": {
"@playwright/test": "^1.42.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"ascjs": "^6.0.3",
"c8": "^9.1.0",
"rollup": "^4.13.0",
"static-handler": "^0.4.3",
"typescript": "^5.4.2",
"uhtml": "^4.4.9"
},
"module": "./esm/index.js",
"type": "module",
"exports": {
".": {
"types": "./types/index.d.ts",
"import": "./esm/index.js",
"default": "./cjs/index.js"
},
"./window": {
"types": "./types/window.d.ts",
"import": "./esm/window.js",
"default": "./cjs/window.js"
},
"./bun": {
"types": "./types/bun.d.ts",
"import": "./esm/bun.js",
"default": "./cjs/bun.js"
},
"./server": {
"types": "./types/server.d.ts",
"import": "./esm/server.js",
"default": "./cjs/server.js"
},
"./structured": {
"types": "./types/structured.d.ts",
"import": "./esm/structured.js",
"default": "./cjs/structured.js"
},
"./json": {
"types": "./types/json.d.ts",
"import": "./esm/json.js",
"default": "./cjs/json.js"
},
"./uhtml": {
"types": "./types/window.d.ts",
"import": "./esm/uhtml.js",
"default": "./cjs/uhtml.js"
},
"./package.json": "./package.json"
},
"unpkg": "es.js",
"dependencies": {
"@ungap/structured-clone": "^1.2.0",
"@ungap/with-resolvers": "^0.1.0",
"gc-hook": "^0.3.1",
"proxy-target": "^3.0.2"
},
"optionalDependencies": {
"ws": "^8.16.0"
}
}