chore: add script to install yarn dependencies

* Use frozen lockfile in build for reproducible builds
* Do not install optional dependencies
* Suppress interactive prompts in build
This commit is contained in:
Jonathan Yu
2022-02-20 17:43:51 +00:00
parent 91bf8636fb
commit 8f843d2364
3 changed files with 54 additions and 12 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ function create_initial_user() {
}
# Run yarn install, to make sure node_modules are ready to go
yarn --cwd=./site install
"$PROJECT_ROOT/scripts/yarn_install.sh"
# Do initial build - a dev build for coderd.
# It's OK that we don't build the front-end before - because the front-end