-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
132 lines (132 loc) · 4.43 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{
"name": "zxing-wasm",
"description": "ZXing-C++ WebAssembly as an ES/CJS module with types",
"private": false,
"version": "1.3.4",
"type": "module",
"files": [
"./dist"
],
"main": "./dist/cjs/full/index.js",
"module": "./dist/es/full/index.js",
"exports": {
".": {
"import": "./dist/es/full/index.js",
"require": "./dist/cjs/full/index.js",
"default": "./dist/es/full/index.js"
},
"./full": {
"import": "./dist/es/full/index.js",
"require": "./dist/cjs/full/index.js",
"default": "./dist/es/full/index.js"
},
"./reader": {
"import": "./dist/es/reader/index.js",
"require": "./dist/cjs/reader/index.js",
"default": "./dist/es/reader/index.js"
},
"./writer": {
"import": "./dist/es/writer/index.js",
"require": "./dist/cjs/writer/index.js",
"default": "./dist/es/writer/index.js"
},
"./reader/zxing_reader.wasm": "./dist/reader/zxing_reader.wasm",
"./writer/zxing_writer.wasm": "./dist/writer/zxing_writer.wasm",
"./full/zxing_full.wasm": "./dist/full/zxing_full.wasm"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Sec-ant/zxing-wasm.git"
},
"homepage": "https://github.com/Sec-ant/zxing-wasm",
"bugs": {
"url": "https://github.com/Sec-ant/zxing-wasm/issues",
"email": "[email protected]"
},
"keywords": [
"qrcode",
"barcode",
"wasm",
"zxing",
"zxing-cpp",
"esmodule",
"webassembly"
],
"author": {
"name": "Ze-Zheng Wu"
},
"license": "MIT",
"publishConfig": {
"access": "public"
},
"scripts": {
"update-hooks": "simple-git-hooks",
"submodule:init": "git submodule update --init",
"submodule:update": "git submodule update --remote",
"cmake": "emcmake cmake -S src/cpp -B build",
"build:wasm": "cmake --build build -j$(($(nproc 2>/dev/null || sysctl -n hw.logicalcpu) - 1))",
"copy:wasm": "copy-files-from-to",
"docs:dev": "conc \"pnpm:docs:preview\" \"typedoc --watch --excludeInternal\"",
"docs:build": "typedoc --excludeInternal",
"docs:preview": "vite preview --outDir ./docs",
"dev": "vite",
"lint": "biome lint .",
"type-check": "tsc -p ./tsconfig.pkg.json --noEmit --emitDeclarationOnly false",
"format:prettier": "pretty-quick",
"format:biome": "biome format . --write",
"format": "pnpm -s format:prettier && pnpm -s format:biome",
"check:biome": "biome check --write .",
"check": "pnpm -s format:prettier && pnpm -s check:biome",
"clear:dist": "rimraf dist",
"prebuild": "pnpm -s check && pnpm -s type-check && pnpm -s clear:dist",
"build:es": "vite build",
"build:cjs": "tsx ./scripts/build-cjs.ts",
"build:iife": "tsx ./scripts/build-iife.ts",
"build": "conc \"pnpm:build:es\" \"pnpm:build:cjs\" \"pnpm:build:iife\"",
"postbuild:es": "tsc -p ./tsconfig.pkg.json --declarationDir ./dist/es",
"postbuild:cjs": "tsc -p ./tsconfig.pkg.json --declarationDir ./dist/cjs",
"postbuild": "conc \"pnpm:copy:wasm\" \"pnpm:docs:build\"",
"build:all": "pnpm -s submodule:init && pnpm -s cmake && pnpm -s build:wasm && pnpm -s build",
"preview": "vite preview",
"prepublishOnly": "pnpm -s build:all",
"bump-biome:latest": "pnpm add -DE @biomejs/biome@latest",
"bump-biome:nightly": "pnpm add -DE @biomejs/biome@nightly",
"sync-emsdk": "./scripts/sync-emsdk.sh",
"test": "vitest --hideSkippedTests",
"test:ui": "vitest --hideSkippedTests --ui"
},
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/types": "^7.26.0",
"@biomejs/biome": "1.9.4",
"@changesets/cli": "^2.27.9",
"@types/babel__core": "^7.20.5",
"@types/node": "^22.9.0",
"@vitest/ui": "^2.1.4",
"concurrently": "^9.1.0",
"copy-files-from-to": "^3.11.0",
"jimp": "^1.6.0",
"lint-staged": "^15.2.10",
"nano-memoize": "^3.0.16",
"prettier": "^3.3.3",
"pretty-quick": "^4.0.0",
"rimraf": "^6.0.1",
"simple-git-hooks": "^2.11.1",
"tinyglobby": "^0.2.10",
"tsx": "^4.19.2",
"typedoc": "^0.26.11",
"typescript": "^5.6.3",
"vite": "^5.4.10",
"vite-plugin-babel": "^1.2.0",
"vitest": "^2.1.4"
},
"dependencies": {
"@types/emscripten": "^1.39.13"
},
"overrides": {
"typedoc": {
"typescript": "$typescript"
}
},
"packageManager": "[email protected]+sha512.88c9c3864450350e65a33587ab801acf946d7c814ed1134da4a924f6df5a2120fd36b46aab68f7cd1d413149112d53c7db3a4136624cfd00ff1846a0c6cef48a"
}