histoire 0.17.6 → 0.17.8
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/markdown.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { Plugin as VitePlugin } from 'vite';
|
|
|
3
3
|
import type { Context } from './context.js';
|
|
4
4
|
export declare function onMarkdownListChange(handler: () => unknown): void;
|
|
5
5
|
export declare function createMarkdownRenderer(ctx: Context): Promise<MarkdownIt>;
|
|
6
|
-
export declare function createMarkdownPlugins(ctx: Context): Promise<VitePlugin[]>;
|
|
6
|
+
export declare function createMarkdownPlugins(ctx: Context): Promise<VitePlugin<any>[]>;
|
|
7
7
|
export declare function createMarkdownFilesWatcher(ctx: Context): Promise<{
|
|
8
8
|
stop: () => Promise<void>;
|
|
9
9
|
}>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Plugin as VitePlugin } from 'vite';
|
|
2
2
|
import type { Context } from '../context.js';
|
|
3
|
-
export declare const createVirtualFilesPlugin: (ctx: Context, isServer: boolean) => VitePlugin
|
|
3
|
+
export declare const createVirtualFilesPlugin: (ctx: Context, isServer: boolean) => VitePlugin<any>;
|
package/dist/node/vite.js
CHANGED
|
@@ -72,9 +72,6 @@ export async function getViteConfigWithPlugins(isServer, ctx) {
|
|
|
72
72
|
? {
|
|
73
73
|
// Force resolving deps like Node.JS resolution algorithm (in case some modules are not loaded with ssr: true e.g. .vue files)
|
|
74
74
|
conditions: ['node'],
|
|
75
|
-
// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
|
|
76
|
-
// @ts-ignore we support Vite ^3.0, but browserField is available in Vite ^3.2
|
|
77
|
-
browserField: false,
|
|
78
75
|
}
|
|
79
76
|
: {}),
|
|
80
77
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "histoire",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.8",
|
|
4
4
|
"description": "A fast story book powered by Vite",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -64,23 +64,23 @@
|
|
|
64
64
|
"shiki-es": "^0.2.0",
|
|
65
65
|
"sirv": "^2.0.3",
|
|
66
66
|
"vite-node": "^0.34.6",
|
|
67
|
-
"@histoire/
|
|
68
|
-
"@histoire/
|
|
69
|
-
"@histoire/shared": "^0.17.
|
|
70
|
-
"@histoire/vendors": "^0.17.
|
|
67
|
+
"@histoire/app": "^0.17.8",
|
|
68
|
+
"@histoire/controls": "^0.17.8",
|
|
69
|
+
"@histoire/shared": "^0.17.8",
|
|
70
|
+
"@histoire/vendors": "^0.17.8"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"vite": "^2.9.0 || ^3.0.0 || ^4.0.0"
|
|
73
|
+
"vite": "^2.9.0 || ^3.0.0 || ^4.0.0 || ^5.0.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@types/fs-extra": "^9.0.13",
|
|
77
77
|
"@types/markdown-it": "^12.2.3",
|
|
78
78
|
"@types/micromatch": "^4.0.6",
|
|
79
|
-
"@types/node": "^
|
|
79
|
+
"@types/node": "^18.11.9",
|
|
80
80
|
"esbuild": "^0.18.20",
|
|
81
|
-
"rollup": "^
|
|
81
|
+
"rollup": "^4.8.0",
|
|
82
82
|
"typescript": "^4.9.5",
|
|
83
|
-
"vite": "^
|
|
83
|
+
"vite": "^5.0.7",
|
|
84
84
|
"vitest": "^0.34.6"
|
|
85
85
|
},
|
|
86
86
|
"scripts": {
|
package/src/node/vite.ts
CHANGED
|
@@ -94,9 +94,6 @@ export async function getViteConfigWithPlugins (isServer: boolean, ctx: Context)
|
|
|
94
94
|
? {
|
|
95
95
|
// Force resolving deps like Node.JS resolution algorithm (in case some modules are not loaded with ssr: true e.g. .vue files)
|
|
96
96
|
conditions: ['node'],
|
|
97
|
-
// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
|
|
98
|
-
// @ts-ignore we support Vite ^3.0, but browserField is available in Vite ^3.2
|
|
99
|
-
browserField: false,
|
|
100
97
|
}
|
|
101
98
|
: {}),
|
|
102
99
|
},
|