feat(vite): migrate to latest vite-plugin-dts (#22614)
This commit is contained in:
parent
50cf7e303c
commit
9e13c8537a
@ -51,7 +51,7 @@ import * as path from 'path';
|
||||
|
||||
plugins: [react(),
|
||||
nxViteTsPaths(),
|
||||
dts({ entryRoot: 'src', tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'), skipDiagnostics: true })],
|
||||
dts({ entryRoot: 'src', tsconfigPath: path.join(__dirname, 'tsconfig.lib.json') })],
|
||||
|
||||
// Uncomment this if you are using workers.
|
||||
// worker: {
|
||||
|
||||
@ -17,8 +17,7 @@ export default defineConfig({
|
||||
nxViteTsPaths(),
|
||||
dts({
|
||||
entryRoot: 'src',
|
||||
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
|
||||
skipDiagnostics: true,
|
||||
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
|
||||
}),
|
||||
],
|
||||
|
||||
@ -70,8 +69,7 @@ export default defineConfig({
|
||||
nxViteTsPaths(),
|
||||
dts({
|
||||
entryRoot: 'src',
|
||||
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
|
||||
skipDiagnostics: true,
|
||||
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
|
||||
}),
|
||||
],
|
||||
|
||||
@ -157,8 +155,7 @@ export default defineConfig({
|
||||
react(),
|
||||
dts({
|
||||
entryRoot: 'src',
|
||||
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
|
||||
skipDiagnostics: true,
|
||||
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
|
||||
}),
|
||||
],
|
||||
|
||||
|
||||
@ -419,7 +419,7 @@ export function createOrEditViteConfig(
|
||||
|
||||
if (!onlyVitest && options.includeLib) {
|
||||
plugins.push(
|
||||
`dts({ entryRoot: 'src', tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'), skipDiagnostics: true })`
|
||||
`dts({ entryRoot: 'src', tsconfigPath: path.join(__dirname, 'tsconfig.lib.json') })`
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ export const vitestVersion = '^1.3.1';
|
||||
export const vitePluginReactVersion = '^4.2.0';
|
||||
export const vitePluginReactSwcVersion = '^3.5.0';
|
||||
export const jsdomVersion = '~22.1.0';
|
||||
export const vitePluginDtsVersion = '~2.3.0';
|
||||
export const vitePluginDtsVersion = '~3.8.1';
|
||||
export const happyDomVersion = '~9.20.3';
|
||||
export const edgeRuntimeVmVersion = '~3.0.2';
|
||||
|
||||
|
||||
@ -17,8 +17,7 @@ export default defineConfig({
|
||||
nxViteTsPaths(),
|
||||
dts({
|
||||
entryRoot: 'src',
|
||||
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
|
||||
skipDiagnostics: true,
|
||||
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
|
||||
}),
|
||||
],
|
||||
|
||||
@ -114,8 +113,7 @@ export default defineConfig({
|
||||
nxViteTsPaths(),
|
||||
dts({
|
||||
entryRoot: 'src',
|
||||
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
|
||||
skipDiagnostics: true,
|
||||
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
|
||||
}),
|
||||
],
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user