@x-all-in-one/coding-helper 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/lib/wizard.js +3 -12
  2. package/package.json +1 -1
@@ -828,18 +828,9 @@ export class Wizard {
828
828
  const isWindows = process.platform === 'win32';
829
829
  console.log(chalk.cyan(`\n${i18n.t('wizard.bun_installing')}\n`));
830
830
  return new Promise((resolve) => {
831
- let command;
832
- let args;
833
- if (isWindows) {
834
- // Windows: use npm to install bun globally
835
- command = 'npm.cmd';
836
- args = ['install', '-g', 'bun'];
837
- }
838
- else {
839
- // macOS/Linux: use curl installer
840
- command = 'bash';
841
- args = ['-c', 'curl -fsSL https://bun.sh/install | bash'];
842
- }
831
+ // Use npm to install bun globally (works on all platforms)
832
+ const command = isWindows ? 'npm.cmd' : 'npm';
833
+ const args = ['install', '-g', 'bun'];
843
834
  const child = spawn(command, args, {
844
835
  stdio: 'inherit',
845
836
  shell: true,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@x-all-in-one/coding-helper",
3
3
  "type": "module",
4
- "version": "0.0.6",
4
+ "version": "0.0.7",
5
5
  "description": "X All In One Coding Helper",
6
6
  "author": "X.AIO",
7
7
  "homepage": "https://docs.x-aio.com/zh/docs",