Set npm as default package manager in CLI app

This commit is contained in:
Rising Odegua 2022-02-04 14:23:01 +01:00
parent b7107efbfd
commit 770722ac82
5 changed files with 74040 additions and 11651 deletions

View File

@ -35,7 +35,7 @@ function execShellCommand(cmd) {
} }
function processArgs(args) { function processArgs(args) {
const userArgs = { npm: false, override: false, port: 3000, path: process.cwd() } const userArgs = { npm: true, override: false, port: 3000, path: process.cwd() }
args.forEach((arg) => { args.forEach((arg) => {
if (arg.includes("=")) { if (arg.includes("=")) {
let temp = arg.split("=") let temp = arg.split("=")
@ -89,7 +89,7 @@ async function run() {
`cd ${portalLocalRepoDirectory} && yarn && yarn build` `cd ${portalLocalRepoDirectory} && yarn && yarn build`
const startNextAppCmd = userArgs.npm ? const startNextAppCmd = userArgs.npm ?
`cd ${portalLocalRepoDirectory} && npm run start -p ${userArgs.port}` : `cd ${portalLocalRepoDirectory} && PORT=${userArgs.port} npm run start` :
`cd ${portalLocalRepoDirectory} && yarn start -p ${userArgs.port}` `cd ${portalLocalRepoDirectory} && yarn start -p ${userArgs.port}`

4727
bin/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

58788
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

20595
yarn.lock

File diff suppressed because it is too large Load Diff