@architect/hydrate
Advanced tools
Comparing version 4.0.3 to 4.0.4
{ | ||
"name": "@architect/hydrate", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "Architect dependency hydrator and shared file manager", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -10,2 +10,7 @@ let { renameSync, writeFileSync } = require('fs') | ||
let asap = inventory.inv.http?.find(l => l.arcStaticAssetProxy) | ||
if (asap) { | ||
dirs.push(asap.src) | ||
} | ||
update.start('Finding dependencies') | ||
@@ -72,2 +77,6 @@ | ||
let lambda = inventory.inv.lambdasBySrcDir[dir] | ||
if (!lambda) { | ||
lambda = inventory.inv.http?.find(l => l.arcStaticAssetProxy) | ||
if (!lambda) throw ReferenceError(`Cannot find Lambda at: ${dir}`) | ||
} | ||
if (Array.isArray(lambda)) lambda = lambda[0] // Multi-tenant Lambda check | ||
@@ -74,0 +83,0 @@ let { runtime, hydrate } = lambda.config |
@@ -70,2 +70,6 @@ let { existsSync } = require('fs') | ||
let lambda = inventory.inv.lambdasBySrcDir[dir] | ||
if (!lambda) { | ||
lambda = inventory.inv.http?.find(l => l.arcStaticAssetProxy) | ||
if (!lambda) throw ReferenceError(`Cannot find Lambda at: ${dir}`) | ||
} | ||
if (Array.isArray(lambda)) lambda = lambda[0] // Multi-tenant Lambda check | ||
@@ -72,0 +76,0 @@ let { config, name, pragma } = lambda |
@@ -87,3 +87,9 @@ let { dirname, join, sep } = require('path') | ||
prodFlag = isRoot ? '' : '--prod' | ||
let localPnpm = exists(join(cwd, 'node_modules', 'pnpm')) | ||
let localPnpm | ||
try { | ||
// eslint-disable-next-line | ||
require.resolve('pnpm') | ||
localPnpm = true | ||
} | ||
catch { /* noop */ } | ||
let cmd = localPnpm ? `npx pnpm i ${prodFlag}` : `pnpm i ${prodFlag}` | ||
@@ -93,3 +99,10 @@ exec(cmd, options, callback) | ||
else if (isYarn) { | ||
let localYarn = exists(join(cwd, 'node_modules', 'yarn')) | ||
let localYarn | ||
try { | ||
// eslint-disable-next-line | ||
require.resolve('yarn') | ||
localYarn = true | ||
} | ||
catch { /* noop */ } | ||
localYarn = true | ||
let cmd = localYarn ? `npx yarn ${prodFlag}` : `yarn ${prodFlag}` | ||
@@ -96,0 +109,0 @@ exec(cmd, options, callback) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
111699
1468
3
40