From e23de5bc1ec96ee034678fb352754580add7712e Mon Sep 17 00:00:00 2001 From: Dhruv Jain Date: Thu, 3 Dec 2026 19:58:58 +0530 Subject: [PATCH] chore(sdk): use pnpm for TypeScript SDK --- .gitignore | 2 ++ sdks/typescript/README.md | 2 +- sdks/typescript/package.json | 3 ++- sdks/typescript/pnpm-lock.yaml | 24 ++++++++++++++++++++++++ 4 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 sdks/typescript/pnpm-lock.yaml diff --git a/.gitignore b/.gitignore index dabea08..83e2115 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,5 @@ __pycache__/ .terraform.lock.hcl *.tfstate *.tfstate.* +/sdks/typescript/dist/ +/sdks/typescript/node_modules/ diff --git a/sdks/typescript/README.md b/sdks/typescript/README.md index 3e2d221..f47c838 100644 --- a/sdks/typescript/README.md +++ b/sdks/typescript/README.md @@ -5,7 +5,7 @@ Official zero-dependency TypeScript/JavaScript SDK for the self-hosted [Spawnbox ## Installation ```sh -npm install @tulipfarm/spawnbox +pnpm add @tulipfarm/spawnbox ``` Requires Node.js `>= 20` (uses native `fetch` and Web Streams, zero runtime dependencies). diff --git a/sdks/typescript/package.json b/sdks/typescript/package.json index 505d9f2..1ae03ad 100644 --- a/sdks/typescript/package.json +++ b/sdks/typescript/package.json @@ -28,9 +28,10 @@ "files": ["dist", "README.md"], "scripts": { "build": "tsc", - "prepublishOnly": "npm run build", + "prepublishOnly": "pnpm run build", "test": "node --test test/client.test.ts" }, + "packageManager": "pnpm@11.5.3", "devDependencies": { "typescript": "^5.8.3" }, diff --git a/sdks/typescript/pnpm-lock.yaml b/sdks/typescript/pnpm-lock.yaml new file mode 100644 index 0000000..1440f55 --- /dev/null +++ b/sdks/typescript/pnpm-lock.yaml @@ -0,0 +1,24 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + typescript: + specifier: ^5.8.3 + version: 5.9.3 + +packages: + + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} + hasBin: true + +snapshots: + + typescript@5.9.3: {}