-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
118 lines (118 loc) · 4.16 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
{
"name": "java-bridge",
"version": "2.7.0",
"main": "dist/index.prod.min.js",
"types": "dist/index.d.ts",
"description": "A bridge between Node.js and Java APIs",
"repository": {
"type": "git",
"url": "git+https://github.com/MarkusJx/node-java-bridge.git"
},
"author": "MarkusJx",
"bugs": {
"url": "https://github.com/MarkusJx/node-java-bridge/issues"
},
"homepage": "https://github.com/MarkusJx/node-java-bridge#readme",
"files": [
"dist/*.js",
"dist/*.map",
"dist/**/*.d.ts",
"dist/*.jar",
"native.d.ts"
],
"napi": {
"name": "java",
"triples": {
"additional": [
"aarch64-apple-darwin",
"i686-pc-windows-msvc",
"aarch64-unknown-linux-gnu",
"x86_64-unknown-linux-musl"
]
}
},
"license": "MIT",
"prettier": {
"printWidth": 80,
"semi": true,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "es5"
},
"engines": {
"node": ">= 15"
},
"scripts": {
"artifacts": "napi artifacts",
"build:all": "npm run build:napi -- --features all && npm run postbuild",
"build": "npm run build:napi",
"build:debug": "npm run build:napi:debug && npm run build:java && npm run build:ts",
"postbuild": "npm run build:java && npm run build:ts",
"build:napi": "napi build --cargo-name java --platform --release --js native.js --dts native.d.ts",
"build:napi:debug": "napi build --cargo-name java --platform --js native.js --dts native.d.ts",
"build:ts": "webpack build",
"build:java": "run-script-os",
"build:java:darwin:linux": "cd java-src && chmod +x gradlew && ./gradlew shadowJar",
"build:java:win32": "cd java-src && .\\gradlew.bat shadowJar",
"prepublishOnly": "napi prepublish -t npm",
"test": "npm run testOnly",
"testOnly": "npm run mocha",
"mocha": "cross-env NODE_OPTIONS=\"--import tsx\" mocha test/*.test.ts --reporter mocha-multi-reporters --reporter-options configFile=mocha-reporter-config.json",
"pretest": "npm run build",
"version": "napi version",
"prettier": "prettier --write .",
"prettier:check": "prettier --check .",
"prebuild": "rimraf dist",
"prebuild:debug": "rimraf dist",
"benchmark": "tsx --tsconfig test/tsconfig.json test/benchmark/benchmark.ts",
"prebenchmark": "npm run build",
"docs": "typedoc --out docs ts-src/index.ts"
},
"devDependencies": {
"@napi-rs/cli": "^2.16.2",
"@types/chai": "^5.0.1",
"@types/chai-as-promised": "^8.0.1",
"@types/is-ci": "^3.0.0",
"@types/mocha": "^10.0.1",
"@types/node": "^22.10.2",
"@types/semver": "^7.5.0",
"@types/webpack-env": "^1.18.1",
"@types/webpack-node-externals": "^3.0.0",
"@types/yargs": "^17.0.24",
"chai": "^5.1.2",
"chai-as-promised": "^8.0.1",
"copy-webpack-plugin": "^12.0.2",
"cpy-cli": "^5.0.0",
"cross-env": "^7.0.3",
"expose-gc": "^1.0.0",
"is-ci": "^4.1.0",
"mocha": "^11.0.1",
"mocha-junit-reporter": "^2.2.1",
"mocha-multi-reporters": "^1.5.1",
"nanobench": "^3.0.0",
"node-loader": "^2.0.0",
"prettier": "^3.0.1",
"rimraf": "^6.0.1",
"run-script-os": "^1.1.6",
"semver": "^7.5.4",
"string-replace-loader": "^3.1.0",
"ts-loader": "^9.4.4",
"ts-node": "^10.9.1",
"tslib": "^2.6.1",
"tsx": "^4.7.1",
"typedoc": "^0.27.5",
"typescript": "^5.7.2",
"webpack": "^5.88.2",
"webpack-cli": "^6.0.1",
"webpack-node-externals": "^3.0.0"
},
"optionalDependencies": {
"java-bridge-darwin-arm64": "2.1.5",
"java-bridge-darwin-x64": "2.1.5",
"java-bridge-linux-arm64-gnu": "2.1.5",
"java-bridge-linux-x64-gnu": "2.1.5",
"java-bridge-linux-x64-musl": "2.1.5",
"java-bridge-win32-ia32-msvc": "2.1.5",
"java-bridge-win32-x64-msvc": "2.1.5"
}
}