-
Notifications
You must be signed in to change notification settings - Fork 116
Expand file tree
/
Copy pathpackage.json
More file actions
98 lines (98 loc) · 3.19 KB
/
package.json
File metadata and controls
98 lines (98 loc) · 3.19 KB
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
{
"name": "@utoo/pack",
"version": "1.3.1",
"main": "cjs/index.js",
"module": "esm/index.js",
"types": "esm/index.d.ts",
"exports": {
".": {
"types": "./esm/index.d.ts",
"import": "./esm/index.js",
"require": "./cjs/index.js"
},
"./cjs/*": "./cjs/*",
"./esm/*": "./esm/*",
"./config_schema.json": "./config_schema.json",
"./package.json": "./package.json"
},
"files": [
"cjs",
"esm",
"config_schema.json"
],
"napi": {
"name": "pack",
"triples": {
"defaults": false,
"additional": [
"aarch64-apple-darwin",
"x86_64-apple-darwin",
"aarch64-unknown-linux-gnu",
"aarch64-unknown-linux-musl",
"x86_64-unknown-linux-gnu",
"x86_64-unknown-linux-musl",
"x86_64-pc-windows-msvc"
]
}
},
"license": "MIT",
"dependencies": {
"@babel/code-frame": "7.22.5",
"@hono/node-server": "^1.19.11",
"@hono/node-ws": "^1.3.0",
"@swc/helpers": "0.5.15",
"@utoo/pack-shared": "*",
"domparser-rs": "^0.0.7",
"find-up": "4.1.0",
"get-port": "5.1.1",
"hono": "^4.12.5",
"nanoid": "^3.3.11",
"picocolors": "^1.1.1",
"send": "0.17.1",
"ws": "^8.18.1",
"semver": "^7.7.1"
},
"peerDependencies": {
"less": "^4.0.0",
"less-loader": "^12.0.0",
"postcss": "8.4.31",
"resolve-url-loader": "^5.0.0",
"sass": "1.54.0",
"sass-loader": "^13.2.0",
"styled-jsx": "^5.1.6"
},
"devDependencies": {
"@napi-rs/cli": "^2.18.0",
"@types/babel__code-frame": "7.0.2",
"@types/mime": "^3.0.4",
"@types/mime-types": "3.0.1",
"@types/node": "^20.3.0",
"@types/send": "0.14.4",
"@types/ws": "^8.18.1",
"@types/semver": "^7.7.1",
"typescript": "^5.8.3"
},
"engines": {
"node": ">= 20"
},
"scripts": {
"build": "npm run build:binding && npm run build:cjs && npm run build:esm",
"build:js": "npm run build:cjs && npm run build:esm",
"build:cjs": "rm -rf cjs && tsc -p ./tsconfig.json --module commonjs --outDir cjs && cp src/*.d.ts cjs/",
"build:esm": "rm -rf esm && tsc -p ./tsconfig.json --module esnext --outDir esm && cp src/*.d.ts esm/ && node ../../scripts/add-esm-extensions.cjs && node scripts/inject-esm-dirname.cjs",
"build:local": "npm run build:binding:local && npx turbo run build --filter=@utoo/pack-shared && npm run build:cjs && npm run build:esm && cp src/*.node cjs/ && cp src/*.node esm/",
"artifacts": "napi artifacts --dir ./src --dist npm",
"build:binding": "napi build src --platform --release -p pack-napi --cargo-cwd ../../ --cargo-name pack_napi --features plugin --js binding.js --dts binding.d.ts",
"build:binding:local": "napi build src --platform --profile release-local -p pack-napi --cargo-cwd ../../ --cargo-name pack_napi --features plugin --js binding.js --dts binding.d.ts",
"test": "vitest run",
"clean": "rm -rf cjs esm",
"prepublishOnly": "npm run build:js && napi prepublish -t npm --skip-gh-release",
"version": "napi version",
"generate-features-list": "node ./scripts/generate-feature-list.js"
},
"repository": {
"type": "git",
"url": "https://github.com/utooland/utoo",
"directory": "packages/pack"
}
}