diff --git a/npm/mount-utils/create-rollup-entry.mjs b/npm/mount-utils/create-rollup-entry.mjs index f3b0de4d610c..2e4c39f9629c 100644 --- a/npm/mount-utils/create-rollup-entry.mjs +++ b/npm/mount-utils/create-rollup-entry.mjs @@ -15,6 +15,7 @@ export function createEntries (options) { input, config = {}, } = options + const { dtsOptions = {} } = config const banner = ` /** @@ -72,7 +73,7 @@ export function createEntries (options) { input, output: [{ file: 'dist/index.d.ts', format: 'es' }], plugins: [ - dts({ respectExternal: true }), + dts({ respectExternal: true, ...dtsOptions }), { name: 'cypress-types-reference', // rollup-plugin-dts does not add '// ' like rollup-plugin-typescript2 did so we add it here. diff --git a/npm/vue2/rollup.config.mjs b/npm/vue2/rollup.config.mjs index bed807e40c5d..7388cde9fabc 100644 --- a/npm/vue2/rollup.config.mjs +++ b/npm/vue2/rollup.config.mjs @@ -3,6 +3,9 @@ import json from '@rollup/plugin-json' import replace from '@rollup/plugin-replace' const config = { + dtsOptions: { + respectExternal: false + }, external: [ 'vue', ],