{
  "name": "electron-magickwand",
  "version": "0.0.2",
  "description": "JavaScript and TypeScript bindings for ImageMagick-7 - electron",
  "main": "./native/index.cjs",
  "types": "./lib/index.d.ts",
  "exports": {
    ".": {
      "types": "./lib/index.d.ts",
      "browser": "./lib/index.wasm.mjs",
      "default": "./lib/index.native.mjs"
    },
    "./native": {
      "types": "./native/index.d.ts",
      "import": "./native/index.mjs",
      "require": "./native/index.cjs"
    },
    "./wasm": {
      "types": "./lib/index.d.ts",
      "default": "./lib/index.wasm.mjs"
    },
    "./wasm/main": {
      "default": "./lib/binding/emscripten-wasm32/magickwand.js"
    },
    "./wasm/worker": {
      "default": "./lib/binding/emscripten-wasm32/magickwand.worker.js"
    },
    "./wasm/wasm": {
      "default": "./lib/binding/emscripten-wasm32/magickwand.wasm"
    },
    "./policy-limited.xml": "./deps/ImageMagick/config/policy-limited.xml",
    "./policy-open.xml": "./deps/ImageMagick/config/policy-open.xml",
    "./policy-secure.xml": "./deps/ImageMagick/config/policy-secure.xml",
    "./policy-websafe.xml": "./deps/ImageMagick/config/policy-websafe.xml"
  },
  "bin": {
    "magick": "scripts/cli.cjs"
  },
  "workspaces": [
    ".",
    "test"
  ],
  "scripts": {
    "preinstall": "npx @mmomtchev/xpm run npm-preinstall",
    "install": "npx xpm run npm-install",
    "postinstall": "node scripts/write-swig-sources.cjs",
    "build": "node-gyp configure && node-gyp build",
    "generate-bindings": "node scripts/generate-bindings.cjs",
    "generate-bindings:force": "node scripts/generate-bindings.cjs --force",
    "lint": "npx eslint",
    "test": "npm test -w test",
    "test:integration": "npm run test:integration -w test",
    "preversion": "npm run lint && npm run test",
    "postversion": "git push && git push --tags && node ./scripts/publish-packages.mjs",
    "postpublish": "gh workflow run test-package.yml -F package=magickwand.js@$npm_package_version",
    "example:browser": "cd example/browser/webpack && npx webpack-cli serve --mode=development --env development",
    "demo:start": "cd example/browser/demo && npx webpack-cli serve --mode=development --env development",
    "demo:build": "cd example/browser/demo && npx webpack --mode production",
    "demo:deploy": "cd example/browser/demo/dist && tar -zcf - . | ssh magickwand@orel.garga.net 'tar -C www -zxvf -'"
  },
  "keywords": [
    "imagemagick",
    "magick",
    "image",
    "resize",
    "convert",
    "filters",
    "node.js",
    "electron"
  ],
  "repository": {
    "type": "git",
    "url": "git+https://github.com/shizengzhou/electron-magickwand.git"
  },
  "author": "Shizeng Zhou <shizengzhou@outlook.com>",
  "license": "ISC",
  "bugs": {
    "url": "https://github.com/shizengzhou/electron-magickwand/issues"
  },
  "homepage": "https://github.com/shizengzhou/electron-magickwand#readme",
  "devDependencies": {
    "@eslint/eslintrc": "^3.3.4",
    "@eslint/js": "^10.0.1",
    "@octokit/core": "^7.0.2",
    "@types/node": "^25.0.0",
    "@typescript-eslint/eslint-plugin": "^8.0.0",
    "@typescript-eslint/parser": "^8.0.0",
    "copy-webpack-plugin": "^14.0.0",
    "eslint": "^10.0.0",
    "eslint-plugin-mocha": "^11.0.0",
    "gh-pages": "^6.1.1",
    "node-gyp": "^11.5.0",
    "ts-loader": "^9.5.2",
    "typescript": "^5.2.2",
    "webpack": "^5.88.2",
    "webpack-cli": "^7.0.2",
    "webpack-dev-server": "^5.0.3"
  },
  "dependencies": {
    "@emnapi/runtime": "=1.9.1",
    "@mmomtchev/hadron": "^1.1.0",
    "@mmomtchev/prebuild-install": "^1.0.2",
    "@mmomtchev/xpm": "^0.21.1",
    "emnapi": "=1.9.1",
    "node-addon-api": "^8.0.0"
  },
  "engines": {
    "node": ">=18"
  },
  "xpack": {
    "minimumXpmRequired": "0.20.0",
    "include": [
      "@mmomtchev/hadron/hadron.json"
    ],
    "devDependencies": {
      "@xpack-dev-tools/cmake": "3.31.9-1.1"
    },
    "properties": {
      "module_name": "magickwand",
      "native": true,
      "wasm": false,
      "flavor": "async",
      "conan": true,
      "argsConanInstall": "-pr:a=conan.profile",
      "commandGenerateImageMagickConfigure": "cmake -S deps/ImageMagick -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DMAGICK_HDRI_ENABLE=ON -DMAGICKCORE_QUANTUM_DEPTH=16 -B preconf",
      "commandGenerate_magickcore": "node src/deps.js src/deps-stub.cc MagickCore swig/magickcore.i",
      "commandGenerate_magickpp": "node src/deps.js src/deps-stub.cc \"deps/ImageMagick/Magick\\+\\+\" swig/magick++.i",
      "commandGenerate_magickwand": "node src/deps.js src/deps-stub.cc deps/ImageMagick/MagickWand swig/magickwand.i",
      "commandGenerateWrappers": "swig-jse -javascript -typescript -napi -c++ -split -exports ../native/index.cjs -Ideps/ImageMagick/Magick++/lib -Ideps/ImageMagick -Ipreconf -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -o swig/magickwand-js.cxx -outdir swig src/Magick++.i"
    },
    "actions": {
      "npm-preinstall": [
        "{% ifNpmOption regenerate %}npx @mmomtchev/xpm run generate{% endifNpmOption %}"
      ],
      "generate": [
        "npx @mmomtchev/xpm install --config generate",
        "npx @mmomtchev/xpm run generate --config generate"
      ]
    },
    "buildConfigurations": {
      "generate": {
        "devDependencies": {
          "@mmomtchev/swig-xpack": "5.0.12-1"
        },
        "actions": {
          "generate": [
            "{{ properties.commandGenerateImageMagickConfigure }}",
            "{{ properties.commandGenerate_magickcore }}",
            "{{ properties.commandGenerate_magickpp }}",
            "{{ properties.commandGenerate_magickwand }}",
            "{{ properties.commandGenerateWrappers }}"
          ]
        }
      },
      "native": {
        "properties": {
          "argsConanInstall": "-pr:a=conan.profile {% ifNpmOption standalone_build %}-pr:a=profiles/clang-{{ os.platform }}.profile{% endifNpmOption %}"
        }
      },
      "wasm-debug": {
        "properties": {
          "argsMesonPrepare": "-Doptimization=1"
        }
      }
    }
  }
}
