From 1a34e6f95b72f9b2dc57a53f3c2ca41d63fe92f3 Mon Sep 17 00:00:00 2001 From: Maud Royer Date: Thu, 20 Jun 2024 18:36:20 +0200 Subject: [PATCH] fix: build and main output file --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ef0689c..11e2043 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,10 @@ "scripts": { "dev": "concurrently \"vite build --watch --mode development\" \"http-server dist -p 3001 -o\"", "build": "vite build", - "check": "svelte-check --tsconfig ./tsconfig.json" + "check": "svelte-check --tsconfig ./tsconfig.json", + "prepublish": "npm run build" }, + "main": "dist/resin-formulaire.js", "devDependencies": { "@sveltejs/vite-plugin-svelte": "^3.0.2", "@tsconfig/svelte": "^5.0.2",