Skip to content

Commit

Permalink
v0.0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
cobycloud committed Dec 14, 2024
1 parent d0aa350 commit 0642f4f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion libs/react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@swarmakit/react",
"private": false,
"version": "0.0.13",
"version": "0.0.14",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion libs/svelte/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@swarmakit/svelte",
"private": false,
"version": "0.0.13",
"version": "0.0.14",
"type": "module",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
Expand Down
6 changes: 4 additions & 2 deletions libs/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@swarmakit/vue",
"private": false,
"version": "0.0.13",
"version": "0.0.14",
"type": "module",
"main": "./dist/index.umd.cjs",
"module": "./dist/index.js",
Expand All @@ -22,7 +22,9 @@
"prepublishOnly": "npm run build"
},
"files": [
"dist/**/*",
"dist/index.es.js",
"dist/index.umd.js",
"dist/index.d.ts",
"README.md"
],
"dependencies": {
Expand Down
14 changes: 10 additions & 4 deletions libs/vue/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,27 @@ import vue from '@vitejs/plugin-vue';
import dts from 'vite-plugin-dts';

export default defineConfig({
plugins: [vue(), dts()],
plugins: [
vue(),
dts({
outputDir: 'dist', // Ensure declaration files are written to `dist`
include: ['./src/**/*.ts', './src/**/*.vue'], // Include .ts and .vue files
}),
],
build: {
lib: {
entry: './src/index.ts',
entry: './src/index.ts', // Main entry file
name: 'SwarmakitVue',
fileName: (format) => `index.${format}.js`,
},
rollupOptions: {
external: ['vue'],
external: ['vue'], // Exclude Vue from the bundle
output: {
globals: {
vue: 'Vue',
},
},
},
outDir: 'dist',
outDir: 'dist', // Ensure output is in `dist`
},
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swarmakit",
"version": "0.0.13",
"version": "0.0.14",
"private": false,
"workspaces": [
"libs/react",
Expand Down

0 comments on commit 0642f4f

Please sign in to comment.