histoire 0.11.4 → 0.11.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/node/vite.js CHANGED
@@ -11,7 +11,6 @@ import { parseColor } from './colors.js';
11
11
  import { createMarkdownPlugins } from './markdown.js';
12
12
  import { getSearchDataJS, generateDocSearchData, generateTitleSearchData } from './search.js';
13
13
  import { getInjectedImport } from './util/vendors.js';
14
- import { findUp } from './util/find-up.js';
15
14
  const require = createRequire(import.meta.url);
16
15
  // @TODO wait for virtual modules HMR to work in vite to use `virtual:` and `\0` prefix
17
16
  // https://github.com/vitejs/vite/pull/10313
@@ -91,13 +90,10 @@ export async function getViteConfigWithPlugins(isServer, ctx) {
91
90
  const userViteConfig = mergeViteConfig(userViteConfigFile?.config ?? {}, { server: { port: 6006 } });
92
91
  const inlineConfig = await mergeHistoireViteConfig(userViteConfig, ctx);
93
92
  const plugins = [];
94
- const hasPnpm = !!(await findUp(ctx.root, ['pnpm-lock.yaml']));
95
93
  function optimizeDeps(deps) {
96
94
  const result = [];
97
95
  for (const dep of deps) {
98
- if (!hasPnpm) {
99
- result.push(dep);
100
- }
96
+ result.push(dep);
101
97
  try {
102
98
  result.push(dirname(require.resolve(`${dep}/package.json`)));
103
99
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "histoire",
3
- "version": "0.11.4",
3
+ "version": "0.11.5",
4
4
  "description": "A fast story book powered by Vite",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -33,10 +33,10 @@
33
33
  "histoire": "./bin.mjs"
34
34
  },
35
35
  "dependencies": {
36
- "@histoire/app": "^0.11.4",
37
- "@histoire/controls": "^0.11.4",
38
- "@histoire/shared": "^0.11.4",
39
- "@histoire/vendors": "^0.11.4",
36
+ "@histoire/app": "^0.11.5",
37
+ "@histoire/controls": "^0.11.5",
38
+ "@histoire/shared": "^0.11.5",
39
+ "@histoire/vendors": "^0.11.5",
40
40
  "@types/flexsearch": "^0.7.3",
41
41
  "@types/markdown-it": "^12.2.3",
42
42
  "birpc": "^0.1.1",
package/src/node/vite.ts CHANGED
@@ -20,7 +20,6 @@ import { parseColor } from './colors.js'
20
20
  import { createMarkdownPlugins } from './markdown.js'
21
21
  import { getSearchDataJS, generateDocSearchData, generateTitleSearchData } from './search.js'
22
22
  import { getInjectedImport } from './util/vendors.js'
23
- import { findUp } from './util/find-up.js'
24
23
 
25
24
  const require = createRequire(import.meta.url)
26
25
 
@@ -112,14 +111,10 @@ export async function getViteConfigWithPlugins (isServer: boolean, ctx: Context)
112
111
  const inlineConfig = await mergeHistoireViteConfig(userViteConfig, ctx)
113
112
  const plugins: VitePlugin[] = []
114
113
 
115
- const hasPnpm = !!(await findUp(ctx.root, ['pnpm-lock.yaml']))
116
-
117
114
  function optimizeDeps (deps: string[]): string[] {
118
115
  const result = []
119
116
  for (const dep of deps) {
120
- if (!hasPnpm) {
121
- result.push(dep)
122
- }
117
+ result.push(dep)
123
118
  try {
124
119
  result.push(dirname(require.resolve(`${dep}/package.json`)))
125
120
  } catch (e) {