@flyfish-dev/cad-viewer 0.6.4 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyfish-dev/cad-viewer",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "description": "A production-oriented lightweight frontend CAD viewer for DWG, DXF, DWF, DWFx and XPS, built with TypeScript, worker-backed DWG WebAssembly parsing, native dwf-viewer integration, WebGL 2D/3D rendering and Canvas overlays.",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0-only",
@@ -81,6 +81,8 @@
81
81
  "copy:worker": "node ./scripts/copy-worker-asset.cjs",
82
82
  "dev": "npm run copy:wasm && npm run build:worker && npm run copy:worker && vite --config vite.config.ts --host 0.0.0.0",
83
83
  "typecheck": "tsc -p tsconfig.json --noEmit",
84
+ "test": "npm run test:regression",
85
+ "test:regression": "npm run build:lib && node --test test/*.test.mjs",
84
86
  "build:types": "tsc -p tsconfig.build.json",
85
87
  "build:worker": "vite build --config vite.worker.config.ts",
86
88
  "build:lib": "npm run copy:wasm && vite build --config vite.lib.config.ts && npm run build:worker && npm run build:types && npm run build:assets",
@@ -91,7 +93,7 @@
91
93
  "release:npm": "npm publish --access public --auth-type=web",
92
94
  "pages:dev": "npm run build:demo && wrangler pages dev dist-demo",
93
95
  "deploy:pages": "npm run build:demo && wrangler pages deploy dist-demo --project-name cad-viewer",
94
- "prepublishOnly": "npm run clean && npm run typecheck && npm run build:lib && npm run pack:dry",
96
+ "prepublishOnly": "npm run clean && npm run typecheck && npm run build:lib && node --test test/*.test.mjs && npm run pack:dry",
95
97
  "build:worker-check": "npm run typecheck && npm run build:demo",
96
98
  "check:wasm": "node ./scripts/check-wasm.cjs",
97
99
  "build:assets": "node ./scripts/copy-dist-assets.cjs",