Skip to content

Commit

Permalink
update package
Browse files Browse the repository at this point in the history
  • Loading branch information
vnau committed Dec 7, 2024
1 parent a73bc0c commit 2f3da88
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 12 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 18 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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"
}
}
1 change: 0 additions & 1 deletion src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// Reexport your entry components here
export { default as Gauge, default } from './Gauge.svelte'
9 changes: 8 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}
}
}
});

0 comments on commit 2f3da88

Please sign in to comment.