forked from kwonoj/swc-plugin-coverage-instrument
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
90 lines (90 loc) · 2.78 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
{
"name": "swc-plugin-coverage-instrument",
"version": "0.0.25",
"description": "SWC coverage instrumentation plugin",
"main": "./target/wasm32-wasip1/release/swc_plugin_coverage.wasm",
"napi": {
"name": "swc",
"triples": {
"defaults": true,
"additional": [
"x86_64-unknown-linux-musl",
"x86_64-unknown-freebsd",
"i686-pc-windows-msvc",
"aarch64-unknown-linux-gnu",
"armv7-unknown-linux-gnueabihf",
"aarch64-apple-darwin",
"aarch64-linux-android",
"aarch64-unknown-linux-musl",
"aarch64-pc-windows-msvc",
"armv7-linux-androideabi"
]
}
},
"files": [
"package.json",
"README.md",
"LICENSE",
"target/wasm32-wasip1/release/swc_plugin_coverage.wasm"
],
"scripts": {
"prepublishOnly": "npm-run-all test && npm run build:plugin -- --release",
"build:all": "npm-run-all build:customtransform build:instrument build:plugin",
"build:customtransform": "napi build --platform --cargo-cwd ./spec/swc-coverage-custom-transform",
"build:instrument": "wasm-pack build spec/swc-coverage-instrument-wasm --target nodejs",
"build:plugin": "cargo build -p swc-plugin-coverage --release --target wasm32-wasip1",
"test:plugin": "npm-run-all build:all && mocha",
"test:customtransform": "npm-run-all build:all && cross-env SWC_TRANSFORM_CUSTOM=1 mocha",
"test": "npm-run-all test:plugin test:customtransform",
"test:debug": "npm-run-all build:all && cross-env FILTER=\"debug-test\" DEBUG=1 mocha",
"prepare": "husky install"
},
"repository": {
"type": "git",
"url": "git+https://github.com/kwonoj/swc-coverage-instrument.git"
},
"keywords": [
"SWC",
"plugin",
"istanbul",
"coverage"
],
"author": "OJ Kwon <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/kwonoj/swc-coverage-instrument/issues"
},
"homepage": "https://github.com/kwonoj/swc-coverage-instrument#readme",
"devDependencies": {
"@napi-rs/cli": "^2.11.0",
"@swc-node/register": "^1.6.5",
"@swc/core": "^1.7.26",
"@taplo/cli": "^0.7.0",
"@types/chai": "^4.3.3",
"@types/js-yaml": "^4.0.5",
"@types/lodash.clone": "^4.5.6",
"@types/mocha": "^10.0.7",
"@types/node": "^20.14.9",
"chai": "^4.3.6",
"cross-env": "^7.0.3",
"husky": "^9.0.11",
"js-yaml": "^4.1.0",
"lint-staged": "^15.2.7",
"lodash.clone": "^4.5.0",
"mocha": "^10.6.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.3.2",
"typescript": "^5.5.3",
"wasm-pack": "^0.13.0"
},
"lint-staged": {
"*.{js,ts,css,md}": "prettier --write",
"*.toml": [
"taplo format"
],
"*.rs": [
"cargo fmt --"
]
},
"packageManager": "[email protected]+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
}