Skip to content

Commit b3854c1

Browse files
committed
fix: ensure passing the tsconfig
1 parent ad89db3 commit b3854c1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dev-packages/rollup-utils/npmHelpers.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ export function makeBaseNPMConfig(options = {}) {
4848
const defaultBaseConfig = defineConfig({
4949
input: entrypoints,
5050

51+
// Point to the package's tsconfig.json so rolldown respects TypeScript & JSX settings
52+
tsconfig: path.resolve(process.cwd(), './tsconfig.json'),
53+
5154
output: {
5255
// an appropriately-named directory will be added to this base value when we specify either a cjs or esm build
5356
dir: hasBundles ? 'build/npm' : 'build',

0 commit comments

Comments
 (0)