build(schema): use new inlineDependencies option

This commit is contained in:
Daniel Roe 2025-01-15 15:23:35 +00:00
parent c780a6e2e2
commit a7db6d9697
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

@ -20,17 +20,9 @@ export default defineBuildConfig({
'src/index', 'src/index',
'src/builder-env', 'src/builder-env',
], ],
hooks: { rollup: {
'rollup:options' (ctx, options) { dts: { respectExternal: false },
ctx.options.rollup.dts.respectExternal = false inlineDependencies: ['untyped', 'knitwork'],
const isExternal = options.external! as (id: string, importer?: string, isResolved?: boolean) => boolean
options.external = (source, importer, isResolved) => {
if (source === 'untyped' || source === 'knitwork') {
return false
}
return isExternal(source, importer, isResolved)
}
},
}, },
externals: [ externals: [
// Type imports // Type imports