{
  "name": "zxing-wasm",
  "description": "ZXing-C++ WebAssembly as an ES module with types",
  "private": false,
  "version": "1.1.3",
  "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": "zzwu@zju.edu.cn"
  },
  "keywords": [
    "qrcode",
    "barcode",
    "wasm",
    "zxing",
    "zxing-cpp",
    "esmodule",
    "webassembly"
  ],
  "author": {
    "name": "Ze-Zheng Wu"
  },
  "license": "MIT",
  "copyFiles": [
    {
      "from": "./src/reader/*.wasm",
      "to": "./dist/reader/"
    },
    {
      "from": "./src/writer/*.wasm",
      "to": "./dist/writer/"
    },
    {
      "from": "./src/full/*.wasm",
      "to": "./dist/full/"
    }
  ],
  "copyFilesSettings": {
    "whenFileExists": "overwrite"
  },
  "scripts": {
    "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) - 1))",
    "copy:wasm": "copy-files-from-to",
    "docs:dev": "conc \"npm:docs:preview\" \"typedoc --watch --excludeInternal\"",
    "docs:build": "typedoc --excludeInternal",
    "docs:preview": "vite preview --outDir ./docs",
    "dev": "vite",
    "lint": "eslint . --ext .ts",
    "type-check": "tsc --noEmit --emitDeclarationOnly false",
    "format": "prettier . --write",
    "clear:dist": "rimraf dist",
    "prebuild": "npm run lint && npm run type-check && npm run format && npm run 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",
    "postbuild": "conc \"npm:copy:wasm\" \"npm:docs:build\"",
    "build:all": "npm run submodule:init && npm run cmake && npm run build:wasm && npm run build",
    "preview": "vite preview",
    "prepublishOnly": "npm run build:all",
    "ncu": "npx npm-check-updates -u",
    "postncu": "npm i"
  },
  "devDependencies": {
    "@types/node": "^20.10.5",
    "@typescript-eslint/eslint-plugin": "^6.15.0",
    "@typescript-eslint/parser": "^6.15.0",
    "concurrently": "^8.2.2",
    "copy-files-from-to": "^3.9.1",
    "eslint": "^8.56.0",
    "npm-check-updates": "^16.14.12",
    "prettier": "^3.1.1",
    "rimraf": "^5.0.5",
    "tsx": "^4.7.0",
    "typedoc": "^0.25.4",
    "typescript": "^5.3.3",
    "vite": "^5.0.10"
  },
  "dependencies": {
    "@types/emscripten": "^1.39.10"
  }
}
