-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
65 lines (65 loc) · 1.93 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
{
"name": "barcode-detector-api-polyfill",
"version": "1.0.16",
"private": false,
"description": "A polyfill for the BarcodeDetector API using the ZXing library",
"scripts": {
"clean": "shx rm -rf dist",
"build": "npm run clean && npm run test && npm run build:esm && npm run build:cjs && npm run build:browser && npm run build:copy",
"build:esm": "tsc --build tsconfig.esm.json",
"build:cjs": "tsc --build tsconfig.cjs.json",
"build:browser": "esbuild src/browser.ts --outfile=dist/browser/barcode-detector-polyfill.min.js --bundle --tree-shaking --target=firefox112,safari16 --minify --sourcemap",
"build:copy": "shx cp README.md dist && shx cp package.json dist && shx cp LICENSE dist",
"lint": "eslint src __tests__",
"test": "jest",
"test:coverage": "jest --coverage"
},
"keywords": [
"barcode",
"detector",
"reader",
"api",
"polyfill",
"browser"
],
"repository": {
"type": "git",
"url": "https://github.com/StefanNedelchev/barcode-detector-polyfill.git"
},
"author": "Stefan Nedelchev",
"license": "MIT",
"types": "./cjs/index.d.ts",
"main": "./cjs/index.js",
"unpkg": "./browser/barcode-detector-polyfill.min.js",
"exports": {
".": {
"import": {
"types": "./esm/index.d.ts",
"default": "./esm/index.js"
},
"require": {
"types": "./cjs/index.d.ts",
"default": "./cjs/index.js"
}
}
},
"dependencies": {
"@zxing/browser": "^0.1.5",
"@zxing/library": "^0.21.3"
},
"devDependencies": {
"@types/jest": "^29.5.13",
"@types/node": "^18.19.50",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"canvas": "^2.11.2",
"esbuild": "^0.23.1",
"eslint": "^8.57.1",
"jest": "^29.7.0",
"jest-canvas-mock": "^2.5.2",
"jest-environment-jsdom": "^29.7.0",
"shx": "^0.3.4",
"ts-jest": "^29.2.5",
"typescript": "~5.4.5"
}
}