diff --git a/.github/workflows/cr.yml b/.github/workflows/cr.yml index b8b833ef..7dd5c4c7 100644 --- a/.github/workflows/cr.yml +++ b/.github/workflows/cr.yml @@ -9,6 +9,7 @@ on: types: [opened, synchronize, labeled, ready_for_review] paths-ignore: - '.github/**' + - '!.github/workflows/cr.yml' - '__tests__/**' - 'art/**' - 'docs/**' @@ -17,6 +18,7 @@ on: branches: [main] paths-ignore: - '.github/**' + - '!.github/workflows/cr.yml' - '__tests__/**' - 'art/**' - 'docs/**' diff --git a/rollup.config.ts b/rollup.config.ts index 6bf7ff1b..77a2a610 100644 --- a/rollup.config.ts +++ b/rollup.config.ts @@ -55,24 +55,17 @@ const esmBuild: RollupOptions = { const typesExternal = [ ...external, - /\/vitepress\/(?!(dist|node_modules)\/).*\.d\.ts$/, + /\/vitepress\/(?!(dist|node_modules|vitepress)\/).*\.d\.ts$/, 'source-map-js', 'fast-glob' ] const dtsNode = dts({ respectExternal: true, - tsconfig: 'src/node/tsconfig.json' + tsconfig: 'src/node/tsconfig.json', + compilerOptions: { preserveSymlinks: false } }) -const originalResolveId = dtsNode.resolveId - -dtsNode.resolveId = async function (source, importer) { - const res = await (originalResolveId as Function).call(this, source, importer) - if (res?.id) res.id = await fs.realpath(res.id) - return res -} - const nodeTypes: RollupOptions = { input: 'src/node/index.ts', output: {