Skip to content

Commit 8143ba7

Browse files
committed
fix(vite-plugins): Roll back tsdown to 0.19 to fix vite-plugin-* typings
1 parent 4f669f9 commit 8143ba7

12 files changed

Lines changed: 212 additions & 142 deletions

File tree

.changeset/fast-forks-buy.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@plextv/vite-plugin-react-reanimated-lightning": patch
3+
"@plextv/vite-plugin-react-native-lightning": patch
4+
"@plextv/vite-plugin-msdf-fontgen": patch
5+
---
6+
7+
fix(vite-plugins): Roll back tsdown to 0.19 to fix vite-plugin-\* typings

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"glob": "13.0.0",
4242
"husky": "9.1.7",
4343
"listr2": "10.0.0",
44-
"tsdown": "0.20.0-beta.4",
44+
"tsdown": "0.19.0",
4545
"tsx": "4.21.0",
4646
"turbo": "2.7.5",
4747
"type-fest": "5.4.1",

packages/configs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"./tsconfig.react-native-library.json": "./tsconfig.react-native-library.json",
1212
"./tsdown.config": "./tsdown.config.ts",
1313
"./tsdown.withExports.config": "./tsdown.withExports.config.ts",
14+
"./tsdown.node.config": "./tsdown.node.config.ts",
1415
"./vite.config": "./vite.config.mjs"
1516
},
1617
"scripts": {},
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { defineConfig, type UserConfig } from 'tsdown';
2+
// @ts-expect-error: Needed for unrun to resolve this module correctly
3+
import baseConfig from './tsdown.config.ts';
4+
5+
const config: UserConfig = defineConfig({
6+
...baseConfig,
7+
format: 'esm',
8+
target: 'node22',
9+
platform: 'node',
10+
external: [/^node:.*/],
11+
exports: {
12+
devExports: false,
13+
},
14+
});
15+
16+
export default config;

packages/vite-plugin-msdf-fontgen/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"vite-plugin"
1616
],
1717
"type": "module",
18-
"types": "./dist/index.d.ts",
18+
"types": "./dist/index.d.mts",
1919
"exports": {
20-
".": "./dist/index.js",
20+
".": "./dist/index.mjs",
2121
"./package.json": "./package.json"
2222
},
2323
"publishConfig": {
Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
import baseConfig from '@repo/configs/tsdown.config';
2-
import { defineConfig, type UserConfig } from 'tsdown';
1+
import baseConfig from '@repo/configs/tsdown.node.config';
32

4-
const config: UserConfig = defineConfig({
5-
...baseConfig,
6-
format: 'esm',
7-
target: 'node22',
8-
external: [/^node:.*/],
9-
exports: {
10-
devExports: false,
11-
},
12-
});
13-
14-
export default config;
3+
export default baseConfig;

packages/vite-plugin-msdf-fontgen/vite.config.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

packages/vite-plugin-react-native-lightning/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"lightning-js"
1818
],
1919
"type": "module",
20-
"types": "./dist/index.d.ts",
20+
"types": "./dist/index.d.mts",
2121
"exports": {
22-
".": "./dist/index.js",
22+
".": "./dist/index.mjs",
2323
"./package.json": "./package.json"
2424
},
2525
"publishConfig": {
Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
import baseConfig from '@repo/configs/tsdown.config';
2-
import { defineConfig, type UserConfig } from 'tsdown';
1+
import baseConfig from '@repo/configs/tsdown.node.config';
32

4-
const config: UserConfig = defineConfig({
5-
...baseConfig,
6-
format: 'esm',
7-
target: 'node22',
8-
exports: {
9-
devExports: false,
10-
},
11-
});
12-
13-
export default config;
3+
export default baseConfig;

packages/vite-plugin-react-reanimated-lightning/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
"lightning-js"
1919
],
2020
"type": "module",
21-
"types": "./dist/index.d.ts",
21+
"types": "./dist/index.d.mts",
2222
"exports": {
23-
".": "./dist/index.js",
23+
".": "./dist/index.mjs",
2424
"./package.json": "./package.json"
2525
},
2626
"publishConfig": {

0 commit comments

Comments
 (0)