forked from swc-project/swc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
173 lines (173 loc) · 5.93 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
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
{
"name": "@swc/core",
"version": "1.3.24",
"description": "Super-fast alternative for babel",
"homepage": "https://swc.rs",
"main": "./index.js",
"author": "강동윤 <[email protected]>",
"license": "Apache-2.0",
"keywords": [
"swc",
"swcpack",
"babel",
"typescript",
"rust",
"webpack",
"tsc"
],
"engines": {
"node": ">=10"
},
"repository": {
"type": "git",
"url": "git+https://github.com/swc-project/swc.git"
},
"bugs": {
"url": "https://github.com/swc-project/swc/issues"
},
"napi": {
"name": "swc",
"triples": {
"defaults": true,
"additional": [
"x86_64-unknown-linux-musl",
"i686-pc-windows-msvc",
"aarch64-unknown-linux-gnu",
"armv7-unknown-linux-gnueabihf",
"aarch64-apple-darwin",
"aarch64-unknown-linux-musl",
"aarch64-pc-windows-msvc"
]
}
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"types": "./index.d.ts",
"scripts": {
"changelog": "git cliff --output CHANGELOG.md",
"prepare": "husky install && git config feature.manyFiles true && node ./crates/swc_ecma_preset_env/scripts/copy-data.js",
"postinstall": "node postinstall.js",
"artifacts": "napi artifacts --dist scripts/npm",
"prepublishOnly": "tsc -d && napi prepublish -p scripts/npm --tagstyle npm",
"pack": "wasm-pack",
"build:ts": "tsc -d",
"build:wasm": "npm-run-all \"pack -- build ./bindings/binding_core_wasm --scope swc {1} -t {2} --features plugin\" --",
"build": "tsc -d && napi build --platform --cargo-name binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts --cargo-cwd ./bindings -p binding_core_node --release",
"build:dev": "tsc -d && napi build --platform --cargo-name binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts --cargo-cwd ./bindings -p binding_core_node",
"build:bytecheck": "tsc -d && napi build --platform --cargo-name binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts --cargo-cwd ./bindings --features swc_v1,plugin_bytecheck -p binding_core_node --cargo-flags=--no-default-features --release",
"test": "cross-env NODE_OPTIONS='--experimental-vm-modules' jest --config ./node-swc/jest.config.js",
"version": "napi version -p scripts/npm"
},
"lint-staged": {
"*.toml": [
"taplo format"
],
"*.rs": [
"rustfmt --"
],
"!(**/tests/**/*)*.js": [
"prettier --write"
],
"!(**/tests/**/*)*.ts": [
"prettier --write"
],
"!(**/tests/**/*)*.jsx": [
"prettier --write"
],
"!(**/tests/**/*)*.tsx": [
"prettier --write"
]
},
"devDependencies": {
"@babel/compat-data": "^7.17.0",
"@babel/core": "^7.13.16",
"@babel/generator": "^7.18.13",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-proposal-decorators": "^7.13.15",
"@babel/plugin-proposal-object-rest-spread": "^7.13.8",
"@babel/preset-env": "^7.13.15",
"@babel/preset-react": "^7.13.13",
"@babel/preset-typescript": "^7.13.0",
"@babel/types": "^7.14.0",
"@napi-rs/cli": "^2.13.3",
"@swc/core": "=1.2.220",
"@swc/helpers": "^0.4.2",
"@swc/plugin-jest": "1.5.25",
"@taplo/cli": "^0.3.2",
"@types/jest": "^28.1.4",
"@types/node": "^14.14.41",
"@types/terser": "^3.12.0",
"acorn": "^8.6.0",
"acorn-jsx": "^5.3.2",
"axios": "^0.21.1",
"babel-plugin-transform-node-env-inline": "^0.4.3",
"benchmark": "^2.1.4",
"bootstrap": "^5.2.1",
"class-validator": "^0.13.1",
"core-js": "^2.6.11",
"core-js-compat": "^3.21.1",
"cross-env": "^7.0.3",
"cspell": "^5.12.3",
"expect": "^27.4.2",
"glob": "^8.0.3",
"husky": "^7.0.2",
"jest": "^28.1.2",
"js-beautify": "^1.14.3",
"lint-staged": "^12.3.6",
"lodash": "^4.17.21",
"mocha": "^9.1.3",
"npm-run-all": "^4.1.5",
"prettier": "^2.6.2",
"progress": "^2.0.3",
"prop-types": "^15.7.2",
"react": "^17.0.2",
"reflect-metadata": "^0.1.13",
"regenerator-runtime": "^0.13.9",
"source-map": "^0.7.3",
"source-map-support": "^0.5.19",
"sourcemap-validator": "^2.1.0",
"swc-plugin-coverage-instrument": "^0.0.12",
"terser": "^5.7.1",
"ts-node": "^10.5.0",
"typescript": "^4.5.2"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/swc"
},
"optionalDependencies": {
"@swc/core-darwin-arm64": "1.2.146",
"@swc/core-darwin-x64": "1.2.146",
"@swc/core-linux-arm-gnueabihf": "1.2.146",
"@swc/core-linux-arm64-gnu": "1.2.146",
"@swc/core-linux-arm64-musl": "1.2.146",
"@swc/core-linux-x64-gnu": "1.2.146",
"@swc/core-linux-x64-musl": "1.2.146",
"@swc/core-win32-arm64-msvc": "1.2.146",
"@swc/core-win32-ia32-msvc": "1.2.146",
"@swc/core-win32-x64-msvc": "1.2.146"
},
"files": [
"CHANGELOG.md",
"Visitor.d.ts",
"index.d.ts",
"spack.js",
"util.d.ts",
"LICENSE",
"Visitor.js",
"binding.d.ts",
"index.js",
"types.d.ts",
"util.js",
"README.md",
"binding.js",
"package.json",
"spack.d.ts",
"types.js",
"postinstall.js",
"bindings/binding_core_wasm/pkg/binding_core_wasm.d.ts"
],
"packageManager": "[email protected]"
}