Skip to content

Commit

Permalink
build: correct d.ts output dir in development (#12212)
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed Feb 27, 2023
1 parent e421500 commit b90bc1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/vite/rollup.config.ts
Expand Up @@ -62,7 +62,7 @@ const sharedNodeOptions = defineConfig({
tryCatchDeoptimization: false,
},
output: {
dir: path.resolve(__dirname, 'dist'),
dir: './dist',
entryFileNames: `node/[name].js`,
chunkFileNames: 'node/chunks/dep-[hash].js',
exports: 'named',
Expand Down Expand Up @@ -169,7 +169,7 @@ function createNodeConfig(isProduction: boolean) {
!isProduction,
// in production we use api-extractor for dts generation
// in development we need to rely on the rollup ts plugin
isProduction ? false : path.resolve(__dirname, 'dist/node'),
isProduction ? false : './dist/node',
),
})
}
Expand All @@ -181,7 +181,7 @@ function createCjsConfig(isProduction: boolean) {
publicUtils: path.resolve(__dirname, 'src/node/publicUtils.ts'),
},
output: {
dir: path.resolve(__dirname, 'dist'),
dir: './dist',
entryFileNames: `node-cjs/[name].cjs`,
chunkFileNames: 'node-cjs/chunks/dep-[hash].js',
exports: 'named',
Expand Down

0 comments on commit b90bc1f

Please sign in to comment.