-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
181 lines (181 loc) · 6.97 KB
/
Copy pathpackage.json
File metadata and controls
181 lines (181 loc) · 6.97 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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
{
"name": "vitest-pool-assemblyscript",
"version": "0.0.0-semantically-released",
"description": "AssemblyScript testing with Vitest - Simple, fast, familiar, AS-native, with full coverage output",
"author": "Matt Ritter <matthew.d.ritter@gmail.com>",
"license": "MIT",
"keywords": [
"assemblyscript",
"vitest",
"unit test",
"unit testing",
"webassembly",
"wasm",
"testing",
"testing framework",
"test runner",
"compile-to-wasm",
"custom pool",
"vitest plugin"
],
"type": "module",
"main": "./dist/index.mjs",
"types": "./dist/index.d.mts",
"exports": {
".": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"./config": {
"types": "./dist/config/index.d.mts",
"default": "./dist/config/index.mjs"
},
"./v3": {
"types": "./dist/index-v3.d.mts",
"default": "./dist/index-v3.mjs"
},
"./v3/config": {
"types": "./dist/config/index-v3.d.mts",
"default": "./dist/config/index-v3.mjs"
},
"./coverage": {
"types": "./dist/coverage-provider/coverage-v8.d.mts",
"default": "./dist/coverage-provider/coverage-v8.mjs"
},
"./coverage-v8": {
"types": "./dist/coverage-provider/coverage-v8.d.mts",
"default": "./dist/coverage-provider/coverage-v8.mjs"
},
"./coverage-istanbul": {
"types": "./dist/coverage-provider/coverage-istanbul.d.mts",
"default": "./dist/coverage-provider/coverage-istanbul.mjs"
},
"./assembly": {
"import": "./assembly/index.ts",
"default": "./assembly/index.ts"
}
},
"files": [
"dist",
"prebuilds",
"binding.gyp",
"src/instrumentation/native/addon.cpp",
"scripts/setup-binaryen.js",
"scripts/install-native-addon.js",
"BINARYEN_VERSION",
"assembly"
],
"engines": {
"node": ">=20.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/themattspiral/vitest-pool-assemblyscript.git"
},
"bugs": {
"url": "https://github.com/themattspiral/vitest-pool-assemblyscript/issues"
},
"homepage": "https://github.com/themattspiral/vitest-pool-assemblyscript#readme",
"scripts": {
"//------------ Testing ------------": "",
"tc": "tsc --noEmit",
"test": "npm run test:pass && npm run test:meta:verify",
"test:pass": "node scripts/generate-passing-fixtures.js && vitest run",
"test:meta": "vitest run -c vitest.meta.config.ts",
"test:meta:verify": "cross-env RUN_CONTEXT=local vitest run -c vitest.meta-verify.config.ts",
"test:meta:verify:istanbul": "cross-env RUN_CONTEXT=local VITEST_AS_POOL_JS_PROVIDER=istanbul vitest run -c vitest.meta-verify.config.ts",
"//---- install pool externally and run our tests from there ----": "",
"test:ext:setup": "node scripts/setup-test-external.js",
"test:ext:setup:v4": "cross-env VITEST_VERSION=4 node scripts/setup-test-external.js",
"test:ext:setup:v3": "cross-env VITEST_VERSION=3 node scripts/setup-test-external.js",
"test:ext:pass": "node scripts/generate-passing-fixtures.js && node scripts/run-vitest-external.js -c vitest.pass.config.ts",
"test:ext:meta": "node scripts/run-vitest-external.js -c vitest.meta.config.ts",
"test:ext:meta:verify": "cross-env RUN_CONTEXT=external vitest run -c vitest.meta-verify.config.ts",
"test:ext:meta:verify:istanbul": "cross-env RUN_CONTEXT=external VITEST_AS_POOL_JS_PROVIDER=istanbul vitest run -c vitest.meta-verify.config.ts",
"//---- test shortcuts ----": "",
"ptest": "npm run test:pass",
"mtest": "npm run test:meta",
"mvtest": "npm run test:meta:verify",
"mvitest": "npm run test:meta:verify:istanbul",
"atest": "npm run ptest && npm run mvtest",
"//---- external test shortcuts ----": "",
"eptest": "npm run test:ext:setup && npm run test:ext:pass",
"emtest": "npm run test:ext:setup && npm run test:ext:meta",
"emvtest": "npm run test:ext:setup && npm run test:ext:meta:verify",
"emvitest": "npm run test:ext:setup && npm run test:ext:meta:verify:istanbul",
"aetest": "npm run eptest && npm run test:ext:meta:verify",
"//---- external v4 test shortcuts ----": "",
"ep4test": "npm run test:ext:setup:v4 && npm run test:ext:pass",
"em4test": "npm run test:ext:setup:v4 && npm run test:ext:meta",
"emv4test": "npm run test:ext:setup:v4 && npm run test:ext:meta:verify",
"ae4test": "npm run ep4test && npm run test:ext:meta:verify",
"//---- external v3 test shortcuts ----": "",
"ep3test": "npm run test:ext:setup:v3 && npm run test:ext:pass",
"em3test": "npm run test:ext:setup:v3 && npm run test:ext:meta",
"emv3test": "npm run test:ext:setup:v3 && npm run test:ext:meta:verify",
"ae3test": "npm run ep3test && npm run test:ext:meta:verify",
"//---- external global test shortcuts ----": "",
"eetest": "npm run aetest && npm run ae4test && npm run ae3test",
"//---- compile & test shortcuts ----": "",
"tcptest": "npm run tc && npm run build && npm run ptest",
"cptest": "npm run build && npm run ptest",
"cmtest": "npm run build && npm run mtest",
"cmvtest": "npm run build && npm run mvtest",
"cmvitest": "npm run build && npm run mvitest",
"//------------ Compile/Build TypeScript Pool ------------": "",
"build": "tsdown",
"//------------ Compile/Build Native Addon ------------": "",
"setup-binaryen": "node scripts/setup-binaryen.js",
"build:native": "node-gyp rebuild",
"build:prebuild": "prebuildify --napi --strip --tag-libc",
"//------------ npm Lifecycle (native build fallback) ------------": "",
"install": "node scripts/install-native-addon.js"
},
"dependencies": {
"birpc": "^4.0.0",
"node-addon-api": "^8.8.0",
"node-gyp-build": "^4.8.4",
"source-map": "~0.7.6",
"tinyglobby": "~0.2.15",
"tinyhighlight": "^0.3.2",
"tinypool": "^2.1.0",
"tinyrainbow": "^3.1.0"
},
"peerDependencies": {
"@vitest/coverage-istanbul": "^3.2.0 || ^4.0.0 || ^5.0.0-0",
"@vitest/coverage-v8": "^3.2.0 || ^4.0.0 || ^5.0.0-0",
"@vitest/utils": "^3.2.0 || ^4.0.0 || ^5.0.0-0",
"assemblyscript": "~0.28.9",
"istanbul-lib-coverage": "^3.2.2",
"vitest": "^3.2.0 || ^4.0.0 || ^5.0.0-0"
},
"peerDependenciesMeta": {
"@vitest/coverage-istanbul": {
"optional": true
},
"@vitest/coverage-v8": {
"optional": true
}
},
"devDependencies": {
"@semantic-release/github": "^12.0.3",
"@semantic-release/npm": "^13.1.3",
"@types/istanbul-lib-coverage": "^2.0.6",
"@types/node": "^24.13.1",
"@types/source-map": "~0.5.2",
"@vitest/coverage-istanbul": "5.0.0-beta.6",
"@vitest/coverage-v8": "5.0.0-beta.6",
"@vitest/utils": "5.0.0-beta.6",
"assemblyscript": "0.28.18",
"conventional-changelog-conventionalcommits": "^9.3.1",
"cross-env": "^10.1.0",
"istanbul-lib-coverage": "^3.2.2",
"node-gyp": "^12.4.0",
"prebuildify": "^6.0.1",
"semantic-release": "^25.0.5",
"tsdown": "^0.22.2",
"tsx": "^4.23.0",
"typescript": "^6.0.3",
"vitest": "5.0.0-beta.6"
}
}