diff --git a/packages/pylon-cli/src/commands/develop.ts b/packages/pylon-cli/src/commands/develop.ts index d9d79eb..0c793f5 100644 --- a/packages/pylon-cli/src/commands/develop.ts +++ b/packages/pylon-cli/src/commands/develop.ts @@ -6,7 +6,14 @@ import path from 'path' import {sfiBuildPath, sfiSourcePath} from '../constants.js' export default async (options: {port: string}) => { - const {stdout} = spawnSync(['npx', '-p', 'which', 'which', 'pylon-server']) + const {stdout} = spawnSync([ + 'npx', + '--yes', + '-p', + 'which', + '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 fd46ebf..b3f2942 100644 --- a/packages/pylon-cli/src/commands/new.ts +++ b/packages/pylon-cli/src/commands/new.ts @@ -89,9 +89,9 @@ export default async ( 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 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/react"] = "*"'` - await Bun.$`npx json -q -I -f package.json -e 'this.devDependencies = this.devDependencies || {}; this.devDependencies["gqty"] = "*"'` + await Bun.$`npx --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'