Skip to content

Commit e000ba2

Browse files
committed
chore: migrate all build scripts from tsc to bun build
- Replace 'tsc' with 'bun build' in all 32 packages - Use bun's built-in TypeScript transpiler (faster) - Keep tsc --emitDeclarationOnly for .d.ts generation - Update dev scripts to use 'bun build --watch' - No more TypeScript strict type checking during build - Build command: bun build src/index.ts --outdir dist --target node --format esm
1 parent b75d0b8 commit e000ba2

File tree

34 files changed

+41
-44
lines changed

34 files changed

+41
-44
lines changed

packages/synth-c/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
},
1414
"scripts": {
15-
"build": "tsc",
15+
"build": "bun build src/index.ts --outdir dist --target node --format esm && tsc --emitDeclarationOnly",
1616
"test": "bun test",
1717
"test:watch": "bun test --watch"
1818
},

packages/synth-css/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
},
1414
"scripts": {
15-
"build": "tsc",
15+
"build": "bun build src/index.ts --outdir dist --target node --format esm && tsc --emitDeclarationOnly",
1616
"test": "bun test",
1717
"test:watch": "bun test --watch"
1818
},

packages/synth-docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"README.md"
1818
],
1919
"scripts": {
20-
"build": "tsc",
20+
"build": "bun build src/index.ts --outdir dist --target node --format esm && tsc --emitDeclarationOnly",
2121
"test": "bun test",
2222
"typecheck": "tsc --noEmit"
2323
},

packages/synth-go/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
},
1414
"scripts": {
15-
"build": "tsc",
15+
"build": "bun build src/index.ts --outdir dist --target node --format esm && tsc --emitDeclarationOnly",
1616
"test": "bun test",
1717
"test:watch": "bun test --watch"
1818
},

packages/synth-graphql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"README.md"
1818
],
1919
"scripts": {
20-
"build": "tsc",
20+
"build": "bun build src/index.ts --outdir dist --target node --format esm && tsc --emitDeclarationOnly",
2121
"test": "bun test",
2222
"typecheck": "tsc --noEmit"
2323
},

packages/synth-html/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
}
1313
},
1414
"scripts": {
15-
"build": "tsc",
16-
"dev": "tsc --watch",
15+
"build": "bun build src/index.ts --outdir dist --target node --format esm && tsc --emitDeclarationOnly",
16+
"dev": "bun build src/index.ts --outdir dist --target node --format esm --watch",
1717
"test": "bun test",
1818
"test:watch": "bun test --watch",
1919
"bench": "bun bench"

packages/synth-ini/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
},
1414
"scripts": {
15-
"build": "tsc",
15+
"build": "bun build src/index.ts --outdir dist --target node --format esm && tsc --emitDeclarationOnly",
1616
"test": "bun test",
1717
"test:watch": "bun test --watch"
1818
},

packages/synth-java/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
},
1414
"scripts": {
15-
"build": "tsc",
15+
"build": "bun build src/index.ts --outdir dist --target node --format esm && tsc --emitDeclarationOnly",
1616
"test": "bun test",
1717
"test:watch": "bun test --watch"
1818
},

packages/synth-js-format/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
}
1313
},
1414
"scripts": {
15-
"build": "tsc",
16-
"dev": "tsc --watch",
15+
"build": "bun build src/index.ts --outdir dist --target node --format esm && tsc --emitDeclarationOnly",
16+
"dev": "bun build src/index.ts --outdir dist --target node --format esm --watch",
1717
"test": "bun test",
1818
"test:watch": "bun test --watch"
1919
},

packages/synth-js-minify/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
},
1414
"scripts": {
15-
"build": "tsc",
15+
"build": "bun build src/index.ts --outdir dist --target node --format esm && tsc --emitDeclarationOnly",
1616
"test": "bun test",
1717
"test:watch": "bun test --watch"
1818
},

0 commit comments

Comments
 (0)