ckgl/node_modules/barcode-detector/package.json
2024-12-21 18:03:43 +08:00

103 lines
3.1 KiB
JSON

{
"name": "barcode-detector",
"description": "A Barcode Detection API polyfill that uses ZXing webassembly under the hood",
"private": false,
"version": "2.2.2",
"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": "zzwu@zju.edu.cn"
},
"keywords": [
"es6",
"qrcode",
"barcode",
"barcode-detector",
"wasm",
"polyfill",
"zxing",
"esmodule",
"webassembly"
],
"author": {
"name": "Ze-Zheng Wu"
},
"license": "MIT",
"config": {
"port": "18080"
},
"scripts": {
"lint": "eslint . --ext .ts",
"type-check": "tsc --noEmit --emitDeclarationOnly false",
"format": "prettier . --write",
"prebuild": "npm run lint && npm run type-check && npm run format",
"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",
"pretest": "tsx ./scripts/list-dir.ts",
"pretest:ui": "tsx ./scripts/list-dir.ts",
"precoverage": "tsx ./scripts/list-dir.ts",
"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": "npm run build",
"ncu": "npx npm-check-updates --filterVersion \"/^[~^]/\" -u",
"postncu": "npm i",
"bump-zxing-wasm": "npm i zxing-wasm@latest --save-exact"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"@vitest/browser": "^1.1.0",
"@vitest/coverage-istanbul": "^1.1.0",
"@vitest/ui": "^1.1.0",
"concurrently": "^8.2.2",
"eslint": "^8.56.0",
"http-server": "^14.1.1",
"npm-check-updates": "^16.14.12",
"playwright": "^1.40.1",
"prettier": "^3.1.1",
"rimraf": "^5.0.5",
"start-server-and-test": "^2.0.3",
"tsx": "^4.7.0",
"typescript": "^5.3.3",
"vite": "^5.0.10",
"vitest": "^1.1.0"
},
"dependencies": {
"@types/dom-webcodecs": "^0.1.11",
"zxing-wasm": "1.1.3"
}
}