-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
82 lines (82 loc) · 2.4 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
{
"name": "builder-swc-project",
"version": "0.0.0",
"private": true,
"workspaces": [
"./node/",
"./npm/*"
],
"napi": {
"name": "builder-swc",
"triples": {
"additional": [
"x86_64-unknown-linux-musl",
"i686-pc-windows-msvc",
"aarch64-unknown-linux-gnu",
"aarch64-apple-darwin",
"aarch64-unknown-linux-musl",
"aarch64-pc-windows-msvc"
],
"defaults": true
}
},
"files": [
"lib",
"!lib/**/*.map"
],
"scripts": {
"setup": "rm -rf node_modules && yarn install && npm run build",
"watch": "npm run clean && npx tsc --build ./tsconfig.json -w",
"build": "npm run clean && npx tsc --build ./tsconfig.json",
"build:swc": "napi build --platform --release --cargo-cwd ./ ./native --js=false",
"version": "napi version -p ./node/npm -c ./node/package.json",
"publish": "npm run copy:swc && ts-node ./scripts/publishPackage.ts",
"publish:beta": "npm run copy:swc && PUBLISH_TYPE=beta ts-node ./scripts/publishPackageWithDistTag.ts",
"copy:swc": "ts-node ./scripts/copySwcBinaries.ts",
"clean": "rimraf ./node/lib",
"clean:swc": "rimraf ./native",
"lint": "eslint --cache --ext .js,.jsx,.ts,.tsx ./",
"lint:fix": "npm run lint -- --fix",
"test": "jest --forceExit --ci",
"test:watch": "jest --watch",
"ci": "npm run lint && npm run test"
},
"license": "MIT",
"devDependencies": {
"ts-jest": "^27.1.2",
"@applint/spec": "^1.0.0",
"@commitlint/cli": "^11.0.0",
"@napi-rs/cli": "^2.0.0",
"@types/jest": "^27.4.0",
"@types/node": "^14.17.15",
"eslint": "^7.0.0",
"fs-extra": "^10.0.0",
"husky": "^4.1.0",
"ice-npm-utils": "^3.0.1",
"jest": "^27.4.5",
"semver": "^7.3.5",
"ts-node": "^8.6.1",
"typescript": "^4.0.0",
"rimraf": "^3.0.2"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-push": "npm run lint"
}
},
"engines": {
"node": ">= 12"
},
"optionalDependencies": {
"@builder/swc-darwin-arm64": "0.2.0",
"@builder/swc-darwin-x64": "0.2.0",
"@builder/swc-linux-arm64-gnu": "0.2.0",
"@builder/swc-linux-arm64-musl": "0.2.0",
"@builder/swc-linux-x64-gnu": "0.2.0",
"@builder/swc-linux-x64-musl": "0.2.0",
"@builder/swc-win32-arm64-msvc": "0.2.0",
"@builder/swc-win32-ia32-msvc": "0.2.0",
"@builder/swc-win32-x64-msvc": "0.2.0"
}
}