Skip to content

Commit 0ecffbe

Browse files
authored
Fix usage of production config in CI (#160)
Right now we are still building the dev config into the deploy bundles, because I got the config overriding wrong. I've actually tested this version, at least. See https://docs.npmjs.com/files/package.json#config
1 parent 545b037 commit 0ecffbe

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ci/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ case $COMPONENT in
1313
cd client
1414
npm install
1515
# Use production config, since we want to use these bundles for deploys
16-
npm_config_configpath="config/prod/*.purs" npm run build
16+
npm config set trypurescript-client:configpath "config/prod/*.purs"
17+
npm run build
1718
;;
1819
*)
1920
echo >&2 "Unrecognised component: $COMPONENT"

client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"name": "trypurescript-client",
23
"private": true,
34
"config": {
45
"configpath": "config/dev/*.purs"

0 commit comments

Comments
 (0)