@skirtle/create-vue-lib 0.0.4 → 0.0.5
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/index.cjs
CHANGED
|
@@ -5623,7 +5623,7 @@ var import_ejs = __toESM(require_ejs(), 1);
|
|
|
5623
5623
|
// package.json
|
|
5624
5624
|
var package_default = {
|
|
5625
5625
|
name: "@skirtle/create-vue-lib",
|
|
5626
|
-
version: "0.0.
|
|
5626
|
+
version: "0.0.5",
|
|
5627
5627
|
author: "skirtle",
|
|
5628
5628
|
license: "MIT",
|
|
5629
5629
|
description: "Create a library using Vue and Vite",
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
<%_ } _%>
|
|
50
50
|
"@vue/tsconfig": "^0.7.0",
|
|
51
51
|
"copyfiles": "^2.4.1",
|
|
52
|
-
"cross-env": "^7.0.3",
|
|
53
52
|
"jsdom": "^26.0.0",
|
|
54
53
|
"npm-run-all2": "^7.0.2",
|
|
55
54
|
"publint": "^0.3.8",
|
|
@@ -73,7 +72,7 @@
|
|
|
73
72
|
"type-check": "vue-tsc --build",
|
|
74
73
|
"lint:package": "publint",
|
|
75
74
|
"build:copy": "copyfiles -f ../../README.md .",
|
|
76
|
-
"build:dev": "
|
|
75
|
+
"build:dev": "vite build --mode development",
|
|
77
76
|
"build:neutral": "vite build --mode neutral",
|
|
78
77
|
"build:prod": "vite build --mode production",
|
|
79
78
|
"build": "run-s clean:dist build:* type-check lint:package"
|
|
@@ -13,7 +13,7 @@ export default defineConfig(({ mode }): UserConfig => {
|
|
|
13
13
|
throw new Error(`Unknown mode: ${mode}`)
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
const expectedNodeEnv = mode === '
|
|
16
|
+
const expectedNodeEnv = mode === 'test' ? 'test' : 'production'
|
|
17
17
|
const nodeEnv = process.env.NODE_ENV
|
|
18
18
|
|
|
19
19
|
if (nodeEnv !== expectedNodeEnv) {
|
|
@@ -35,7 +35,12 @@ export default defineConfig(({ mode }): UserConfig => {
|
|
|
35
35
|
__DEV__: mode === 'production' ? 'false' : mode === 'development' ? 'true' : '!(process.env.NODE_ENV === "production")'
|
|
36
36
|
}
|
|
37
37
|
}),
|
|
38
|
-
vue(
|
|
38
|
+
vue({
|
|
39
|
+
features: {
|
|
40
|
+
componentIdGenerator: 'filepath',
|
|
41
|
+
prodDevtools: mode === 'development'
|
|
42
|
+
}
|
|
43
|
+
}),
|
|
39
44
|
dtsPlugin
|
|
40
45
|
],
|
|
41
46
|
<%_ if (config.includeAtAliases) { _%>
|