File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " @neaps/cli " : patch
3+ ---
4+
5+ Migrate SEA (Single Executable Application) build from a custom esbuild script to tsdown's built-in ` exe ` option. Removes the ` esbuild ` dev dependency.
Original file line number Diff line number Diff line change 2525 "make-fetch-happen" : " ^15.0.3" ,
2626 "npm-run-all" : " ^4.1.5" ,
2727 "prettier" : " ^3.7.4" ,
28- "tsdown" : " ^0.20.1 " ,
28+ "tsdown" : " ^0.21.0 " ,
2929 "typescript" : " ^5.3.3" ,
3030 "typescript-eslint" : " ^8.56.0" ,
3131 "vitest" : " ^4.0.15"
Original file line number Diff line number Diff line change 3434 ],
3535 "scripts" : {
3636 "build" : " tsdown" ,
37- "build:sea" : " node scripts/build- sea.ts" ,
37+ "build:sea" : " tsdown --config tsdown. sea.config .ts" ,
3838 "prepack" : " npm run build" ,
3939 "test" : " vitest"
4040 },
4848 },
4949 "devDependencies" : {
5050 "@types/node" : " ^25.0.2" ,
51- "esbuild" : " ^0.27.3" ,
5251 "nock" : " ^14.0.11"
5352 }
5453}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import { execFileSync } from "node:child_process" ;
2+ import { resolve } from "node:path" ;
3+ import { defineConfig } from "tsdown" ;
4+
5+ export default defineConfig ( {
6+ entry : [ "./src/index.ts" ] ,
7+ platform : "node" ,
8+ exe : {
9+ fileName : "neaps" ,
10+ seaConfig : {
11+ disableExperimentalSEAWarning : true ,
12+ } ,
13+ } ,
14+ onSuccess : ( config ) => {
15+ // Re-sign with the stable identifier for reproducible builds.
16+ // tsdown performs an initial ad-hoc sign (defaulting to the binary
17+ // name as the identifier); this overwrites it with the canonical one.
18+ if ( process . platform === "darwin" ) {
19+ const outputPath = resolve ( config . outDir , "neaps" ) ;
20+ execFileSync ( "codesign" , [
21+ "--sign" ,
22+ "-" ,
23+ "--identifier" ,
24+ "io.openwaters.neaps" ,
25+ "--force" ,
26+ outputPath ,
27+ ] ) ;
28+ }
29+ } ,
30+ } ) ;
You can’t perform that action at this time.
0 commit comments