Files
vtracer/nodejs/package.json
T
Chris Tsang 42f94f0d15 Add local-publish script for the Node package
nodejs/scripts/publish.mjs builds the wasm (wasm-pack), runs the smoke test,
then `npm publish` to a configurable registry (default a local one at
http://localhost:4873; override via --registry= or NPM_REGISTRY). Supports
--dry-run. Wired as `npm run publish:local`.
2026-07-24 13:37:25 +01:00

33 lines
939 B
JSON

{
"name": "vtracer",
"version": "1.0.0-alpha.1",
"description": "Raster to vector graphics converter (SVG). WebAssembly build of the vtracer framework — no native dependencies.",
"main": "index.js",
"types": "index.d.ts",
"files": [
"index.js",
"index.d.ts",
"pkg/vtracer_wasm.js",
"pkg/vtracer_wasm_bg.wasm",
"pkg/vtracer_wasm.d.ts",
"pkg/vtracer_wasm_bg.wasm.d.ts"
],
"scripts": {
"build": "wasm-pack build --target nodejs --out-dir pkg",
"test": "node test.js",
"publish:local": "node scripts/publish.mjs",
"prepublishOnly": "npm run build"
},
"keywords": ["svg", "vectorization", "raster", "wasm", "computer-graphics"],
"license": "MIT OR Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/visioncortex/vtracer.git",
"directory": "nodejs"
},
"homepage": "http://www.visioncortex.org/vtracer",
"engines": {
"node": ">=16"
}
}