@brillout/docpress 0.15.9 → 0.15.10

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.
@@ -9,6 +9,18 @@ import { assert, assertWarning, jsxToTextContent } from './utils/server'
9
9
  import './NavItemComponent.css'
10
10
  import { parseMarkdownMini } from './parseMarkdownMini'
11
11
 
12
+ /*
13
+ // We cannot do that: we must use `import type` otherwise Vite will transpile global.d.ts and throw:
14
+ // ```console
15
+ // [11:55:47.528][/docs/.test-dev.test.ts][pnpm run dev][stderr] 11:55:47 AM [vite] Failed to transpile /home/runner/work/telefunc/telefunc/node_modules/.pnpm/@brillout+docpress@0.15.7_@algolia+client-search@5.31.0_@types+react@19.1.8_@vitejs+plugin-re_lcm3fspejcg3ebrmr3gvb5i3se/node_modules/@brillout/docpress/global.d.ts because:
16
+ // x `declare` modifier not allowed for code already in an ambient context
17
+ // ```
18
+ import './global.d.ts'
19
+ /*/
20
+ // The only purpose of `FakeExport` is to be able to use `import type`
21
+ import type { FakeExport } from './global.d.ts'
22
+ //*/
23
+
12
24
  type NavItemComputed = ReturnType<typeof getNavItemsWithComputed>[number]
13
25
  type NavItem = {
14
26
  level: number
package/global.d.ts CHANGED
@@ -5,3 +5,5 @@ declare module 'react' {
5
5
  [key: `--${string}`]: string | number | undefined
6
6
  }
7
7
  }
8
+ // The only purpose of `FakeExport` is to be able to use `import type`
9
+ export type FakeExport = never
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.15.9",
3
+ "version": "0.15.10",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@brillout/picocolors": "^1.0.10",