Skip to content

Commit 240761f

Browse files
committed
chore: fix website build
1 parent c638864 commit 240761f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/merge/src/postinstall.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { Buffer } from 'node:buffer'
22
import fs from 'node:fs'
33
import path from 'node:path'
44
import process from 'node:process'
5+
import { fileURLToPath } from 'node:url'
56
import { getPackageInfoSync } from 'local-pkg'
67
import satisfies from 'semver/functions/satisfies.js'
78

@@ -209,7 +210,7 @@ function ensureVariant(distDir: string, variant: RuntimeVariant): {
209210
}
210211

211212
function main() {
212-
const distDir = path.resolve(__dirname, '../dist')
213+
const distDir = fileURLToPath(new URL('../dist/', import.meta.url))
213214

214215
if (!fs.existsSync(distDir)) {
215216
warn('dist directory not found. Skipping runtime switch.')

packages/merge/tsup.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export default defineConfig([
1010
'src/variants.ts',
1111
'src/postinstall.ts',
1212
],
13-
shims: true,
1413
format: ['cjs', 'esm'],
1514
clean: true,
1615
dts: true,

website/sidebars.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ const tutorialSidebar: SidebarConfig = [
200200
},
201201
{
202202
type: 'doc',
203-
id: 'api/exports',
203+
id: 'options/exports',
204204
label: '包导出总览',
205205
},
206206

0 commit comments

Comments
 (0)