Skip to content

Commit d396068

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

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
@@ -79,7 +79,7 @@
7979
},
8080
"license": "MIT",
8181
"scripts": {
82-
"build": "tsdown && pnpm run build:css",
82+
"build": "tsdown",
8383
"build:css": "tsx scripts/copy-css.ts",
8484
"build:watch": "tsdown --watch",
8585
"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)