Skip to content

Commit ea332ac

Browse files
feat(editor): run CSS processing via tsdown onSuccess hook (#3121)
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent ae5fc27 commit ea332ac

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/editor/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
},
7979
"license": "MIT",
8080
"scripts": {
81-
"build": "tsdown && pnpm run build:css",
81+
"build": "tsdown",
8282
"build:css": "tsx scripts/copy-css.ts",
8383
"build:watch": "tsdown --watch",
8484
"clean": "rm -rf dist",

‎packages/editor/tsdown.config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ export default defineConfig({
1212
format: ['esm', 'cjs'],
1313
dts: true,
1414
external: ['react', 'react-dom'],
15+
onSuccess: 'pnpm build:css',
1516
});

0 commit comments

Comments
 (0)