From 58558db214ab2e459c695f60510175b17fb98c63 Mon Sep 17 00:00:00 2001 From: Kanad Gupta Date: Thu, 17 Oct 2024 12:33:16 -0500 Subject: [PATCH] chore: swap out tsimp for tsx --- .prettierignore | 1 - package-lock.json | 135 ++++++-------------------------------- packages/api/.gitignore | 1 - packages/api/package.json | 6 +- 4 files changed, 24 insertions(+), 119 deletions(-) diff --git a/.prettierignore b/.prettierignore index d09badb4..810b2952 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,7 +4,6 @@ packages/**/dist/ # api packages/api/.api/ -packages/api/.tsimp/ packages/api/example.js # httpsnippet-client-api diff --git a/package-lock.json b/package-lock.json index 572d84a7..a6ce0803 100644 --- a/package-lock.json +++ b/package-lock.json @@ -860,23 +860,6 @@ "node": ">=10.13.0" } }, - "node_modules/@isaacs/cached": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@isaacs/cached/-/cached-1.0.1.tgz", - "integrity": "sha512-7kGcJ9Hc1f4qpTApWz3swxbF9Qv1NF/GxuPtXeTptbsgvJIoufSd0h854Nq/2bw80F5C1onsFgEI05l+q0e4vw==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/catcher": "^1.0.0" - } - }, - "node_modules/@isaacs/catcher": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@isaacs/catcher/-/catcher-1.0.4.tgz", - "integrity": "sha512-g2klMwbnguClWNnCeQ1zYaDJsvPbIbnjdJPDE0z09MqoejJDZSLK5vIKiClq2Bkg5ubuI8vaN6wfIUi5GYzMVA==", - "dev": true, - "license": "BlueOak-1.0.0" - }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", @@ -20053,43 +20036,6 @@ "url": "https://github.com/sponsors/cyyynthia" } }, - "node_modules/sock-daemon": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/sock-daemon/-/sock-daemon-1.4.2.tgz", - "integrity": "sha512-IzbegWshWWR+UzQ7487mbdYNmfJ1jXUXQBUHooqtpylO+aW0vMVbFN2d2ug3CSPZ0wbG7ZTTGwpUuthIDFIOGg==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "rimraf": "^5.0.5", - "signal-exit": "^4.1.0", - "socket-post-message": "^1.0.3" - }, - "engines": { - "node": "16 >=16.17.0 || 18 >= 18.6.0 || >=20" - } - }, - "node_modules/sock-daemon/node_modules/rimraf": { - "version": "5.0.10", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz", - "integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "glob": "^10.3.7" - }, - "bin": { - "rimraf": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/socket-post-message": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/socket-post-message/-/socket-post-message-1.0.3.tgz", - "integrity": "sha512-UhJaB3xR2oF+HvddFOq2cBZi4zVKOHvdiBo+BaScNxsEUg3TLWSP8BkweKfe07kfH1thjn1hJR0af/w1EtBFjg==", - "dev": true - }, "node_modules/socks": { "version": "2.8.3", "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.3.tgz", @@ -21320,65 +21266,6 @@ "node": ">=4" } }, - "node_modules/tsimp": { - "version": "2.0.11", - "resolved": "https://registry.npmjs.org/tsimp/-/tsimp-2.0.11.tgz", - "integrity": "sha512-wRhMmvar8tWHN3ZmykD8f4B4sjCn/f8DFM67LRY+stf/LPa2Kq8ATE2PIi570/DiDJA8kjjxzos3EgP0LmnFLA==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/cached": "^1.0.1", - "@isaacs/catcher": "^1.0.4", - "foreground-child": "^3.1.1", - "mkdirp": "^3.0.1", - "pirates": "^4.0.6", - "rimraf": "^5.0.5", - "signal-exit": "^4.1.0", - "sock-daemon": "^1.4.2", - "walk-up-path": "^3.0.1" - }, - "bin": { - "tsimp": "dist/esm/bin.mjs" - }, - "engines": { - "node": "16 >=16.17.0 || 18 >= 18.6.0 || >=20" - }, - "peerDependencies": { - "typescript": "^5.1.0" - } - }, - "node_modules/tsimp/node_modules/mkdirp": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", - "dev": true, - "license": "MIT", - "bin": { - "mkdirp": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/tsimp/node_modules/rimraf": { - "version": "5.0.10", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz", - "integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "glob": "^10.3.7" - }, - "bin": { - "rimraf": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/tslib": { "version": "2.8.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.0.tgz", @@ -21687,6 +21574,26 @@ "dev": true, "license": "0BSD" }, + "node_modules/tsx": { + "version": "4.19.1", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.1.tgz", + "integrity": "sha512-0flMz1lh74BR4wOvBjuh9olbnwqCPc35OOlfyzHba0Dc+QNUeWX/Gq2YTbnwcWPO3BMd8fkzRVrHcsR+a7z7rA==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "~0.23.0", + "get-tsconfig": "^4.7.5" + }, + "bin": { + "tsx": "dist/cli.mjs" + }, + "engines": { + "node": ">=18.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + } + }, "node_modules/tuf-js": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tuf-js/-/tuf-js-2.2.1.tgz", @@ -24091,8 +23998,8 @@ "fetch-mock": "^11.1.3", "oas-normalize": "^11.0.1", "openapi-types": "^12.1.3", - "tsimp": "^2.0.11", "tsup": "^8.0.1", + "tsx": "^4.19.1", "type-fest": "^4.9.0", "typescript": "^5.2.2", "unique-temp-dir": "^1.0.0", diff --git a/packages/api/.gitignore b/packages/api/.gitignore index 866be884..2e0d94a6 100644 --- a/packages/api/.gitignore +++ b/packages/api/.gitignore @@ -1,5 +1,4 @@ .api/ -.tsimp/ coverage/ dist/ node_modules/ diff --git a/packages/api/package.json b/packages/api/package.json index 267a4635..e9a32efd 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -11,8 +11,8 @@ "attw": "attw --pack --format table-flipped", "build": "tsc", "build:legacy-handler": "tsc legacy-require-handler.cjs --checkJs --declaration --emitDeclarationOnly", - "build:versioned-files": "node --loader=tsimp/loader bin/buildVersionedFiles.ts", - "debug:bin": "node --loader=tsimp/loader src/bin.ts", + "build:versioned-files": "tsx bin/buildVersionedFiles.ts", + "debug:bin": "tsx src/bin.ts", "lint:types": "tsc --noEmit", "prebuild": "rm -rf dist/ && npm run build:versioned-files", "postbuild": "npm run build:legacy-handler", @@ -87,8 +87,8 @@ "fetch-mock": "^11.1.3", "oas-normalize": "^11.0.1", "openapi-types": "^12.1.3", - "tsimp": "^2.0.11", "tsup": "^8.0.1", + "tsx": "^4.19.1", "type-fest": "^4.9.0", "typescript": "^5.2.2", "unique-temp-dir": "^1.0.0",