From a7db6d96970555de7aa132181c87bdca30baa6a6 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 15 Jan 2025 15:23:35 +0000 Subject: [PATCH] build(schema): use new `inlineDependencies` option --- packages/schema/build.config.ts | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/packages/schema/build.config.ts b/packages/schema/build.config.ts index f4f1d79bfb..ae065512f7 100644 --- a/packages/schema/build.config.ts +++ b/packages/schema/build.config.ts @@ -20,17 +20,9 @@ export default defineBuildConfig({ 'src/index', 'src/builder-env', ], - hooks: { - 'rollup:options' (ctx, options) { - ctx.options.rollup.dts.respectExternal = false - 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) - } - }, + rollup: { + dts: { respectExternal: false }, + inlineDependencies: ['untyped', 'knitwork'], }, externals: [ // Type imports