Skip to content

Commit 140f8c4

Browse files
committed
chore(rolldown): disable watch mode screen clearing in config
1 parent c006fc0 commit 140f8c4

5 files changed

Lines changed: 14 additions & 7 deletions

File tree

.changeset/busy-kids-travel.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'create-mcp-kit': patch
3+
'@mcp-tool-kit/shared': patch
4+
---
5+
6+
chore(rolldown): disable watch mode screen clearing in config

packages/create-mcp-kit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
},
4343
"scripts": {
4444
"clean:dist": "rimraf dist",
45-
"dev": "rolldown -c rolldown.config.ts --watch --no-clear-screen",
45+
"dev": "rolldown -c rolldown.config.ts --watch",
4646
"build:types": "tsc --noEmit",
4747
"build": "npm run clean:dist && npm run build:types && rolldown -c rolldown.config.ts"
4848
},

packages/create-mcp-kit/rolldown.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ export default defineConfig({
1313
dir: 'dist',
1414
sourcemap: isDev,
1515
},
16+
watch: {
17+
clearScreen: false,
18+
},
1619
plugins: [isProd && terser(), typescript()],
1720
external: [
1821
...builtinModules,

packages/shared/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
"scripts": {
4242
"clean:dist": "rimraf dist",
43-
"dev": "rolldown -c rolldown.config.ts --watch --no-clear-screen",
43+
"dev": "rolldown -c rolldown.config.ts --watch",
4444
"build:types": "tsc",
4545
"build": "npm run clean:dist && npm run build:types && rolldown -c rolldown.config.ts"
4646
},

packages/shared/rolldown.config.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@ export default defineConfig({
1414
preserveModules: true,
1515
preserveModulesRoot: 'src',
1616
},
17-
// resolve: {
18-
// alias: {
19-
// '@': './src',
20-
// },
21-
// },
17+
watch: {
18+
clearScreen: false,
19+
},
2220
plugins: [isProd && terser(), typescript()],
2321
external: [...builtinModules, ...builtinModules.map(m => `node:${m}`), 'handlebars'],
2422
})

0 commit comments

Comments
 (0)