Skip to content

Commit cc3d5da

Browse files
committed
Tidy package.json
1 parent d61408c commit cc3d5da

2 files changed

Lines changed: 65 additions & 1287 deletions

File tree

package.json

Lines changed: 55 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,60 @@
11
{
2-
"name": "@thegecko/usb",
3-
"version": "1.0.0",
4-
"description": "Template project for writing node package with napi-rs",
2+
"name": "usb",
3+
"description": "Library to access USB devices",
4+
"license": "MIT",
5+
"version": "3.0.0",
56
"main": "index.js",
7+
"engines": {
8+
"node": ">= 12.22.0 < 13 || >= 14.17.0 < 15 || >= 15.12.0 < 16 || >= 16.0.0"
9+
},
610
"repository": {
711
"type": "git",
8-
"url": "git+ssh://git@github.com/napi-rs/package-template.git"
12+
"url": "https://github.com/node-usb/node-usb.git"
913
},
10-
"license": "MIT",
11-
"browser": "browser.js",
12-
"keywords": [
13-
"napi-rs",
14-
"NAPI",
15-
"N-API",
16-
"Rust",
17-
"node-addon",
18-
"node-addon-api"
14+
"publishConfig": {
15+
"registry": "https://registry.npmjs.org/",
16+
"access": "public"
17+
},
18+
"contributors": [
19+
{
20+
"name": "Kevin Mehall",
21+
"email": "km@kevinmehall.net",
22+
"url": "http://kevinmehall.net"
23+
},
24+
{
25+
"name": "Tim Ryan",
26+
"email": "tim@technical.io",
27+
"url": "http://timryan.org"
28+
},
29+
{
30+
"name": "Rob Moran",
31+
"email": "github@thegecko.org",
32+
"url": "https://github.com/thegecko"
33+
},
34+
{
35+
"name": "Christopher Klein"
36+
}
1937
],
20-
"files": [
21-
"index.d.ts",
22-
"index.js",
23-
"browser.js"
38+
"keywords": [
39+
"usb",
40+
"hardware"
2441
],
42+
"scripts": {
43+
"clean": "git clean -fx ./target ./node_modules",
44+
"artifacts": "napi artifacts",
45+
"build": "napi build --platform --release",
46+
"build:debug": "napi build --platform",
47+
"prepublishOnly": "napi prepublish -t npm",
48+
"preversion": "napi build --platform && git add .",
49+
"version": "napi version"
50+
},
51+
"dependencies": {
52+
"@types/w3c-web-usb": "^1.0.13"
53+
},
54+
"devDependencies": {
55+
"@napi-rs/cli": "^3.2.0",
56+
"typescript": "^5.9.3"
57+
},
2558
"napi": {
2659
"binaryName": "usb",
2760
"targets": [
@@ -37,52 +70,11 @@
3770
"x86_64-unknown-freebsd",
3871
"aarch64-unknown-linux-musl",
3972
"aarch64-pc-windows-msvc",
40-
"armv7-linux-androideabi",
41-
"wasm32-wasip1-threads"
42-
]
43-
},
44-
"engines": {
45-
"node": ">= 12.22.0 < 13 || >= 14.17.0 < 15 || >= 15.12.0 < 16 || >= 16.0.0"
46-
},
47-
"publishConfig": {
48-
"registry": "https://registry.npmjs.org/",
49-
"access": "public"
50-
},
51-
"scripts": {
52-
"artifacts": "napi artifacts",
53-
"build": "napi build --platform --release",
54-
"build:debug": "napi build --platform",
55-
"prepublishOnly": "napi prepublish -t npm",
56-
"test": "ava",
57-
"preversion": "napi build --platform && git add .",
58-
"version": "napi version"
59-
},
60-
"devDependencies": {
61-
"@emnapi/core": "^1.5.0",
62-
"@emnapi/runtime": "^1.5.0",
63-
"@napi-rs/cli": "^3.2.0",
64-
"@oxc-node/core": "^0.0.35",
65-
"@tybys/wasm-util": "^0.10.0",
66-
"ava": "^6.4.1",
67-
"chalk": "^5.6.2",
68-
"npm-run-all2": "^8.0.4",
69-
"typescript": "^5.9.2"
70-
},
71-
"ava": {
72-
"extensions": {
73-
"ts": "module"
74-
},
75-
"timeout": "2m",
76-
"workerThreads": false,
77-
"environmentVariables": {
78-
"OXC_TSCONFIG_PATH": "./__test__/tsconfig.json"
79-
},
80-
"nodeArguments": [
81-
"--import",
82-
"@oxc-node/core/register"
73+
"armv7-linux-androideabi"
8374
]
8475
},
85-
"dependencies": {
86-
"@types/w3c-web-usb": "^1.0.13"
87-
}
76+
"files": [
77+
"index.d.ts",
78+
"index.js"
79+
]
8880
}

0 commit comments

Comments
 (0)