-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
91 lines (91 loc) · 2.72 KB
/
package.json
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"name": "@cloudpss/zstd",
"version": "0.3.5",
"description": "Zstd n-api addon for node.js & wasm for browsers.",
"author": "OpportunityLiu <[email protected]>",
"license": "MIT",
"packageManager": "[email protected]",
"repository": {
"type": "git",
"url": "git+https://github.com/CloudPSS/zstd.git"
},
"keywords": [
"zstd",
"zstandard",
"n-api",
"wasm",
"compression",
"decompression",
"compress",
"decompress"
],
"engines": {
"node": ">=14.16"
},
"type": "module",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"browser": "dist/wasm/index.js",
"exports": {
".": {
"browser": "./dist/wasm/index.js",
"default": "./dist/index.js"
},
"./wasm": "./dist/wasm/index.js",
"./napi": "./dist/napi.js",
"./config": "./dist/config.js",
"./package.json": "./package.json"
},
"imports": {
"#packageJson": "./package.json",
"#worker-polyfill": {
"browser": "./dist/wasm/polyfill/browser.js",
"default": "./dist/wasm/polyfill/node.js"
}
},
"scripts": {
"install": "node-gyp-build",
"clean": "rimraf dist",
"clean:gyp": "rimraf build prebuilds/*/*.node",
"clean:wasm": "rimraf prebuilds/zstd.js",
"build": "pnpm clean && tsc",
"build:deps": "pwsh lib/build.ps1",
"build:gyp": "prebuildify --napi --target 20.17.0 --strip",
"build:gyp-cross": "prebuildify-cross --napi --target 20.17.0 --strip",
"build:wasm": "pwsh lib/build-wasm.ps1",
"watch": "pnpm clean && tsc --watch",
"test": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --experimental-vm-modules\" node --expose-gc node_modules/jest/bin/jest.js",
"benchmark": "node --enable-source-maps ./benchmark/index.js",
"prepare": "husky || echo Failed to initialize husky",
"format": "prettier --cache --cache-strategy content --ignore-path .gitignore --write .",
"lint": "eslint --cache --cache-location node_modules/.cache/eslint/ --cache-strategy content"
},
"prettier": "@cloudpss/prettier-config",
"commitlint": {
"extends": "@cloudpss"
},
"devDependencies": {
"@cloudpss/commitlint-config": "^3.0.17",
"@cloudpss/eslint-config": "^3.0.17",
"@cloudpss/lint-staged-config": "^3.0.17",
"@cloudpss/prettier-config": "^3.0.17",
"@cloudpss/tsconfig": "^3.0.17",
"@jest/globals": "^29.7.0",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.1",
"husky": "^9.1.7",
"jest": "^29.7.0",
"node-gyp": "10.1.0",
"prebuildify": "^6.0.1",
"prebuildify-cross": "^5.1.1",
"pretty-bytes": "^6.1.1",
"rimraf": "^6.0.1",
"ts-jest": "29.2.5",
"typescript": "^5.7.2",
"vite": "^6.0.2"
},
"dependencies": {
"node-addon-api": "^8.3.0",
"node-gyp-build": "^4.8.4"
}
}