histoire 0.4.1 → 0.4.4
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/node/config.js +5 -0
- package/dist/node/vite.js +1 -0
- package/package.json +2 -2
- package/src/node/config.ts +6 -0
- package/src/node/vite.ts +1 -0
- package/vite.config.ts +1 -0
package/dist/node/config.js
CHANGED
|
@@ -156,6 +156,11 @@ export const mergeConfig = createDefu((obj, key, value) => {
|
|
|
156
156
|
}
|
|
157
157
|
return true;
|
|
158
158
|
}
|
|
159
|
+
// By default, arrays should be replaced
|
|
160
|
+
if (obj[key] && Array.isArray(obj[key])) {
|
|
161
|
+
obj[key] = value;
|
|
162
|
+
return true;
|
|
163
|
+
}
|
|
159
164
|
});
|
|
160
165
|
export async function resolveConfig(cwd = process.cwd(), mode) {
|
|
161
166
|
let result;
|
package/dist/node/vite.js
CHANGED
|
@@ -40,6 +40,7 @@ export async function createVitePlugins(ctx) {
|
|
|
40
40
|
// force include vue to avoid duplicated copies when linked + optimized
|
|
41
41
|
include: [
|
|
42
42
|
'vue',
|
|
43
|
+
dirname(require.resolve('@vue/runtime-core/package.json')),
|
|
43
44
|
dirname(require.resolve('shiki/package.json')),
|
|
44
45
|
dirname(require.resolve('vscode-textmate/package.json')),
|
|
45
46
|
dirname(require.resolve('vscode-oniguruma/package.json')),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "histoire",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "A fast story book powered by Vite",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"histoire": "./bin.mjs"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@histoire/controls": "^0.4.
|
|
36
|
+
"@histoire/controls": "^0.4.4",
|
|
37
37
|
"@iconify/vue": "^3.2.1",
|
|
38
38
|
"@types/markdown-it": "^12.2.3",
|
|
39
39
|
"@vueuse/core": "^8.2.5",
|
package/src/node/config.ts
CHANGED
|
@@ -302,6 +302,12 @@ export const mergeConfig = createDefu((obj: any, key, value) => {
|
|
|
302
302
|
}
|
|
303
303
|
return true
|
|
304
304
|
}
|
|
305
|
+
|
|
306
|
+
// By default, arrays should be replaced
|
|
307
|
+
if (obj[key] && Array.isArray(obj[key])) {
|
|
308
|
+
obj[key] = value
|
|
309
|
+
return true
|
|
310
|
+
}
|
|
305
311
|
})
|
|
306
312
|
|
|
307
313
|
export async function resolveConfig (cwd: string = process.cwd(), mode: ConfigMode): Promise<HistoireConfig> {
|
package/src/node/vite.ts
CHANGED
|
@@ -48,6 +48,7 @@ export async function createVitePlugins (ctx: Context): Promise<VitePlugin[]> {
|
|
|
48
48
|
// force include vue to avoid duplicated copies when linked + optimized
|
|
49
49
|
include: [
|
|
50
50
|
'vue',
|
|
51
|
+
dirname(require.resolve('@vue/runtime-core/package.json')),
|
|
51
52
|
dirname(require.resolve('shiki/package.json')),
|
|
52
53
|
dirname(require.resolve('vscode-textmate/package.json')),
|
|
53
54
|
dirname(require.resolve('vscode-oniguruma/package.json')),
|