Merge pull request #647 from datopian/fix/cli-bug

Set npm as default package manager in CLI app
This commit is contained in:
Anuar Ustayev 2022-02-06 23:27:05 +06:00 committed by GitHub
commit 51be23919c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 74040 additions and 11651 deletions

View File

@ -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

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