npm packaging: reduce the size of the package

This commit is contained in:
Matthieu Baumann
2024-09-12 10:54:12 +02:00
parent 959c99fb19
commit f5ac0dff61

View File

@@ -9,9 +9,7 @@
"module": "./dist/aladin.js",
"main": "./dist/aladin.js",
"files": [
"dist/aladin.js",
"dist/aladin.umd.cjs",
"dist/index.html"
"dist/aladin.js"
],
"exports": {
".": {
@@ -36,8 +34,8 @@
"wasm:dbg": "wasm-pack build --dev ./src/core --target web --out-name core -- --features=webgl2,dbg -Z build-std=panic_abort,std -Z build-std-features=panic_immediate_abort ",
"predeploy": "npm run build && rm -rf aladin-lite*.tgz && npm pack",
"deploy": "python3 deploy/deploy.py",
"build": "npm run wasm && vite build && cp examples/index.html dist/index.html",
"build:dbg": "npm run wasm:dbg && vite build && cp examples/index.html dist/index.html",
"build": "npm run wasm && vite build",
"build:dbg": "npm run wasm:dbg && vite build",
"dev": "npm run build && vite",
"dev:dbg": "npm run build:dbg && vite",
"serve": "npm run dev",