UNPKG

esm-potrace-wasm

Version:

A modern ESM build of the Potrace library for use in the browser.

67 lines (66 loc) 2.13 kB
{ "name": "esm-potrace-wasm", "version": "0.4.1", "description": "A modern ESM build of the Potrace library for use in the browser.", "main": "./dist/index.js", "browser": "./dist/index.js", "exports": { ".": "./dist/index.js", "./package.json": "./package.json" }, "module": "./dist/index.js", "type": "module", "types": "./src/index.d.ts", "files": [ "dist/" ], "scripts": { "start": "npx http-server", "clean": "run-script-os", "clean:win32": "if exist dist rd /s /q dist", "clean:default": "shx rm -rf ./dist", "build": "run-script-os", "build:win32": "npm run clean && mkdir dist && @powershell -NoProfile -ExecutionPolicy Unrestricted -Command ./build.ps1 && npm run terser", "build:default": "npm run clean && shx mkdir ./dist && bash ./build.sh && npm run terser", "terser": "shx echo \"export { potrace, ready as init };\" >> ./dist/temp.js && npx terser --compress --mangle --comments /@license/ --ecma 8 --module --output ./dist/index.js -- ./dist/temp.js && shx rm ./dist/temp.js && shx cp ./src/index.d.ts ./dist/index.d.ts", "lint": "npx eslint . --ext .js,.mjs --fix --ignore-pattern dist/", "fix": "npx prettier --write .", "prepare": "npm run lint && npm run fix && npm run build" }, "repository": { "type": "git", "url": "git+https://github.com/tomayac/esm-potrace-wasm.git" }, "author": "Thomas Steiner (tomac@google.com)", "license": "GPL-2.0", "bugs": { "url": "https://github.com/tomayac/esm-potrace-wasm/issues" }, "homepage": "https://github.com/tomayac/esm-potrace-wasm#readme", "devDependencies": { "eslint": "^8.22.0", "eslint-config-google": "^0.14.0", "eslint-config-prettier": "^8.5.0", "http-server": "^14.1.1", "prettier": "^2.7.1", "run-script-os": "^1.1.6", "shx": "^0.3.4", "terser": "^5.15.0" }, "eslintConfig": { "parserOptions": { "ecmaVersion": 2020, "sourceType": "module" }, "extends": [ "google", "prettier" ], "rules": { "valid-jsdoc": "off" } }, "keywords": [ "potrace" ] }