-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
39 lines (39 loc) · 2.06 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
{
"name": "@crabnebula/file-icons",
"version": "0.2.0",
"description": "File Icons for IDEs",
"license": "MIT OR Apache-2.0",
"author": "Jonas Kruckenberg <[email protected]>",
"repository": "https://github.com/crabnebula-dev/file-icons",
"keywords": [
"icons",
"file-icons"
],
"type": "module",
"main": "dist/lib.js",
"types": "dist/lib.d.ts",
"files": [
"dist",
"icons"
],
"scripts": {
"gen-lut": "esbuild scripts/gen-lut.ts --bundle --outdir=scripts --format=esm --platform=node && node scripts/gen-lut.js",
"build:rust:debug": "cargo build --target wasm32-unknown-unknown --no-default-features --features _web_build",
"build:rust": "cargo build --release --target wasm32-unknown-unknown --no-default-features --features _web_build -Z build-std=core,panic_abort -Z build-std-features=panic_immediate_abort && wizer ./target/wasm32-unknown-unknown/release/file_icons.wasm -o ./target/wasm32-unknown-unknown/release/file_icons_init.wasm",
"build:dts": "tsc --declaration --emitDeclarationOnly --declarationDir dist src/lib.ts src/wasm.d.ts",
"build:js": "esbuild src/lib.ts --bundle --format=esm --outdir=dist --loader:.wasm=copy --asset-names=[name] --alias:file_icons.wasm=./target/wasm32-unknown-unknown/release/file_icons_init.wasm",
"build:js:debug": "esbuild src/lib.ts --bundle --format=esm --outdir=dist --loader:.wasm=copy --asset-names=[name] --alias:file_icons.wasm=./target/wasm32-unknown-unknown/debug/file_icons.wasm",
"build": "rm -rf dist && pnpm build:rust && pnpm build:dts && pnpm build:js",
"build:debug": "rm -rf dist && pnpm build:rust:debug && pnpm build:dts && pnpm build:js:debug",
"test:e2e": "pnpm vitest run tests"
},
"devDependencies": {
"@vitest/browser": "^0.34.6",
"esbuild": "^0.21.0",
"typescript": "^5.5.2",
"vite-plugin-wasm": "^3.3.0",
"vitest": "^0.34.6",
"webdriverio": "^8.39.0"
},
"packageManager": "[email protected]+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a"
}