UNPKG

esm-potrace-wasm

Version:

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

54 lines (53 loc) 1.88 kB
{ "name": "esm-potrace-wasm", "version": "0.5.0", "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": "./dist/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 . --fix", "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": "^10.6.0", "eslint-config-google": "^0.14.0", "eslint-config-prettier": "^10.1.8", "http-server": "^14.1.1", "prettier": "^3.9.4", "run-script-os": "^1.1.6", "shx": "^0.4.0", "terser": "^5.48.0" }, "keywords": [ "potrace" ] }