@sidekick-coder/zenith-kit 0.3.6 → 0.3.7
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/client/index-DRqJOqUR.mjs +3484 -0
- package/dist/client/index.es.js +13786 -7064
- package/dist/components/index-DRqJOqUR.mjs +3484 -0
- package/dist/components/index.es.js +15193 -13466
- package/package.json +1 -2
- package/vite/plugins/zenith.js +7 -6
- package/vite.client.config.ts +10 -10
- package/vite.config.ts +15 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sidekick-coder/zenith-kit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Package to use with zenith framework",
|
|
6
6
|
"author": "Henrique Oliveira <henriqueoliwork@gmail.com>",
|
|
@@ -103,7 +103,6 @@
|
|
|
103
103
|
"@inquirer/prompts": "^8.4.3",
|
|
104
104
|
"@rollup/pluginutils": "^5.3.0",
|
|
105
105
|
"@tailwindcss/vite": "^4.2.4",
|
|
106
|
-
"@tanstack/vue-table": "^9.1.2",
|
|
107
106
|
"@types/express": "^5.0.6",
|
|
108
107
|
"@types/js-yaml": "^4.0.9",
|
|
109
108
|
"@types/lodash-es": "^4.17.12",
|
package/vite/plugins/zenith.js
CHANGED
|
@@ -17,9 +17,9 @@ import * as acorn from 'acorn'
|
|
|
17
17
|
* @param {Options} options
|
|
18
18
|
* @returns {import('vite').Plugin}
|
|
19
19
|
*/
|
|
20
|
-
export default function
|
|
21
|
-
const include = options?.include || '**/*.{js,ts,vue}'
|
|
22
|
-
const exclude = options?.exclude
|
|
20
|
+
export default function(options) {
|
|
21
|
+
const include = options?.include || '**/*.{js,mjs,ts,mts,vue}'
|
|
22
|
+
const exclude = options?.exclude
|
|
23
23
|
const imports = options?.imports || []
|
|
24
24
|
|
|
25
25
|
const filter = createFilter(include, exclude)
|
|
@@ -33,9 +33,9 @@ export default function (options) {
|
|
|
33
33
|
* @param {string} id
|
|
34
34
|
*/
|
|
35
35
|
transform(code, id) {
|
|
36
|
-
if (!filter(id))
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
if (!filter(id)) {
|
|
37
|
+
return null
|
|
38
|
+
}
|
|
39
39
|
|
|
40
40
|
const s = new MagicString(code)
|
|
41
41
|
let hasChanges = false
|
|
@@ -132,6 +132,7 @@ export default function (options) {
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
|
|
135
136
|
if (!hasChanges) return null
|
|
136
137
|
|
|
137
138
|
return {
|
package/vite.client.config.ts
CHANGED
|
@@ -32,16 +32,16 @@ const prebuild = () => ({
|
|
|
32
32
|
|
|
33
33
|
const externals = [
|
|
34
34
|
'vue',
|
|
35
|
-
'vue-router',
|
|
36
|
-
'@vueuse/core',
|
|
37
|
-
'@vueuse/router',
|
|
38
|
-
'vee-validate',
|
|
39
|
-
'@vee-validate/valibot',
|
|
40
|
-
"@unhead/vue",
|
|
41
|
-
"vue-router",
|
|
42
|
-
"vue-sonner",
|
|
43
|
-
"vee-validate",
|
|
44
|
-
"reka-ui",
|
|
35
|
+
// 'vue-router',
|
|
36
|
+
// '@vueuse/core',
|
|
37
|
+
// '@vueuse/router',
|
|
38
|
+
// 'vee-validate',
|
|
39
|
+
// '@vee-validate/valibot',
|
|
40
|
+
// "@unhead/vue",
|
|
41
|
+
// "vue-router",
|
|
42
|
+
// "vue-sonner",
|
|
43
|
+
// "vee-validate",
|
|
44
|
+
// "reka-ui",
|
|
45
45
|
]
|
|
46
46
|
|
|
47
47
|
const plugins: UserConfig['plugins'] = [
|
package/vite.config.ts
CHANGED
|
@@ -27,16 +27,22 @@ const prebuild = () => ({
|
|
|
27
27
|
|
|
28
28
|
const externals = [
|
|
29
29
|
'vue',
|
|
30
|
-
'vue-router',
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
'
|
|
34
|
-
'@
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
// 'vue-router',
|
|
31
|
+
// "vue-sonner",
|
|
32
|
+
//
|
|
33
|
+
// '@vueuse/core',
|
|
34
|
+
// '@vueuse/router',
|
|
35
|
+
//
|
|
36
|
+
// 'vee-validate',
|
|
37
|
+
// '@vee-validate/valibot',
|
|
38
|
+
//
|
|
39
|
+
// "@unhead/vue",
|
|
40
|
+
// "@unhead/vue/components",
|
|
41
|
+
|
|
39
42
|
"reka-ui",
|
|
43
|
+
"vaul-vue",
|
|
44
|
+
"lucide-vue-next",
|
|
45
|
+
"embla-carousel-vue"
|
|
40
46
|
]
|
|
41
47
|
|
|
42
48
|
const plugins: UserConfig['plugins'] = [
|