From 415be88f31e37a14ebe94bdf957afeb335ee6a85 Mon Sep 17 00:00:00 2001 From: Yordis Prieto Date: Thu, 18 Dec 2025 01:19:18 -0500 Subject: [PATCH] chore: update package versions to exact matches and add bunfig configuration Signed-off-by: Yordis Prieto --- bun.lock | 24 +++++++++++------------- bunfig.toml | 2 ++ package.json | 16 ++++++++-------- script/build.ts | 24 ++++++++++++------------ tsconfig.json | 6 +++--- 5 files changed, 36 insertions(+), 36 deletions(-) create mode 100644 bunfig.toml diff --git a/bun.lock b/bun.lock index 6036104..5b6f411 100644 --- a/bun.lock +++ b/bun.lock @@ -5,25 +5,25 @@ "": { "name": "cursor-marketplace", "dependencies": { - "lodash.merge": "^4.6.2", - "yaml": "^2.8.1", - "zod": "^4.1.12", + "lodash.merge": "4.6.2", + "yaml": "2.8.1", + "zod": "4.1.12", }, "devDependencies": { - "@straw-hat/prettier-config": "^3.1.5", - "@types/bun": "latest", - "@types/lodash.merge": "^4.6.9", - "prettier": "^3.6.2", + "@straw-hat/prettier-config": "3.1.5", + "@types/bun": "1.2.2", + "@types/lodash.merge": "4.6.9", + "prettier": "3.6.2", }, "peerDependencies": { - "typescript": "^5", + "typescript": "5.9.3", }, }, }, "packages": { "@straw-hat/prettier-config": ["@straw-hat/prettier-config@3.1.5", "", { "dependencies": { "prettier-plugin-organize-imports": "^3.2.4", "prettier-plugin-tailwindcss": "^0.5.7" }, "peerDependencies": { "prettier": "^3.0.1", "typescript": "^5.1.6" } }, "sha512-2SsEkaPuFQk70S9mentgVxyATn9bkD9zduTQq+exwIWBldnaxXbyIKIZ0q2HyhAAhuQmD4HZp5iNqWOAmGNdXg=="], - "@types/bun": ["@types/bun@1.3.1", "", { "dependencies": { "bun-types": "1.3.1" } }, "sha512-4jNMk2/K9YJtfqwoAa28c8wK+T7nvJFOjxI4h/7sORWcypRNxBpr+TPNaCfVWq70tLCJsqoFwcf0oI0JU/fvMQ=="], + "@types/bun": ["@types/bun@1.2.2", "", { "dependencies": { "bun-types": "1.2.2" } }, "sha512-tr74gdku+AEDN5ergNiBnplr7hpDp3V1h7fqI2GcR/rsUaM39jpSeKH0TFibRvU0KwniRx5POgaYnaXbk0hU+w=="], "@types/lodash": ["@types/lodash@4.17.21", "", {}, "sha512-FOvQ0YPD5NOfPgMzJihoT+Za5pdkDJWcbpuj1DjaKZIr/gxodQjY/uWEFlTNqW2ugXHUiL8lRQgw63dzKHZdeQ=="], @@ -31,11 +31,9 @@ "@types/node": ["@types/node@24.9.1", "", { "dependencies": { "undici-types": "~7.16.0" } }, "sha512-QoiaXANRkSXK6p0Duvt56W208du4P9Uye9hWLWgGMDTEoKPhuenzNcC4vGUmrNkiOKTlIrBoyNQYNpSwfEZXSg=="], - "@types/react": ["@types/react@19.2.2", "", { "dependencies": { "csstype": "^3.0.2" } }, "sha512-6mDvHUFSjyT2B2yeNx2nUgMxh9LtOWvkhIU3uePn2I2oyNymUAX1NIsdgviM4CH+JSrp2D2hsMvJOkxY+0wNRA=="], + "@types/ws": ["@types/ws@8.5.14", "", { "dependencies": { "@types/node": "*" } }, "sha512-bd/YFLW+URhBzMXurx7lWByOu+xzU9+kb3RboOteXYDfW+tr+JZa99OyNmPINEGB/ahzKrEuc8rcv4gnpJmxTw=="], - "bun-types": ["bun-types@1.3.1", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-NMrcy7smratanWJ2mMXdpatalovtxVggkj11bScuWuiOoXTiKIu2eVS1/7qbyI/4yHedtsn175n4Sm4JcdHLXw=="], - - "csstype": ["csstype@3.1.3", "", {}, "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="], + "bun-types": ["bun-types@1.2.2", "", { "dependencies": { "@types/node": "*", "@types/ws": "~8.5.10" } }, "sha512-RCbMH5elr9gjgDGDhkTTugA21XtJAy/9jkKe/G3WR2q17VPGhcquf9Sir6uay9iW+7P/BV0CAHA1XlHXMAVKHg=="], "lodash.merge": ["lodash.merge@4.6.2", "", {}, "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ=="], diff --git a/bunfig.toml b/bunfig.toml new file mode 100644 index 0000000..b6874be --- /dev/null +++ b/bunfig.toml @@ -0,0 +1,2 @@ +[install] +exact = true diff --git a/package.json b/package.json index 7e1440e..9428620 100644 --- a/package.json +++ b/package.json @@ -30,17 +30,17 @@ "build:all": "bun ./script/build.ts" }, "devDependencies": { - "@straw-hat/prettier-config": "^3.1.5", - "@types/bun": "latest", - "@types/lodash.merge": "^4.6.9", - "prettier": "^3.6.2" + "@straw-hat/prettier-config": "3.1.5", + "@types/bun": "1.2.2", + "@types/lodash.merge": "4.6.9", + "prettier": "3.6.2" }, "peerDependencies": { - "typescript": "^5" + "typescript": "5.9.3" }, "dependencies": { - "lodash.merge": "^4.6.2", - "yaml": "^2.8.1", - "zod": "^4.1.12" + "lodash.merge": "4.6.2", + "yaml": "2.8.1", + "zod": "4.1.12" } } diff --git a/script/build.ts b/script/build.ts index c7d2ec5..2abc79d 100755 --- a/script/build.ts +++ b/script/build.ts @@ -38,19 +38,19 @@ for (const target of targets) { const binary = target.os === 'windows' ? `${name}.exe` : name; - const result = await Bun.build({ - entrypoints: ['./src/cli.ts'], - target: 'bun', - compile: { - target: target.bunTarget, - outfile: `dist/${binary}`, - }, - }); - - if (!result.success) { + const result = await $`bun build --compile --target=${target.bunTarget} ./src/cli.ts --outfile dist/${binary}` + .quiet() + .nothrow(); + + if (result.exitCode !== 0) { console.error(`Failed to build ${target.os}-${target.arch}`); - for (const log of result.logs) { - console.error(log); + const stdout = result.stdout.toString(); + const stderr = result.stderr.toString(); + if (stdout) { + console.error(stdout); + } + if (stderr) { + console.error(stderr); } process.exit(1); } diff --git a/tsconfig.json b/tsconfig.json index c88dea1..0382c54 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,10 +20,10 @@ "noFallthroughCasesInSwitch": true, "noUncheckedIndexedAccess": true, "noImplicitOverride": true, - "noImplicitReturns": true, + + // Some stricter flags (disabled by default) "noUnusedLocals": true, "noUnusedParameters": true, - "allowUnusedLabels": false, - "allowUnreachableCode": false + "noPropertyAccessFromIndexSignature": false } }