Set npm as default package manager in CLI app
This commit is contained in:
parent
b7107efbfd
commit
770722ac82
@ -35,7 +35,7 @@ function execShellCommand(cmd) {
|
||||
}
|
||||
|
||||
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) => {
|
||||
if (arg.includes("=")) {
|
||||
let temp = arg.split("=")
|
||||
@ -89,7 +89,7 @@ async function run() {
|
||||
`cd ${portalLocalRepoDirectory} && yarn && yarn build`
|
||||
|
||||
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}`
|
||||
|
||||
|
||||
|
||||
4727
bin/package-lock.json
generated
Normal file
4727
bin/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
1577
bin/yarn.lock
1577
bin/yarn.lock
File diff suppressed because it is too large
Load Diff
58788
package-lock.json
generated
Normal file
58788
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user