fix: add cross-env to set port for both windows & linux (#49)

* add cross-env to set port for both windows & linux,

* add package-lock.json back,

* don't commit package-lock.json
This commit is contained in:
kuchaguangjie
2021-04-29 15:42:59 +08:00
committed by GitHub
parent 92c35948e7
commit 93564e8389
2 changed files with 12 additions and 2 deletions

View File

@ -24,7 +24,7 @@
"react-social-login-buttons": "^3.4.0"
},
"scripts": {
"start": "set PORT=7001 && craco start",
"start": "cross-env PORT=7001 craco start",
"build": "craco build",
"test": "craco test",
"eject": "craco eject"
@ -43,5 +43,8 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"cross-env": "^7.0.3"
}
}