diff --git a/developer/js/bundle.sh b/developer/js/bundle.sh index bdc44859606..d52ab95b003 100644 --- a/developer/js/bundle.sh +++ b/developer/js/bundle.sh @@ -92,7 +92,8 @@ cp "$KEYMAN_MODELCOMPILER_ROOT/package-lock.json" "$KEYMAN_WIX_TEMP_MODELCOMPILE # Yuck! ref: https://github.com/npm/cli/issues/3975#issuecomment-985305678 # ref: https://github.com/npm/cli/issues/2921 # can't use npm uninstall because it depends on @keymanapp/models-types being present! -cat package.json | grep -v "@keymanapp/models-templates" | grep -v "@keymanapp/models-wordbreakers" > package.json + +cat "$KEYMAN_MODELCOMPILER_ROOT/package.json" | grep -v "@keymanapp/models-templates" | grep -v "@keymanapp/models-wordbreakers" > package.json || true npm install kmtypes.tgz --production --no-optional npm install --production --no-optional