From ac3f6aa756b49363514cf40dd1a9a700a55457ed Mon Sep 17 00:00:00 2001 From: David Sanders Date: Fri, 9 Oct 2026 16:31:46 -0700 Subject: [PATCH] build(deps-dev): drop tsx in favor of type stripping --- benchmark/profile-extract.ts | 2 +- benchmark/profile-memory.ts | 2 +- benchmark/profile-pack.ts | 2 +- benchmark/profile.ts | 2 +- benchmark/run.ts | 2 +- package.json | 5 +- yarn.lock | 304 ----------------------------------- 7 files changed, 7 insertions(+), 312 deletions(-) diff --git a/benchmark/profile-extract.ts b/benchmark/profile-extract.ts index f3ae5c2a..97216f80 100644 --- a/benchmark/profile-extract.ts +++ b/benchmark/profile-extract.ts @@ -1,7 +1,7 @@ import fs from 'node:fs'; import path from 'node:path'; import os from 'node:os'; -import { generateFixture, FIXTURES } from './generate-fixtures.js'; +import { generateFixture, FIXTURES } from './generate-fixtures.ts'; import { createPackage, extractAll, uncache } from '../lib/asar.js'; import { readArchiveHeaderSync, readFilesystemSync } from '../lib/disk.js'; diff --git a/benchmark/profile-memory.ts b/benchmark/profile-memory.ts index 68a851a1..a3edf836 100644 --- a/benchmark/profile-memory.ts +++ b/benchmark/profile-memory.ts @@ -1,7 +1,7 @@ import fs from 'node:fs'; import path from 'node:path'; import os from 'node:os'; -import { generateFixture, formatBytes, FIXTURES } from './generate-fixtures.js'; +import { generateFixture, formatBytes, FIXTURES } from './generate-fixtures.ts'; import { createPackage, createPackageFromFiles } from '../lib/asar.js'; import { crawl } from '../lib/crawlfs.js'; diff --git a/benchmark/profile-pack.ts b/benchmark/profile-pack.ts index 8a439664..2c4b37cd 100644 --- a/benchmark/profile-pack.ts +++ b/benchmark/profile-pack.ts @@ -2,7 +2,7 @@ import fs from 'node:fs'; import path from 'node:path'; import os from 'node:os'; import crypto from 'node:crypto'; -import { generateFixture, FIXTURES } from './generate-fixtures.js'; +import { generateFixture, FIXTURES } from './generate-fixtures.ts'; const config = FIXTURES.find((f) => f.name === 'many-small-files')!; const fixtureDir = generateFixture(config); diff --git a/benchmark/profile.ts b/benchmark/profile.ts index c179c399..3e670fac 100644 --- a/benchmark/profile.ts +++ b/benchmark/profile.ts @@ -1,7 +1,7 @@ import fs from 'node:fs'; import path from 'node:path'; import os from 'node:os'; -import { generateFixture, FIXTURES } from './generate-fixtures.js'; +import { generateFixture, FIXTURES } from './generate-fixtures.ts'; import { crawl } from '../lib/crawlfs.js'; import { createPackageFromFiles, extractAll, uncache } from '../lib/asar.js'; diff --git a/benchmark/run.ts b/benchmark/run.ts index b8338bc3..ce0c3db0 100644 --- a/benchmark/run.ts +++ b/benchmark/run.ts @@ -15,7 +15,7 @@ import { } from '../lib/asar.js'; import { crawl } from '../lib/crawlfs.js'; import { getFileIntegrity } from '../lib/integrity.js'; -import { FIXTURES, generateFixture, formatBytes, type FixtureConfig } from './generate-fixtures.js'; +import { FIXTURES, generateFixture, formatBytes, type FixtureConfig } from './generate-fixtures.ts'; // ─── Benchmark harness ─────────────────────────────────────────────── diff --git a/package.json b/package.json index 46a4cf60..9fb93944 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,8 @@ "test:ui": "vitest --ui", "lint": "oxfmt --check . && oxlint", "lint:fix": "oxfmt --write . && oxlint --fix", - "benchmark": "yarn build && tsx benchmark/run.ts", - "benchmark:quick": "yarn build && tsx benchmark/run.ts small", + "benchmark": "yarn build && node --experimental-strip-types benchmark/run.ts", + "benchmark:quick": "yarn build && node --experimental-strip-types benchmark/run.ts small", "prepack": "yarn build", "prepare": "husky" }, @@ -52,7 +52,6 @@ "oxfmt": "^0.44.0", "oxlint": "^1.59.0", "oxlint-tsgolint": "^0.20.0", - "tsx": "^4.21.0", "typedoc": "~0.28.0", "typescript": "^6.0.2", "vite": "^8.0.16", diff --git a/yarn.lock b/yarn.lock index 21f041a6..cbb523c4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -26,7 +26,6 @@ __metadata: oxfmt: "npm:^0.44.0" oxlint: "npm:^1.59.0" oxlint-tsgolint: "npm:^0.20.0" - tsx: "npm:^4.21.0" typedoc: "npm:~0.28.0" typescript: "npm:^6.0.2" vite: "npm:^8.0.16" @@ -86,188 +85,6 @@ __metadata: languageName: node linkType: hard -"@esbuild/aix-ppc64@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/aix-ppc64@npm:0.27.4" - conditions: os=aix & cpu=ppc64 - languageName: node - linkType: hard - -"@esbuild/android-arm64@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/android-arm64@npm:0.27.4" - conditions: os=android & cpu=arm64 - languageName: node - linkType: hard - -"@esbuild/android-arm@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/android-arm@npm:0.27.4" - conditions: os=android & cpu=arm - languageName: node - linkType: hard - -"@esbuild/android-x64@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/android-x64@npm:0.27.4" - conditions: os=android & cpu=x64 - languageName: node - linkType: hard - -"@esbuild/darwin-arm64@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/darwin-arm64@npm:0.27.4" - conditions: os=darwin & cpu=arm64 - languageName: node - linkType: hard - -"@esbuild/darwin-x64@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/darwin-x64@npm:0.27.4" - conditions: os=darwin & cpu=x64 - languageName: node - linkType: hard - -"@esbuild/freebsd-arm64@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/freebsd-arm64@npm:0.27.4" - conditions: os=freebsd & cpu=arm64 - languageName: node - linkType: hard - -"@esbuild/freebsd-x64@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/freebsd-x64@npm:0.27.4" - conditions: os=freebsd & cpu=x64 - languageName: node - linkType: hard - -"@esbuild/linux-arm64@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/linux-arm64@npm:0.27.4" - conditions: os=linux & cpu=arm64 - languageName: node - linkType: hard - -"@esbuild/linux-arm@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/linux-arm@npm:0.27.4" - conditions: os=linux & cpu=arm - languageName: node - linkType: hard - -"@esbuild/linux-ia32@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/linux-ia32@npm:0.27.4" - conditions: os=linux & cpu=ia32 - languageName: node - linkType: hard - -"@esbuild/linux-loong64@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/linux-loong64@npm:0.27.4" - conditions: os=linux & cpu=loong64 - languageName: node - linkType: hard - -"@esbuild/linux-mips64el@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/linux-mips64el@npm:0.27.4" - conditions: os=linux & cpu=mips64el - languageName: node - linkType: hard - -"@esbuild/linux-ppc64@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/linux-ppc64@npm:0.27.4" - conditions: os=linux & cpu=ppc64 - languageName: node - linkType: hard - -"@esbuild/linux-riscv64@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/linux-riscv64@npm:0.27.4" - conditions: os=linux & cpu=riscv64 - languageName: node - linkType: hard - -"@esbuild/linux-s390x@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/linux-s390x@npm:0.27.4" - conditions: os=linux & cpu=s390x - languageName: node - linkType: hard - -"@esbuild/linux-x64@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/linux-x64@npm:0.27.4" - conditions: os=linux & cpu=x64 - languageName: node - linkType: hard - -"@esbuild/netbsd-arm64@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/netbsd-arm64@npm:0.27.4" - conditions: os=netbsd & cpu=arm64 - languageName: node - linkType: hard - -"@esbuild/netbsd-x64@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/netbsd-x64@npm:0.27.4" - conditions: os=netbsd & cpu=x64 - languageName: node - linkType: hard - -"@esbuild/openbsd-arm64@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/openbsd-arm64@npm:0.27.4" - conditions: os=openbsd & cpu=arm64 - languageName: node - linkType: hard - -"@esbuild/openbsd-x64@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/openbsd-x64@npm:0.27.4" - conditions: os=openbsd & cpu=x64 - languageName: node - linkType: hard - -"@esbuild/openharmony-arm64@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/openharmony-arm64@npm:0.27.4" - conditions: os=openharmony & cpu=arm64 - languageName: node - linkType: hard - -"@esbuild/sunos-x64@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/sunos-x64@npm:0.27.4" - conditions: os=sunos & cpu=x64 - languageName: node - linkType: hard - -"@esbuild/win32-arm64@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/win32-arm64@npm:0.27.4" - conditions: os=win32 & cpu=arm64 - languageName: node - linkType: hard - -"@esbuild/win32-ia32@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/win32-ia32@npm:0.27.4" - conditions: os=win32 & cpu=ia32 - languageName: node - linkType: hard - -"@esbuild/win32-x64@npm:0.27.4": - version: 0.27.4 - resolution: "@esbuild/win32-x64@npm:0.27.4" - conditions: os=win32 & cpu=x64 - languageName: node - linkType: hard - "@gerrit0/mini-shiki@npm:^3.23.0": version: 3.23.0 resolution: "@gerrit0/mini-shiki@npm:3.23.0" @@ -995,95 +812,6 @@ __metadata: languageName: node linkType: hard -"esbuild@npm:~0.27.0": - version: 0.27.4 - resolution: "esbuild@npm:0.27.4" - dependencies: - "@esbuild/aix-ppc64": "npm:0.27.4" - "@esbuild/android-arm": "npm:0.27.4" - "@esbuild/android-arm64": "npm:0.27.4" - "@esbuild/android-x64": "npm:0.27.4" - "@esbuild/darwin-arm64": "npm:0.27.4" - "@esbuild/darwin-x64": "npm:0.27.4" - "@esbuild/freebsd-arm64": "npm:0.27.4" - "@esbuild/freebsd-x64": "npm:0.27.4" - "@esbuild/linux-arm": "npm:0.27.4" - "@esbuild/linux-arm64": "npm:0.27.4" - "@esbuild/linux-ia32": "npm:0.27.4" - "@esbuild/linux-loong64": "npm:0.27.4" - "@esbuild/linux-mips64el": "npm:0.27.4" - "@esbuild/linux-ppc64": "npm:0.27.4" - "@esbuild/linux-riscv64": "npm:0.27.4" - "@esbuild/linux-s390x": "npm:0.27.4" - "@esbuild/linux-x64": "npm:0.27.4" - "@esbuild/netbsd-arm64": "npm:0.27.4" - "@esbuild/netbsd-x64": "npm:0.27.4" - "@esbuild/openbsd-arm64": "npm:0.27.4" - "@esbuild/openbsd-x64": "npm:0.27.4" - "@esbuild/openharmony-arm64": "npm:0.27.4" - "@esbuild/sunos-x64": "npm:0.27.4" - "@esbuild/win32-arm64": "npm:0.27.4" - "@esbuild/win32-ia32": "npm:0.27.4" - "@esbuild/win32-x64": "npm:0.27.4" - dependenciesMeta: - "@esbuild/aix-ppc64": - optional: true - "@esbuild/android-arm": - optional: true - "@esbuild/android-arm64": - optional: true - "@esbuild/android-x64": - optional: true - "@esbuild/darwin-arm64": - optional: true - "@esbuild/darwin-x64": - optional: true - "@esbuild/freebsd-arm64": - optional: true - "@esbuild/freebsd-x64": - optional: true - "@esbuild/linux-arm": - optional: true - "@esbuild/linux-arm64": - optional: true - "@esbuild/linux-ia32": - optional: true - "@esbuild/linux-loong64": - optional: true - "@esbuild/linux-mips64el": - optional: true - "@esbuild/linux-ppc64": - optional: true - "@esbuild/linux-riscv64": - optional: true - "@esbuild/linux-s390x": - optional: true - "@esbuild/linux-x64": - optional: true - "@esbuild/netbsd-arm64": - optional: true - "@esbuild/netbsd-x64": - optional: true - "@esbuild/openbsd-arm64": - optional: true - "@esbuild/openbsd-x64": - optional: true - "@esbuild/openharmony-arm64": - optional: true - "@esbuild/sunos-x64": - optional: true - "@esbuild/win32-arm64": - optional: true - "@esbuild/win32-ia32": - optional: true - "@esbuild/win32-x64": - optional: true - bin: - esbuild: bin/esbuild - checksum: 10c0/2a1c2bcccda279f2afd72a7f8259860cb4483b32453d17878e1ecb4ac416b9e7c1001e7aa0a25ba4c29c1e250a3ceaae5d8bb72a119815bc8db4e9b5f5321490 - languageName: node - linkType: hard - "estree-walker@npm:^3.0.3": version: 3.0.3 resolution: "estree-walker@npm:3.0.3" @@ -1127,15 +855,6 @@ __metadata: languageName: node linkType: hard -"get-tsconfig@npm:^4.7.5": - version: 4.13.7 - resolution: "get-tsconfig@npm:4.13.7" - dependencies: - resolve-pkg-maps: "npm:^1.0.0" - checksum: 10c0/1118eb7e9b27bce0b9b6f042e98f0d067e26dfa1ca32bc4b56e892b615b57a5a4af9e6f801c7b0611a4afef2e31c4941be4c6026e0e6a480aaf1ddaf261113d5 - languageName: node - linkType: hard - "glob@npm:^13.0.2": version: 13.0.6 resolution: "glob@npm:13.0.6" @@ -1644,13 +1363,6 @@ __metadata: languageName: node linkType: hard -"resolve-pkg-maps@npm:^1.0.0": - version: 1.0.0 - resolution: "resolve-pkg-maps@npm:1.0.0" - checksum: 10c0/fb8f7bbe2ca281a73b7ef423a1cbc786fb244bd7a95cbe5c3fba25b27d327150beca8ba02f622baea65919a57e061eb5005204daa5f93ed590d9b77463a567ab - languageName: node - linkType: hard - "rolldown@npm:1.0.3": version: 1.0.3 resolution: "rolldown@npm:1.0.3" @@ -1800,22 +1512,6 @@ __metadata: languageName: node linkType: hard -"tsx@npm:^4.21.0": - version: 4.21.0 - resolution: "tsx@npm:4.21.0" - dependencies: - esbuild: "npm:~0.27.0" - fsevents: "npm:~2.3.3" - get-tsconfig: "npm:^4.7.5" - dependenciesMeta: - fsevents: - optional: true - bin: - tsx: dist/cli.mjs - checksum: 10c0/f5072923cd8459a1f9a26df87823a2ab5754641739d69df2a20b415f61814322b751fa6be85db7c6ec73cf68ba8fac2fd1cfc76bdb0aa86ded984d84d5d2126b - languageName: node - linkType: hard - "typedoc@npm:~0.28.0": version: 0.28.18 resolution: "typedoc@npm:0.28.18"