Added "type": "module" in package.json for vite

This commit is contained in:
NicolasCantu 2025-11-04 23:00:40 +01:00
parent 059f3e2e33
commit 696fc5833c

View File

@ -1,11 +1,12 @@
{ {
"name": "sdk_client", "name": "sdk_client",
"version": "1.0.0", "version": "1.0.0",
"type": "module",
"description": "", "description": "",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"build_wasm": "wasm-pack build --out-dir ../ihm_client/pkg ../sdk_client --target bundler --dev", "build_wasm": "wasm-pack build --out-dir ../ihm_client_dev2/pkg ../sdk_client --target bundler --dev",
"start": "vite --host 0.0.0.0", "start": "vite --host 0.0.0.0",
"build": "tsc && vite build", "build": "tsc && vite build",
"deploy": "sudo cp -r dist/* /var/www/html/", "deploy": "sudo cp -r dist/* /var/www/html/",