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

59 lines
1.6 KiB
JSON

{
"name": "gc-hook",
"version": "0.3.1",
"description": "A simplified FinalizationRegistry utility that works",
"main": "./cjs/index.js",
"scripts": {
"build": "npm run cjs && npm run rollup:es && npm run rollup:index && npm run ts && npm run test",
"cjs": "ascjs esm cjs",
"rollup:es": "rollup --config rollup/es.config.js && sed -i.bck 's/^var /self./' es.js && rm -rf es.js.bck",
"rollup:index": "rollup --config rollup/index.config.js",
"test": "c8 node --expose-gc test/index.js",
"ts": "tsc -p .",
"coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info"
},
"keywords": [
"FinalizationRegistry",
"simple",
"GC",
"Proxy"
],
"author": "Andrea Giammarchi",
"license": "ISC",
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"ascjs": "^6.0.3",
"c8": "^8.0.1",
"rollup": "^4.6.1",
"typescript": "^5.3.2"
},
"module": "./esm/index.js",
"type": "module",
"exports": {
".": {
"types": "./types/index.d.ts",
"import": "./esm/index.js",
"default": "./cjs/index.js"
},
"./memory": {
"types": "./types/memory.d.ts",
"import": "./esm/memory.js",
"default": "./cjs/memory.js"
},
"./package.json": "./package.json"
},
"unpkg": "es.js",
"directories": {
"test": "test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/WebReflection/gc-hook.git"
},
"bugs": {
"url": "https://github.com/WebReflection/gc-hook/issues"
},
"homepage": "https://github.com/WebReflection/gc-hook#readme"
}