-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
110 lines (110 loc) · 3.6 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"name": "rs-module-lexer",
"version": "2.5.0",
"description": "ES module parser powered by Rust",
"keywords": [
"es-module-lexer",
"es-module-lexer-rust",
"es-module-parser",
"es-module-parser-rust",
"rs-module-parser",
"swc",
"rust"
],
"homepage": "https://github.com/fz6m/rs-module-lexer#README",
"repository": {
"type": "git",
"url": "https://github.com/fz6m/rs-module-lexer"
},
"license": "MIT",
"author": "fz6m",
"main": "index.js",
"types": "index.d.ts",
"files": [
"index.js",
"index.d.ts",
"binding.js",
"postinstall.js",
"CHANGELOG.md"
],
"scripts": {
"artifacts": "napi artifacts",
"bench": "tsx ./scripts/bench.ts",
"build": "napi build --cargo-cwd crates/binding_node --platform --js binding.js --release",
"build:dev": "napi build --cargo-cwd crates/binding_node --platform --js binding.js",
"build:wasm:dts": "tsx ./scripts/wasmDts.ts",
"build:wasm:dev": "cd crates/binding_wasm && wasm-pack build --target nodejs --verbose --out-dir ../../target/wasm --out-name index --dev",
"build:wasm:release": "cd crates/binding_wasm && RUSTFLAGS=\"-C opt-level=z\" wasm-pack build --target nodejs --verbose --out-dir ../../target/wasm --out-name index --release",
"build:wasm": "pnpm build:wasm:release && pnpm build:wasm:dts && pnpm build:wasm:opt",
"build:wasm:opt": "tsx ./scripts/wasmOpt.ts",
"build:wasm:web:dev": "cd crates/binding_wasm && wasm-pack build --verbose --out-dir ../../target/wasm_web --out-name index --dev",
"build:wasm:web": "cd crates/binding_wasm && RUSTFLAGS=\"-C opt-level=z\" wasm-pack build --verbose --out-dir ../../target/wasm_web --out-name index --release",
"build:wasm:web:opt": "tsx ./scripts/wasmOpt.ts --dir wasm_web",
"coverage": "vitest run --coverage",
"format": "prettier --write --parser typescript --cache \"./example/**/*.{ts,tsx}\"",
"preinstall": "husky install",
"prepublishOnly": "pnpm format && pnpm build",
"push": "vary push",
"release": "vary np",
"release:only": "vary release:only",
"release:root": "vary np --root",
"release:wasm": "vary np --wasm",
"test": "vitest --run",
"test:wasm": "TEST_WASM=1 vitest --run",
"vp": "vary vp",
"postinstall": "node postinstall.js",
"bootstrap:scripts": "DEBUG_VARY=1 vary np --wasm"
},
"lint-staged": {
"*.ts?(x)": [
"prettier --cache --parser=typescript --write"
]
},
"devDependencies": {
"@changesets/cli": "^2.27.7",
"@napi-rs/cli": "^2.18.4",
"@types/lodash": "^4.17.7",
"@types/node": "^20.14.14",
"@xn-sakina/mental": "^4.2.1",
"@xn-sakina/vary": "^1.4.0",
"es-module-lexer": "1.5.4",
"esbuild": "^0.23.0",
"husky": "8.0.3",
"lint-staged": "^15.2.8",
"lodash": "^4.17.21",
"prettier": "^3.3.3",
"rs-module-lexer": "link:./",
"tsx": "^4.17.0",
"typescript": "^5.5.4",
"vitest": "0.29.8",
"zx": "^7.2.3"
},
"//": "Do not upgrade 'husky' version, because it's using new es syntax",
"packageManager": "[email protected]",
"engines": {
"node": ">=14"
},
"publishConfig": {
"access": "public"
},
"napi": {
"name": "rs-module-lexer",
"triples": {
"defaults": false,
"additional": [
"x86_64-apple-darwin",
"aarch64-apple-darwin",
"x86_64-pc-windows-msvc",
"aarch64-pc-windows-msvc",
"x86_64-unknown-linux-gnu",
"aarch64-unknown-linux-gnu",
"x86_64-unknown-linux-musl",
"aarch64-unknown-linux-musl",
"armv7-unknown-linux-gnueabihf"
]
},
"package": {
"name": "@xn-sakina/rml"
}
}
}