@faable/faable 1.3.10 → 1.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@ const analyze_package = async (params) => {
12
12
  throw new Error("Missing start script");
13
13
  }
14
14
  // Check if build is required to run
15
- const build_script = params.build_script || "build";
15
+ const build_script = process.env.NPM_BUILD_SCRIPT || params.build_script || "build";
16
16
  let build = pkg?.scripts[build_script];
17
17
  if (!build) {
18
18
  log.info(`No build script found`);
@@ -92,10 +92,10 @@ class ConfigurationHelper {
92
92
  cache: manager,
93
93
  },
94
94
  },
95
- ...(manager == "npm" && [{ run: "npm ci" }]),
96
- ...(manager == "yarn" && [
97
- { run: "yarn install --frozen-lockfile" },
98
- ]),
95
+ ...(manager == "npm" ? [{ run: "npm ci" }] : []),
96
+ ...(manager == "yarn"
97
+ ? [{ run: "yarn install --frozen-lockfile" }]
98
+ : []),
99
99
  {
100
100
  name: "Deploy to Faable",
101
101
  run: `faable deploy ${app_name}`,
package/package.json CHANGED
@@ -27,5 +27,5 @@
27
27
  "access": "public"
28
28
  },
29
29
  "homepage": "https://github.com/faablecloud/faable#readme",
30
- "version": "1.3.10"
30
+ "version": "1.3.12"
31
31
  }