Skip to content

Commit 31e0ff9

Browse files
mmollaverdisvc-squareup-copybara
authored andcommitted
misk-admin/web/build.sh to use npm ci instead of npm
install GitOrigin-RevId: 70834874cdb625a4333385b78bc47148b8f7426c
1 parent 633f395 commit 31e0ff9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

misk-admin/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ val buildMiskWeb = tasks.register("buildMiskWeb", Exec::class.java) {
5353
exclude("tabs/database/tslint.json")
5454
exclude("tabs/database/webpack.config.js")
5555
}).withPropertyName("webfiles").withPathSensitivity(PathSensitivity.RELATIVE)
56+
inputs.files(project.file("../package-lock.json")) // for misk-cli install
5657
outputs.dir(layout.buildDirectory.dir("web"))
5758

5859
outputs.cacheIf("all inputs/outputs are declared") { true }

misk-admin/web/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set -x
1515
# "$HERMIT_ENV/node_modules/.bin" to the PATH, and we need that for miskweb to be found.
1616
# Except sometimes we have a different hermit env active, so we deal with that below.
1717
pushd ..
18-
bin/npm install @misk/cli
18+
bin/npm ci --registry=https://artifactory.global.square/artifactory/api/npm/square-npm/
1919
popd
2020

2121
../node_modules/.bin/miskweb ci-build -e

0 commit comments

Comments
 (0)