-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpackage.json
143 lines (143 loc) · 4.54 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
133
134
135
136
137
138
139
140
141
142
143
{
"name": "barcode-detector",
"description": "A Barcode Detection API polyfill that uses ZXing webassembly under the hood",
"private": false,
"version": "3.0.0",
"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"
},
"./ponyfill": {
"import": "./dist/es/ponyfill.js",
"require": "./dist/cjs/ponyfill.js",
"default": "./dist/es/ponyfill.js"
},
"./polyfill": {
"import": "./dist/es/polyfill.js",
"require": "./dist/cjs/polyfill.js",
"default": "./dist/es/polyfill.js"
},
"./pure": {
"import": "./dist/es/ponyfill.js",
"require": "./dist/cjs/ponyfill.js",
"default": "./dist/es/ponyfill.js"
},
"./side-effects": {
"import": "./dist/es/polyfill.js",
"require": "./dist/cjs/polyfill.js",
"default": "./dist/es/polyfill.js"
}
},
"typesVersions": {
"*": {
"ponyfill": [
"./dist/es/ponyfill.d.ts",
"./dist/cjs/ponyfill.d.ts"
],
"polyfill": [
"./dist/es/polyfill.d.ts",
"./dist/cjs/polyfill.d.ts"
],
"pure": [
"./dist/es/ponyfill.d.ts",
"./dist/cjs/ponyfill.d.ts"
],
"side-effects": [
"./dist/es/polyfill.d.ts",
"./dist/cjs/polyfill.d.ts"
]
}
},
"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",
"browser": "playwright install chromium firefox",
"test:ci": "pnpm -s browser && start-server-and-test $npm_package_config_port 'vitest --hideSkippedTests'",
"test": "pnpm -s browser && start-server-and-test $npm_package_config_port 'vitest --coverage --hideSkippedTests'",
"test:ui": "pnpm -s browser && start-server-and-test $npm_package_config_port 'vitest --ui --coverage --hideSkippedTests'",
"coverage": "pnpm -s browser && start-server-and-test $npm_package_config_port 'vitest run --coverage --hideSkippedTests'",
"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.4",
"@changesets/cli": "^2.27.12",
"@commitlint/cli": "^19.7.1",
"@commitlint/config-conventional": "^19.7.1",
"@types/node": "^22.13.1",
"@vitest/browser": "^3.0.5",
"@vitest/coverage-istanbul": "^3.0.5",
"@vitest/ui": "^3.0.5",
"concurrently": "^9.1.2",
"http-server": "^14.1.1",
"lint-staged": "^15.4.3",
"playwright": "^1.50.1",
"prettier": "^3.4.2",
"rimraf": "^6.0.1",
"simple-git-hooks": "^2.11.1",
"start-server-and-test": "^2.0.10",
"tsx": "^4.19.2",
"typescript": "^5.7.3",
"vite": "^6.1.0",
"vitest": "^3.0.5"
},
"dependencies": {
"zxing-wasm": "^2.0.1"
},
"packageManager": "[email protected]+sha512.398035c7bd696d0ba0b10a688ed558285329d27ea994804a52bad9167d8e3a72bcb993f9699585d3ca25779ac64949ef422757a6c31102c12ab932e5cbe5cc92"
}