Skip to content

Commit 36b5280

Browse files
committed
build(deps): add nanotar 0.2.0 and bundle it in SEA bootstrap
- Add nanotar as devDependency (pinned to 0.2.0) - Remove nanotar from esbuild external list to bundle it - Remove @ts-expect-error comment for nanotar import - Bootstrap output increases from 18.9kb to 21.3kb with nanotar bundled
1 parent 2bbe9cc commit 36b5280

File tree

4 files changed

+142
-197
lines changed

4 files changed

+142
-197
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
"magic-string": "0.30.19",
7777
"micromatch": "4.0.8",
7878
"mock-fs": "5.5.0",
79+
"nanotar": "0.2.0",
7980
"nock": "14.0.10",
8081
"npm-package-arg": "13.0.0",
8182
"npm-run-all2": "8.0.4",
@@ -153,7 +154,8 @@
153154
"vite": "7.1.11",
154155
"xml2js": "0.6.2",
155156
"yaml": "2.8.1",
156-
"yargs-parser": "21.1.1"
157+
"yargs-parser": "21.1.1",
158+
"@socketsecurity/lib": "link:../socket-lib"
157159
},
158160
"patchedDependencies": {
159161
"brace-expansion@2.0.2": "patches/brace-expansion@2.0.2.patch",

packages/cli/.config/esbuild.sea-bootstrap.build.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ const config = {
3737
target: 'node18',
3838
sourcemap: false,
3939
minify: false,
40-
// Only externalize Node.js built-ins and nanotar (vendored at runtime).
41-
external: ['node:*', 'nanotar'],
40+
// Only externalize Node.js built-ins for the thin wrapper.
41+
external: ['node:*'],
4242
alias: aliasEntries,
4343
logLevel: 'info',
4444
banner: {

packages/cli/src/stub/bootstrap.mts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { createRequire } from 'node:module'
1616
import os from 'node:os'
1717
import path from 'node:path'
1818

19-
// @ts-expect-error - nanotar module not available currently
2019
import { parseTarGzip } from 'nanotar'
2120

2221
const require = createRequire(import.meta.url)

0 commit comments

Comments
 (0)