@icebreakers/monorepo 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-6GYK5EWY.js → chunk-APOKJFIJ.js} +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/templates/vue-lib-template/tsconfig.app.json +1 -1
- package/templates/vue-lib-template/vite.config.ts +12 -3
- package/templates/vue-lib-template/vite.shared.config.ts +1 -6
- package/templates/vue-lib-template/vitest.config.ts +4 -1
package/dist/cli.cjs
CHANGED
package/dist/cli.js
CHANGED
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
|
+
import type { UserConfig } from 'vite'
|
|
2
|
+
import Vue from '@vitejs/plugin-vue'
|
|
1
3
|
import path from 'pathe'
|
|
4
|
+
import VueRouter from 'unplugin-vue-router/vite'
|
|
2
5
|
import { mergeConfig } from 'vite'
|
|
3
|
-
import
|
|
6
|
+
import DTS from 'vite-plugin-dts'
|
|
4
7
|
import { sharedConfig } from './vite.shared.config'
|
|
5
8
|
|
|
6
9
|
export default mergeConfig(sharedConfig, {
|
|
7
10
|
plugins: [
|
|
8
|
-
|
|
11
|
+
VueRouter(
|
|
12
|
+
{
|
|
13
|
+
dts: path.relative(import.meta.dirname, './types/typed-router.d.ts'),
|
|
14
|
+
},
|
|
15
|
+
),
|
|
16
|
+
Vue(),
|
|
17
|
+
DTS(
|
|
9
18
|
{
|
|
10
19
|
tsconfigPath: './tsconfig.app.json',
|
|
11
20
|
entryRoot: './lib',
|
|
@@ -33,4 +42,4 @@ export default mergeConfig(sharedConfig, {
|
|
|
33
42
|
},
|
|
34
43
|
},
|
|
35
44
|
},
|
|
36
|
-
})
|
|
45
|
+
} satisfies UserConfig)
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import Vue from '@vitejs/plugin-vue'
|
|
2
1
|
import path from 'pathe'
|
|
3
|
-
|
|
2
|
+
|
|
4
3
|
// https://vite.dev/guide/build.html#library-mode
|
|
5
4
|
import { defineConfig } from 'vite'
|
|
6
5
|
|
|
@@ -11,8 +10,4 @@ export const sharedConfig = defineConfig({
|
|
|
11
10
|
'~': path.resolve(import.meta.dirname, 'lib'),
|
|
12
11
|
},
|
|
13
12
|
},
|
|
14
|
-
plugins: [
|
|
15
|
-
VueRouter(),
|
|
16
|
-
Vue(),
|
|
17
|
-
],
|
|
18
13
|
})
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { UserConfig } from 'vite'
|
|
2
|
+
import Vue from '@vitejs/plugin-vue'
|
|
1
3
|
import { mergeConfig } from 'vitest/config'
|
|
2
4
|
import { sharedConfig } from './vite.shared.config'
|
|
3
5
|
|
|
@@ -7,4 +9,5 @@ export default mergeConfig(sharedConfig, {
|
|
|
7
9
|
testTimeout: 60_000,
|
|
8
10
|
environment: 'jsdom',
|
|
9
11
|
},
|
|
10
|
-
|
|
12
|
+
plugins: [Vue()],
|
|
13
|
+
} satisfies UserConfig)
|