-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
159 lines (159 loc) · 5.47 KB
/
package.json
File metadata and controls
159 lines (159 loc) · 5.47 KB
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{
"name": "@gsknnft/bigint-buffer",
"version": "1.5.1",
"type": "module",
"description": "bigint to buffer conversion with native support and built-in conversion helpers",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"browser": "dist/index.browser.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"browser": "./dist/index.browser.js",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.js"
},
"./build/Release/bigint_buffer.node": {
"import": "./dist/build/Release/bigint_buffer.node",
"require": "./dist/build/Release/bigint_buffer.node",
"default": "./dist/build/Release/bigint_buffer.node"
},
"./conversion": {
"types": "./dist/conversion/index.d.ts",
"browser": "./dist/conversion/esm/index.browser.js",
"import": "./dist/conversion/esm/index.js",
"require": "./dist/conversion/cjs/index.node.js",
"default": "./dist/conversion/esm/index.js"
}
},
"files": [
"build/Release/bigint_buffer.node",
"dist/",
"helper/",
"src/bigint-buffer.c",
"binding.gyp",
"scripts/postinstall.cjs",
"README.md",
"SECURITY.md",
"LICENSE",
"prebuilds/"
],
"workspaces": [
"./src/*"
],
"scripts": {
"test": "vitest run",
"test:watch": "vitest watch",
"coverage": "vitest run --coverage --pool=forks",
"lint": "eslint . --ext .ts,.js",
"prepublishOnly": "rm -rf build/Makefile; rm build/gyp-*; rm build/*.mk; rm build/*.Makefile; rm *.tgz",
"clean:js": "npm clean && rm -rf build/* dist/*",
"test:browser": "vite test --browser",
"test:node": "vitest run",
"postinstall": "node ./scripts/postinstall.cjs",
"declare": "node -e \"require('node:fs').rmSync('dist/types',{recursive:true,force:true})\" && tsc -p tsconfig.declarations.json --declaration --emitDeclarationOnly --outDir dist/types && tsx ./scripts/copy-dts.ts",
"benchmark": "tsx src/index.bench.ts",
"typedoc": "typedoc --out docs $(pwd)/src $(pwd)/helper --target es6 --mode file --tsconfig ./tsconfig.json --excludePrivate --excludeProtected --excludeNotExported --exclude '**/*+(spec|bench).ts'",
"build:conversion": "npm run build:js --workspace src/conversion && npm run copy:types --workspace src/conversion && tsx ./scripts/sync-conversion.ts",
"sync:native": "tsx ./scripts/sync-native.ts",
"rebuild": "node-gyp rebuild && npm run build && npm run build:conversion",
"build": "vite build && tsc -p tsconfig.json && npm run build:conversion && npm run declare && npm run sync:native",
"compile": "vite build && npm run declare && tsc -p . --noEmit && npm run sync:native",
"check": "eslint src/**/*.ts src/conversion/**/*.ts src/index.spec.ts src/conversion/test/**/*.ts",
"test:vitest": "vitest",
"test:all": "npm run test && npm run benchmark",
"clean": "rm -rf build/* dist/* node_modules package-lock.json pnpm-lock.yaml",
"fix": "eslint . --ext .ts,.js --fix && prettier --write .",
"pretest": "npm run compile",
"posttest": "npm run check",
"prebuilds": "prebuildify --napi --strip --target 24.10.0 --platform win32 --arch x64"
},
"repository": {
"type": "git",
"url": "git+https://github.com/gsknnft/bigint-buffer.git"
},
"bugs": {
"url": "https://github.com/gsknnft/bigint-buffer/issues"
},
"homepage": "https://github.com/gsknnft/bigintbuffer",
"keywords": [
"bigint",
"bignum",
"tc39-bigint",
"napi"
],
"license": "Apache-2.0",
"pnpm": {
"overrides": {
"tmp": "0.2.5"
}
},
"dependencies": {
"bindings": "^1.5.0",
"node-gyp-build": "^4.8.4"
},
"optionalDependencies": {
"@rollup/plugin-esm-shim": "0.1.8",
"@rollup/rollup-linux-arm64-gnu": "4.53.3",
"@rollup/rollup-linux-arm64-musl": "4.53.3",
"@rollup/rollup-win32-x64-gnu": "4.53.3",
"@rollup/rollup-linux-x64-gnu": "4.53.3"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^29.0.0",
"@rollup/plugin-esm-shim": "0.1.8",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-replace": "6.0.3",
"@rollup/plugin-typescript": "^12.1.4",
"@types/bn.js": "^5.2.0",
"@types/chai": "^5.2.3",
"@types/mocha": "^10.0.10",
"@types/node": "^24.10.1",
"@vitest/coverage-v8": "4.0.14",
"assertion-error": "^2.0.1",
"bn.js": "^5.2.2",
"cpy-cli": "^6.0.0",
"cross-env": "^10.1.0",
"eslint": "^9.39.1",
"globals": "^16.5.0",
"jiti": "^2.6.1",
"karma": "^6.4.4",
"karma-chrome-launcher": "^3.2.0",
"karma-env-preprocessor": "^0.1.1",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"karma-webpack": "^5.0.1",
"microtime": "^3.0.0",
"mkdirp": "^3.0.1",
"prebuildify": "^6.0.1",
"prettier": "^3.2.2",
"rollup": "^4.53.3",
"rollup-plugin-polyfill-node": "^0.13.0",
"ts-loader": "^9.5.4",
"ts-node": "^10.9.2",
"typedoc": "^0.28.14",
"tsx": "^4.20.3",
"typescript": "5.9.3",
"typescript-eslint": "^8.48.0",
"undici-types": "^7.16.0",
"vite": "7.2.4",
"vite-plugin-node-polyfills": "0.24.0",
"vitest": "^4.0.14",
"webpack": "5.103.0",
"webpack-cli": "6.0.1"
},
"engines": {
"node": ">=20.0.0",
"npm": ">=9.0.0"
},
"publishConfig": {
"access": "public"
},
"contributors": [
"Gordon Skinner <gsknnft@gmail.com> (https://github.com/gsknnft)",
"Michael Wei <mwei@vmware.com> (https://github.com/no2chem)"
]
}