diff --git a/packages/pylon-cli/src/commands/develop.ts b/packages/pylon-cli/src/commands/develop.ts index b7f8838..845b0ad 100644 --- a/packages/pylon-cli/src/commands/develop.ts +++ b/packages/pylon-cli/src/commands/develop.ts @@ -6,14 +6,7 @@ import path from 'path' import {sfiBuildPath, sfiSourcePath} from '../constants.js' export default async (options: {port: string}) => { - const {stdout} = spawnSync([ - 'npx', - '--yes', - '-p', - 'which', - 'which', - 'pylon-server' - ]) + const {stdout} = spawnSync(['bunx', '--yes', '-p', 'which', 'pylon-server']) const binPath = stdout.toString().trim() diff --git a/packages/pylon-cli/src/commands/new.ts b/packages/pylon-cli/src/commands/new.ts index dcba6f4..53e8717 100644 --- a/packages/pylon-cli/src/commands/new.ts +++ b/packages/pylon-cli/src/commands/new.ts @@ -98,14 +98,14 @@ export default async ( // Insert the client path into the package.json file (gqty key) if (options.clientPath) { logger.info('Inserting client path into package.json') - await Bun.$`cd "${projectDir}" && npx json --yes -q -I -f package.json -e 'this.pylon = this.pylon || {}; this.pylon.gqty="${options.clientPath}"'` + await Bun.$`cd "${projectDir}" && bunx json --yes -q -I -f package.json -e 'this.pylon = this.pylon || {}; this.pylon.gqty="${options.clientPath}"'` logger.info('Inserted client path into package.json') // Add @gqty/react and gqty to the cwd package.json and prompt the user to install them - await Bun.$`npx --yes json -q -I -f package.json -e 'this.devDependencies = this.devDependencies || {}; this.devDependencies["@gqty/react"] = "*"'` + await Bun.$`bunx --yes json -q -I -f package.json -e 'this.devDependencies = this.devDependencies || {}; this.devDependencies["@gqty/react"] = "*"'` - await Bun.$`npx --yes json -q -I -f package.json -e 'this.devDependencies = this.devDependencies || {}; this.devDependencies["gqty"] = "*"'` + await Bun.$`bunx --yes json -q -I -f package.json -e 'this.devDependencies = this.devDependencies || {}; this.devDependencies["gqty"] = "*"'` logger.info( 'Added @gqty/react and gqty to package.json. Run "install" to install them'