From 2f3da888f8058aab2506c0c681cc614abb8ae66f Mon Sep 17 00:00:00 2001 From: vnau <20983143+vnau@users.noreply.github.com> Date: Sat, 7 Dec 2024 02:35:11 +0100 Subject: [PATCH] update package --- package-lock.json | 6 +++--- package.json | 25 ++++++++++++++++++------- src/lib/index.ts | 1 - vite.config.ts | 9 ++++++++- 4 files changed, 29 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9ea9dea..2a1eb75 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "svelte-gauge", - "version": "1.0.0", + "version": "1.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "svelte-gauge", - "version": "1.0.0", + "version": "1.1.0", "license": "MIT", "devDependencies": { "@sveltejs/adapter-static": "^3.0.5", @@ -22,7 +22,7 @@ "svelte-check": "^4.0.0", "typescript": "^5.0.0", "typescript-eslint": "^8.0.0", - "vite": "^5.0.11" + "vite": "^5.4.11" }, "peerDependencies": { "svelte": "^4.2.12" diff --git a/package.json b/package.json index 2afde88..914de15 100644 --- a/package.json +++ b/package.json @@ -3,12 +3,25 @@ "description": "Svelte Gauge Component", "author": "vnau", "homepage": "https://github.com/vnau/svelte-gauge#readme", - "repository": "https://github.com/vnau/svelte-gauge", + "repository": { + "type": "git", + "url": "git+https://github.com/vnau/svelte-gauge.git" + }, "license": "MIT", - "version": "1.0.0", + "version": "1.1.0", + "keywords": [ + "component-library", + "components-library", + "components", + "gauge", + "svelte", + "sveltekit", + "svelte-component", + "ui" + ], "scripts": { "dev": "vite dev", - "build": "vite build && npm run package", + "build": "vite build --mode production && npm run package", "preview": "vite preview", "package": "svelte-kit sync && svelte-package && publint", "prepublishOnly": "npm run package", @@ -21,9 +34,7 @@ "!dist/**/*.test.*", "!dist/**/*.spec.*" ], - "sideEffects": [ - "**/*.css" - ], + "sideEffects": false, "svelte": "./dist/index.js", "main": "dist/index.js", "types": "./dist/index.d.ts", @@ -51,6 +62,6 @@ "svelte": "^4.2.12", "typescript-eslint": "^8.0.0", "typescript": "^5.0.0", - "vite": "^5.0.11" + "vite": "^5.4.11" } } \ No newline at end of file diff --git a/src/lib/index.ts b/src/lib/index.ts index a3e1e76..97859b1 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -1,2 +1 @@ -// Reexport your entry components here export { default as Gauge, default } from './Gauge.svelte' diff --git a/vite.config.ts b/vite.config.ts index bbf8c7d..4de3c80 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,5 +2,12 @@ import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; export default defineConfig({ - plugins: [sveltekit()] + plugins: [sveltekit()], + css: { + preprocessorOptions: { + scss: { + api: 'modern-compiler', + } + } + } });