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(),
|
plugins: [react(),
|
||||||
nxViteTsPaths(),
|
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.
|
// Uncomment this if you are using workers.
|
||||||
// worker: {
|
// worker: {
|
||||||
|
|||||||
@ -17,8 +17,7 @@ export default defineConfig({
|
|||||||
nxViteTsPaths(),
|
nxViteTsPaths(),
|
||||||
dts({
|
dts({
|
||||||
entryRoot: 'src',
|
entryRoot: 'src',
|
||||||
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
|
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
|
||||||
skipDiagnostics: true,
|
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|
||||||
@ -70,8 +69,7 @@ export default defineConfig({
|
|||||||
nxViteTsPaths(),
|
nxViteTsPaths(),
|
||||||
dts({
|
dts({
|
||||||
entryRoot: 'src',
|
entryRoot: 'src',
|
||||||
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
|
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
|
||||||
skipDiagnostics: true,
|
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|
||||||
@ -157,8 +155,7 @@ export default defineConfig({
|
|||||||
react(),
|
react(),
|
||||||
dts({
|
dts({
|
||||||
entryRoot: 'src',
|
entryRoot: 'src',
|
||||||
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
|
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
|
||||||
skipDiagnostics: true,
|
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|||||||
@ -419,7 +419,7 @@ export function createOrEditViteConfig(
|
|||||||
|
|
||||||
if (!onlyVitest && options.includeLib) {
|
if (!onlyVitest && options.includeLib) {
|
||||||
plugins.push(
|
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 vitePluginReactVersion = '^4.2.0';
|
||||||
export const vitePluginReactSwcVersion = '^3.5.0';
|
export const vitePluginReactSwcVersion = '^3.5.0';
|
||||||
export const jsdomVersion = '~22.1.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 happyDomVersion = '~9.20.3';
|
||||||
export const edgeRuntimeVmVersion = '~3.0.2';
|
export const edgeRuntimeVmVersion = '~3.0.2';
|
||||||
|
|
||||||
|
|||||||
@ -17,8 +17,7 @@ export default defineConfig({
|
|||||||
nxViteTsPaths(),
|
nxViteTsPaths(),
|
||||||
dts({
|
dts({
|
||||||
entryRoot: 'src',
|
entryRoot: 'src',
|
||||||
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
|
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
|
||||||
skipDiagnostics: true,
|
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|
||||||
@ -114,8 +113,7 @@ export default defineConfig({
|
|||||||
nxViteTsPaths(),
|
nxViteTsPaths(),
|
||||||
dts({
|
dts({
|
||||||
entryRoot: 'src',
|
entryRoot: 'src',
|
||||||
tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
|
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
|
||||||
skipDiagnostics: true,
|
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user