Skip to content

Commit 5483998

Browse files
committed
chore[build]: respectExternal back to false for vue2 in dts
1 parent 7c61020 commit 5483998

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

npm/mount-utils/create-rollup-entry.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export function createEntries (options) {
1414
formats,
1515
input,
1616
config = {},
17+
dtsOptions = {},
1718
} = options
1819

1920
const banner = `
@@ -72,7 +73,7 @@ export function createEntries (options) {
7273
input,
7374
output: [{ file: 'dist/index.d.ts', format: 'es' }],
7475
plugins: [
75-
dts({ respectExternal: true }),
76+
dts({ respectExternal: true, ...dtsOptions }),
7677
{
7778
name: 'cypress-types-reference',
7879
// rollup-plugin-dts does not add '// <reference types="cypress" />' like rollup-plugin-typescript2 did so we add it here.

npm/vue2/rollup.config.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import { createEntries } from '@cypress/mount-utils/create-rollup-entry.mjs'
22
import json from '@rollup/plugin-json'
33
import replace from '@rollup/plugin-replace'
44

5+
const dtsOptions = {
6+
respectExternal: false,
7+
}
8+
59
const config = {
610
external: [
711
'vue',
@@ -25,4 +29,4 @@ const config = {
2529
},
2630
}
2731

28-
export default createEntries({ formats: ['es', 'cjs'], input: 'src/index.ts', config })
32+
export default createEntries({ formats: ['es', 'cjs'], input: 'src/index.ts', config, dtsOptions})

0 commit comments

Comments
 (0)