-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
112 lines (112 loc) · 3.58 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
{
"name": "barcode-detector",
"description": "A Barcode Detection API polyfill that uses ZXing webassembly under the hood",
"private": false,
"version": "2.3.1",
"type": "module",
"files": [
"./dist"
],
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"exports": {
".": {
"import": "./dist/es/index.js",
"require": "./dist/cjs/index.js",
"default": "./dist/es/index.js"
},
"./pure": {
"import": "./dist/es/pure.js",
"require": "./dist/cjs/pure.js",
"default": "./dist/es/pure.js"
},
"./side-effects": {
"import": "./dist/es/side-effects.js",
"require": "./dist/cjs/side-effects.js",
"default": "./dist/es/side-effects.js"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/Sec-ant/barcode-detector.git"
},
"homepage": "https://github.com/Sec-ant/barcode-detector",
"bugs": {
"url": "https://github.com/Sec-ant/barcode-detector/issues",
"email": "[email protected]"
},
"keywords": [
"es6",
"qrcode",
"barcode",
"barcode-detector",
"wasm",
"polyfill",
"zxing",
"esmodule",
"webassembly"
],
"author": {
"name": "Ze-Zheng Wu"
},
"license": "MIT",
"config": {
"port": "18080"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"update-hooks": "simple-git-hooks",
"lint": "biome lint .",
"type-check": "tsc --noEmit --emitDeclarationOnly false",
"format:prettier": "prettier . --write",
"format:biome": "biome format . --write",
"format": "conc \"npm:format:prettier\" \"npm:format:biome\"",
"check:biome": "biome check --write .",
"check": "conc \"npm:format:prettier\" \"npm: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 \"npm:build:es\" \"npm:build:cjs\" \"npm:build:iife\"",
"postbuild:es": "tsc --declarationDir ./dist/es",
"postbuild:cjs": "tsc --declarationDir ./dist/cjs",
"start": "vite preview --outDir ./tests --port $npm_package_config_port -l silent",
"test": "start-server-and-test $npm_package_config_port 'vitest --coverage'",
"test:ui": "start-server-and-test $npm_package_config_port 'vitest --ui --coverage'",
"coverage": "start-server-and-test $npm_package_config_port 'vitest run --coverage'",
"prepublishOnly": "pnpm -s build",
"bump-zxing-wasm": "pnpm add -E zxing-wasm@latest",
"bump-biome:latest": "pnpm add -DE @biomejs/biome@latest",
"bump-biome:nightly": "pnpm add -DE @biomejs/biome@nightly"
},
"devDependencies": {
"@biomejs/biome": "1.9.3",
"@changesets/cli": "^2.27.10",
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"@types/node": "^22.10.1",
"@vitest/browser": "^2.1.6",
"@vitest/coverage-istanbul": "^2.1.6",
"@vitest/ui": "^2.1.6",
"concurrently": "^9.1.0",
"http-server": "^14.1.1",
"lint-staged": "^15.2.10",
"playwright": "^1.49.0",
"prettier": "^3.4.1",
"rimraf": "^6.0.1",
"simple-git-hooks": "^2.11.1",
"start-server-and-test": "^2.0.8",
"tsx": "^4.19.2",
"typescript": "^5.7.2",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"dependencies": {
"@types/dom-webcodecs": "0.1.11",
"zxing-wasm": "1.3.4"
},
"packageManager": "[email protected]+sha512.1acb565e6193efbebda772702950469150cf12bcc764262e7587e71d19dc98a423dff9536e57ea44c49bdf790ff694e83c27be5faa23d67e0c033b583be4bfcf"
}