chore: fix broken types in github action builds (#4701)

pull/4707/head
Divyansh Singh 5 months ago committed by GitHub
parent f8feee0294
commit 1ec648ab61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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/**'

@ -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: {

Loading…
Cancel
Save