@biffo/cli 0.330.0 → 0.332.0
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.
- package/dist/index.js +5 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3487,7 +3487,7 @@ var REGISTERED_ADOPTION_PAIRS = [
|
|
|
3487
3487
|
templateFile: "infra/environments/dev/core-api.core.tf",
|
|
3488
3488
|
userFile: "infra/environments/dev/main.tf",
|
|
3489
3489
|
adoptedPattern: new RegExp(NO_CORE_API_MODULE_SOURCE, "m"),
|
|
3490
|
-
remedy: '
|
|
3490
|
+
remedy: 'Run `biffo core upgrade` to receive `core-api.core.tf` (or equivalent), then delete the `module "core_api" { ... }` block from infra/environments/dev/main.tf (first move any instance-only arguments into `core_api_environment`), then run `terraform plan` and confirm module.core_api shows no changes to destroy/create.'
|
|
3491
3491
|
}
|
|
3492
3492
|
];
|
|
3493
3493
|
function isAdopted(pair, userFileContent) {
|
|
@@ -7302,7 +7302,7 @@ async function composeStack(options, deps) {
|
|
|
7302
7302
|
throwIfInterrupted();
|
|
7303
7303
|
const script = deps.findScript(PG_TEST_DB_SCRIPT);
|
|
7304
7304
|
if (!script) throw new Error(packagedScriptMissing(PG_TEST_DB_SCRIPT));
|
|
7305
|
-
const raised = raisePostgres(deps.runner, script, options.pluginRoot);
|
|
7305
|
+
const raised = raisePostgres(deps.runner, script, options.pluginRoot, options.schemaEnv);
|
|
7306
7306
|
if (!raised.dsn) {
|
|
7307
7307
|
throw new Error(`could not provision Postgres (${PG_TEST_DB_SCRIPT} exited ${raised.status})`);
|
|
7308
7308
|
}
|
|
@@ -12762,9 +12762,9 @@ async function runPluginVerify(options, deps) {
|
|
|
12762
12762
|
);
|
|
12763
12763
|
return 0;
|
|
12764
12764
|
}
|
|
12765
|
-
return runRealCore(options, deps.realCore);
|
|
12765
|
+
return runRealCore(options, deps.realCore, schemaEnv);
|
|
12766
12766
|
}
|
|
12767
|
-
async function runRealCore(options, real) {
|
|
12767
|
+
async function runRealCore(options, real, schemaEnv) {
|
|
12768
12768
|
let coreRoot;
|
|
12769
12769
|
try {
|
|
12770
12770
|
coreRoot = real.coreRoot();
|
|
@@ -12780,6 +12780,7 @@ async function runRealCore(options, real) {
|
|
|
12780
12780
|
configFile: pickConfigFile(options.cwd, options.configFile),
|
|
12781
12781
|
reload: false,
|
|
12782
12782
|
label: REAL_CORE_LABEL,
|
|
12783
|
+
...schemaEnv ? { schemaEnv } : {},
|
|
12783
12784
|
...options.signal ? { signal: options.signal } : {}
|
|
12784
12785
|
},
|
|
12785
12786
|
real.compose,
|