@cbnventures/nova 0.35.0 → 0.36.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/bin/nova.mjs +17 -0
- package/build/package.json +3 -2
- package/build/scaffold-versions.json +16 -6
- package/build/src/cli/generate/github/workflows-blueprint-validate.d.ts +2 -2
- package/build/src/cli/generate/github/workflows-blueprint-validate.d.ts.map +1 -1
- package/build/src/cli/generate/github/workflows-blueprint-validate.js +116 -3
- package/build/src/cli/generate/github/workflows-blueprint-validate.js.map +1 -1
- package/build/src/cli/generate/github/workflows-blueprint.d.ts +11 -5
- package/build/src/cli/generate/github/workflows-blueprint.d.ts.map +1 -1
- package/build/src/cli/generate/github/workflows-blueprint.js +411 -35
- package/build/src/cli/generate/github/workflows-blueprint.js.map +1 -1
- package/build/src/cli/generate/must-haves/agent-conventions.d.ts.map +1 -1
- package/build/src/cli/generate/must-haves/agent-conventions.js +3 -0
- package/build/src/cli/generate/must-haves/agent-conventions.js.map +1 -1
- package/build/src/cli/generate/must-haves/dotenv.d.ts.map +1 -1
- package/build/src/cli/generate/must-haves/dotenv.js +1 -0
- package/build/src/cli/generate/must-haves/dotenv.js.map +1 -1
- package/build/src/cli/scaffold/app/vite.js +1 -1
- package/build/src/cli/scaffold/app/vite.js.map +1 -1
- package/build/src/cli/utility/changelog.d.ts.map +1 -1
- package/build/src/cli/utility/changelog.js +119 -67
- package/build/src/cli/utility/changelog.js.map +1 -1
- package/build/src/cli/utility/configure.d.ts.map +1 -1
- package/build/src/cli/utility/configure.js +126 -1
- package/build/src/cli/utility/configure.js.map +1 -1
- package/build/src/lib/corepack.d.ts +2 -2
- package/build/src/lib/corepack.d.ts.map +1 -1
- package/build/src/lib/corepack.js +16 -6
- package/build/src/lib/corepack.js.map +1 -1
- package/build/src/lib/docker-packaging.d.ts.map +1 -1
- package/build/src/lib/docker-packaging.js +5 -4
- package/build/src/lib/docker-packaging.js.map +1 -1
- package/build/src/lib/dotenv.d.ts.map +1 -1
- package/build/src/lib/dotenv.js +17 -8
- package/build/src/lib/dotenv.js.map +1 -1
- package/build/src/lib/env-managed-set.d.ts.map +1 -1
- package/build/src/lib/env-managed-set.js +55 -11
- package/build/src/lib/env-managed-set.js.map +1 -1
- package/build/src/lib/env-namespace.d.ts.map +1 -1
- package/build/src/lib/env-namespace.js +1 -0
- package/build/src/lib/env-namespace.js.map +1 -1
- package/build/src/lib/env-profiles.d.ts +3 -0
- package/build/src/lib/env-profiles.d.ts.map +1 -0
- package/build/src/lib/env-profiles.js +70 -0
- package/build/src/lib/env-profiles.js.map +1 -0
- package/build/src/lib/env-status.d.ts.map +1 -1
- package/build/src/lib/env-status.js +23 -2
- package/build/src/lib/env-status.js.map +1 -1
- package/build/src/lib/item.d.ts.map +1 -1
- package/build/src/lib/item.js +20 -3
- package/build/src/lib/item.js.map +1 -1
- package/build/src/lib/nova-config.d.ts.map +1 -1
- package/build/src/lib/nova-config.js +31 -0
- package/build/src/lib/nova-config.js.map +1 -1
- package/build/src/lib/regex.d.ts +7 -0
- package/build/src/lib/regex.d.ts.map +1 -1
- package/build/src/lib/regex.js +7 -0
- package/build/src/lib/regex.js.map +1 -1
- package/build/src/lib/run-scripts.d.ts.map +1 -1
- package/build/src/lib/run-scripts.js +24 -0
- package/build/src/lib/run-scripts.js.map +1 -1
- package/build/src/lib/scaffold.d.ts.map +1 -1
- package/build/src/lib/scaffold.js +7 -0
- package/build/src/lib/scaffold.js.map +1 -1
- package/build/src/lib/workflow-templates.js +4 -4
- package/build/src/lib/workflow-templates.js.map +1 -1
- package/build/src/types/cli/generate/github/workflows-blueprint-validate.d.ts +42 -4
- package/build/src/types/cli/generate/github/workflows-blueprint.d.ts +193 -17
- package/build/src/types/cli/utility/changelog.d.ts +49 -6
- package/build/src/types/cli/utility/configure.d.ts +52 -0
- package/build/src/types/lib/corepack.d.ts +13 -0
- package/build/src/types/lib/docker-packaging.d.ts +1 -0
- package/build/src/types/lib/dotenv.d.ts +10 -3
- package/build/src/types/lib/env-managed-set.d.ts +15 -0
- package/build/src/types/lib/env-namespace.d.ts +5 -0
- package/build/src/types/lib/env-profiles.d.ts +67 -0
- package/build/src/types/lib/env-status.d.ts +9 -0
- package/build/src/types/lib/item.d.ts +20 -3
- package/build/src/types/lib/nova-config.d.ts +14 -0
- package/build/src/types/lib/run-scripts.d.ts +16 -0
- package/build/src/types/lib/scaffold.d.ts +8 -0
- package/build/src/types/shared.d.ts +47 -0
- package/build/src/types/tests/cli/generate/github/workflows-blueprint-publish-parity.test.d.ts +20 -0
- package/build/src/types/tests/cli/generate/github/workflows-blueprint-validate.test.d.ts +22 -0
- package/build/src/types/tests/cli/generate/github/workflows-blueprint.test.d.ts +16 -0
- package/build/src/types/tests/cli/generate/must-haves/agent-conventions.test.d.ts +40 -0
- package/build/src/types/tests/cli/utility/changelog.test.d.ts +48 -45
- package/build/src/types/tests/cli/utility/configure.test.d.ts +1 -0
- package/build/src/types/tests/cli/utility/run-scripts.test.d.ts +29 -0
- package/build/src/types/tests/lib/env-profiles.test.d.ts +20 -0
- package/build/templates/generators/must-haves/agent-conventions/AGENTS.md +8 -5
- package/build/templates/generators/must-haves/agent-conventions/CLAUDE.md +8 -5
- package/build/templates/generators/must-haves/agent-conventions/conventions/csharp.md +6 -6
- package/build/templates/generators/must-haves/agent-conventions/conventions/go.md +241 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/nova.md +155 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/python.md +7 -7
- package/build/templates/generators/must-haves/agent-conventions/conventions/rust.md +227 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/swift.md +9 -9
- package/build/templates/generators/must-haves/agent-conventions/conventions/typescript.md +145 -23
- package/build/templates/generators/must-haves/agent-conventions/conventions/universal.md +112 -103
- package/build/templates/generators/must-haves/ignore-files/gitignore +1 -0
- package/build/templates/scaffold/app/android/package.json +1 -1
- package/build/templates/scaffold/app/apple/Sources/App.swift +15 -2
- package/build/templates/scaffold/app/apple/Tests/AppTests.swift +14 -2
- package/build/templates/scaffold/app/apple/package.json +1 -1
- package/build/templates/scaffold/app/astro/package.json +1 -1
- package/build/templates/scaffold/app/discord-bot/package.json +1 -1
- package/build/templates/scaffold/app/express/package.json +1 -1
- package/build/templates/scaffold/app/nextjs/package.json +1 -1
- package/build/templates/scaffold/app/vite/package.json +2 -2
- package/build/templates/scaffold/app/vite/vite.config.mts +3 -0
- package/build/templates/scaffold/docs/docusaurus/package.json +2 -2
- package/build/templates/scaffold/docs/docusaurus/vitest.config.mts +9 -0
- package/build/templates/scaffold/package/github-action/package.json +1 -1
- package/build/templates/scaffold/package/homebridge/package.json +1 -1
- package/build/templates/scaffold/package/pfsense/package.json +1 -1
- package/build/templates/scaffold/package/pfsense/port/files/usr/local/pkg/[__WORKSPACE_NAME__].inc +10 -0
- package/build/templates/scaffold/package/pfsense-root/.github/workflows/pfsense-[__WORKSPACE_NAME__].yml +62 -0
- package/build/templates/scaffold-options/app/android-native/.gitattributes +2 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/MainActivity.kt +16 -2
- package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/NavigationKeys.kt +7 -1
- package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/data/DataRepository.kt +28 -4
- package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/theme/Color.kt +40 -6
- package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/theme/Theme.kt +22 -1
- package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/theme/Type.kt +8 -2
- package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/ui/main/MainScreenViewModel.kt +42 -6
- package/build/templates/scaffold-options/app/android-native/app/src/test/java/[__ANDROID_PACKAGE_PATH__]/ui/main/MainScreenViewModelTest.kt +31 -4
- package/build/templates/scaffold-options/app/astro/cloudflare/public/.assetsignore +15 -0
- package/build/templates/scaffold-options/docker-image/common/dockerignore +2 -0
- package/build/templates/scaffold-options/tool/serverless/cloudflare-workers/package.json +1 -1
- package/build/templates/scaffold-options/tool/serverless/vercel-functions/package.json +1 -1
- package/package.json +3 -2
|
@@ -5,6 +5,7 @@ import prompts from 'prompts';
|
|
|
5
5
|
import { libEnvGithub } from '../../lib/env-github.js';
|
|
6
6
|
import { libEnvManagedSet } from '../../lib/env-managed-set.js';
|
|
7
7
|
import { libEnvNamespace } from '../../lib/env-namespace.js';
|
|
8
|
+
import { migrateEnvironmentProfiles } from '../../lib/env-profiles.js';
|
|
8
9
|
import { libEnvReconcile } from '../../lib/env-reconcile.js';
|
|
9
10
|
import { libEnvStatus } from '../../lib/env-status.js';
|
|
10
11
|
import { getSupportedIgnoreFileBundles, isSupportedIgnoreFileConfigPath, } from '../../lib/ignore-files.js';
|
|
@@ -41,6 +42,9 @@ export class Runner {
|
|
|
41
42
|
}
|
|
42
43
|
const novaConfig = new LibNovaConfig();
|
|
43
44
|
const workingFile = await novaConfig.load();
|
|
45
|
+
const currentProfilesEnabled = workingFile['environment'] !== undefined
|
|
46
|
+
&& workingFile['environment']['profiles'] !== undefined
|
|
47
|
+
&& workingFile['environment']['profiles']['enabled'] === true;
|
|
44
48
|
const currentStrategy = (workingFile['settings'] === undefined) ? 'semver' : workingFile['settings']['versionStrategy'] ?? 'semver';
|
|
45
49
|
try {
|
|
46
50
|
await LibReleaseHistory.validateStrategy(workingFile, currentDirectory);
|
|
@@ -66,6 +70,9 @@ export class Runner {
|
|
|
66
70
|
return;
|
|
67
71
|
}
|
|
68
72
|
const nextStrategy = (workingFile['settings'] === undefined) ? 'semver' : workingFile['settings']['versionStrategy'] ?? 'semver';
|
|
73
|
+
const nextProfilesEnabled = workingFile['environment'] !== undefined
|
|
74
|
+
&& workingFile['environment']['profiles'] !== undefined
|
|
75
|
+
&& workingFile['environment']['profiles']['enabled'] === true;
|
|
69
76
|
let migrationPlan = undefined;
|
|
70
77
|
try {
|
|
71
78
|
migrationPlan = await LibVersionStrategyMigration.prepare(currentDirectory, workingFile, currentStrategy, nextStrategy);
|
|
@@ -87,6 +94,13 @@ export class Runner {
|
|
|
87
94
|
return;
|
|
88
95
|
}
|
|
89
96
|
await novaConfig.save(isReplaceFile);
|
|
97
|
+
const migrationEnvironment = workingFile['environment'] ?? {};
|
|
98
|
+
await migrateEnvironmentProfiles({
|
|
99
|
+
rootDirectory: currentDirectory,
|
|
100
|
+
currentEnabled: currentProfilesEnabled,
|
|
101
|
+
nextEnabled: nextProfilesEnabled,
|
|
102
|
+
environment: migrationEnvironment,
|
|
103
|
+
});
|
|
90
104
|
await LibVersionStrategyMigration.apply(migrationPlan);
|
|
91
105
|
if (migrationPlan['writes'].length > 0) {
|
|
92
106
|
Logger.customize({
|
|
@@ -3383,6 +3397,12 @@ export class Runner {
|
|
|
3383
3397
|
if (configWorkflow['build'] !== undefined) {
|
|
3384
3398
|
clonedWorkflow.build = [...configWorkflow['build']];
|
|
3385
3399
|
}
|
|
3400
|
+
if (configWorkflow['environmentSelection'] !== undefined) {
|
|
3401
|
+
clonedWorkflow.environmentSelection = {
|
|
3402
|
+
versionTags: { ...configWorkflow['environmentSelection']['versionTags'] },
|
|
3403
|
+
manual: configWorkflow['environmentSelection']['manual'],
|
|
3404
|
+
};
|
|
3405
|
+
}
|
|
3386
3406
|
if (configWorkflow['deploy'] !== undefined) {
|
|
3387
3407
|
clonedWorkflow.deploy = configWorkflow['deploy'].map((target) => {
|
|
3388
3408
|
const clonedTarget = { ...target };
|
|
@@ -3441,6 +3461,15 @@ export class Runner {
|
|
|
3441
3461
|
else {
|
|
3442
3462
|
Reflect.deleteProperty(normalizedWorkflow, 'build');
|
|
3443
3463
|
}
|
|
3464
|
+
if (workflow['environmentSelection'] !== undefined) {
|
|
3465
|
+
normalizedWorkflow.environmentSelection = {
|
|
3466
|
+
versionTags: { ...workflow['environmentSelection']['versionTags'] },
|
|
3467
|
+
manual: workflow['environmentSelection']['manual'],
|
|
3468
|
+
};
|
|
3469
|
+
}
|
|
3470
|
+
else {
|
|
3471
|
+
Reflect.deleteProperty(normalizedWorkflow, 'environmentSelection');
|
|
3472
|
+
}
|
|
3444
3473
|
if (workflow['deploy'] !== undefined && workflow['deploy'].length > 0) {
|
|
3445
3474
|
normalizedWorkflow.deploy = workflow['deploy'].map((target) => {
|
|
3446
3475
|
const clonedTarget = { ...target };
|
|
@@ -3621,6 +3650,7 @@ export class Runner {
|
|
|
3621
3650
|
const existingTemplate = (workflow !== undefined && typeof workflow['template'] === 'string') ? workflow['template'] : '';
|
|
3622
3651
|
const existingSuffix = (workflow !== undefined && typeof workflow['name'] === 'string') ? workflow['name'] : '';
|
|
3623
3652
|
const existingTimeoutMinutes = (workflow !== undefined && typeof workflow['timeoutMinutes'] === 'number') ? workflow['timeoutMinutes'] : undefined;
|
|
3653
|
+
const existingEnvironmentSelection = (workflow !== undefined) ? workflow['environmentSelection'] : undefined;
|
|
3624
3654
|
const existingContainerPlatforms = (workflow !== undefined
|
|
3625
3655
|
&& Array.isArray(workflow['containerPlatforms']) === true
|
|
3626
3656
|
&& workflow['containerPlatforms'].length > 0) ? [...workflow['containerPlatforms']] : [
|
|
@@ -4113,6 +4143,63 @@ export class Runner {
|
|
|
4113
4143
|
}
|
|
4114
4144
|
}
|
|
4115
4145
|
}
|
|
4146
|
+
const profilesEnabled = config['environment'] !== undefined
|
|
4147
|
+
&& config['environment']['profiles'] !== undefined
|
|
4148
|
+
&& config['environment']['profiles']['enabled'] === true;
|
|
4149
|
+
const supportsEnvironmentSelection = selectedTemplate === 'publish'
|
|
4150
|
+
&& selectedTargets.length > 0
|
|
4151
|
+
&& selectedTargets.every((target) => target['to'] === 'cloudflare-workers')
|
|
4152
|
+
&& resolvedTriggers.length > 0
|
|
4153
|
+
&& resolvedTriggers.every((trigger) => {
|
|
4154
|
+
const resolvedTriggerName = (typeof trigger === 'string') ? trigger : trigger['name'];
|
|
4155
|
+
return resolvedTriggerName === 'release' || resolvedTriggerName === 'tag-push';
|
|
4156
|
+
});
|
|
4157
|
+
let selectedEnvironmentSelection = undefined;
|
|
4158
|
+
if (supportsEnvironmentSelection === true && profilesEnabled === true) {
|
|
4159
|
+
const environmentSelectionEnabledOutput = await Runner.promptWithCancel({
|
|
4160
|
+
type: 'select',
|
|
4161
|
+
name: 'environmentSelectionEnabled',
|
|
4162
|
+
message: 'Select deployment environments from release tags?',
|
|
4163
|
+
choices: [
|
|
4164
|
+
{
|
|
4165
|
+
title: 'Disable',
|
|
4166
|
+
description: 'Keep the workflow in the original unknown/default environment mode.',
|
|
4167
|
+
value: false,
|
|
4168
|
+
},
|
|
4169
|
+
{
|
|
4170
|
+
title: 'Enable',
|
|
4171
|
+
description: 'Prereleases deploy to staging and stable releases deploy to production.',
|
|
4172
|
+
value: true,
|
|
4173
|
+
},
|
|
4174
|
+
],
|
|
4175
|
+
initial: (existingEnvironmentSelection === undefined) ? 0 : 1,
|
|
4176
|
+
});
|
|
4177
|
+
if (environmentSelectionEnabledOutput['cancelled'] === true) {
|
|
4178
|
+
return {
|
|
4179
|
+
action: 'back',
|
|
4180
|
+
};
|
|
4181
|
+
}
|
|
4182
|
+
if (environmentSelectionEnabledOutput['result'].environmentSelectionEnabled === true) {
|
|
4183
|
+
const environmentSelectionManualOutput = await Runner.promptWithCancel({
|
|
4184
|
+
type: 'confirm',
|
|
4185
|
+
name: 'manual',
|
|
4186
|
+
message: 'Allow manual staging or production deployments from GitHub?',
|
|
4187
|
+
initial: existingEnvironmentSelection !== undefined && existingEnvironmentSelection['manual'] === true,
|
|
4188
|
+
});
|
|
4189
|
+
if (environmentSelectionManualOutput['cancelled'] === true) {
|
|
4190
|
+
return {
|
|
4191
|
+
action: 'back',
|
|
4192
|
+
};
|
|
4193
|
+
}
|
|
4194
|
+
selectedEnvironmentSelection = {
|
|
4195
|
+
versionTags: {
|
|
4196
|
+
prerelease: 'staging',
|
|
4197
|
+
stable: 'production',
|
|
4198
|
+
},
|
|
4199
|
+
manual: environmentSelectionManualOutput['result'].manual,
|
|
4200
|
+
};
|
|
4201
|
+
}
|
|
4202
|
+
}
|
|
4116
4203
|
const hasContainerTarget = selectedTargets.some((target) => target['to'] === 'docker-hub' || target['to'] === 'ghcr');
|
|
4117
4204
|
let selectedContainerPlatforms = [];
|
|
4118
4205
|
if (hasContainerTarget === true) {
|
|
@@ -4312,6 +4399,9 @@ export class Runner {
|
|
|
4312
4399
|
if (selectedTimeoutMinutes !== undefined) {
|
|
4313
4400
|
Reflect.set(resolvedWorkflow, 'timeoutMinutes', selectedTimeoutMinutes);
|
|
4314
4401
|
}
|
|
4402
|
+
if (selectedEnvironmentSelection !== undefined) {
|
|
4403
|
+
Reflect.set(resolvedWorkflow, 'environmentSelection', selectedEnvironmentSelection);
|
|
4404
|
+
}
|
|
4315
4405
|
if (selectedContainerPlatforms.length > 0) {
|
|
4316
4406
|
Reflect.set(resolvedWorkflow, 'containerPlatforms', selectedContainerPlatforms);
|
|
4317
4407
|
}
|
|
@@ -4696,6 +4786,8 @@ export class Runner {
|
|
|
4696
4786
|
const workflowsGroup = (environment['workflows'] !== undefined) ? environment['workflows'] : {};
|
|
4697
4787
|
const workspaces = (config['workspaces'] !== undefined) ? config['workspaces'] : {};
|
|
4698
4788
|
const appPaths = [];
|
|
4789
|
+
const currentProfilesEnabled = environment['profiles'] !== undefined && environment['profiles']['enabled'] === true;
|
|
4790
|
+
const profilesSummary = (currentProfilesEnabled === true) ? 'Enabled · development locally, staging for prereleases, production for stable releases.' : 'Disabled · use the original plain .env and .env.sample files.';
|
|
4699
4791
|
for (const workspaceEntry of Object.entries(workspaces)) {
|
|
4700
4792
|
if (appPaths.includes(workspaceEntry[0]) === false) {
|
|
4701
4793
|
appPaths.push(workspaceEntry[0]);
|
|
@@ -4707,6 +4799,13 @@ export class Runner {
|
|
|
4707
4799
|
}
|
|
4708
4800
|
}
|
|
4709
4801
|
const choices = [];
|
|
4802
|
+
choices.push({
|
|
4803
|
+
title: 'Deployment profiles',
|
|
4804
|
+
description: profilesSummary,
|
|
4805
|
+
value: {
|
|
4806
|
+
kind: 'profiles',
|
|
4807
|
+
},
|
|
4808
|
+
});
|
|
4710
4809
|
const projectVariables = (projectScope !== undefined && projectScope['variables'] !== undefined) ? projectScope['variables'] : [];
|
|
4711
4810
|
const projectSummary = (projectScope !== undefined) ? `${projectScope['prefix']} · ${projectVariables.length} value(s)` : 'Not configured yet.';
|
|
4712
4811
|
choices.push({
|
|
@@ -4798,6 +4897,30 @@ export class Runner {
|
|
|
4798
4897
|
await Runner.promptEnvironmentReconcile(config, true);
|
|
4799
4898
|
continue;
|
|
4800
4899
|
}
|
|
4900
|
+
if (menuOutputResultValue.action['kind'] === 'profiles') {
|
|
4901
|
+
const profilesConfirmOutput = await Runner.promptWithCancel({
|
|
4902
|
+
type: 'confirm',
|
|
4903
|
+
name: 'confirm',
|
|
4904
|
+
message: (currentProfilesEnabled === true) ? 'Disable deployment profiles? The development pair will be restored to .env and .env.sample; staging and production files will remain untouched but inactive.' : 'Enable deployment profiles? Nova will preserve the plain files, migrate their contents to development, and create empty staging and production pairs.',
|
|
4905
|
+
initial: false,
|
|
4906
|
+
});
|
|
4907
|
+
if (profilesConfirmOutput['cancelled'] === true || profilesConfirmOutput['result'].confirm !== true) {
|
|
4908
|
+
continue;
|
|
4909
|
+
}
|
|
4910
|
+
const nextEnvironment = {
|
|
4911
|
+
...environment,
|
|
4912
|
+
profiles: {
|
|
4913
|
+
enabled: currentProfilesEnabled === false,
|
|
4914
|
+
},
|
|
4915
|
+
};
|
|
4916
|
+
Object.assign(config, { environment: nextEnvironment });
|
|
4917
|
+
if (currentProfilesEnabled === true && config['workflows'] !== undefined) {
|
|
4918
|
+
for (const workflow of config['workflows']) {
|
|
4919
|
+
Reflect.deleteProperty(workflow, 'environmentSelection');
|
|
4920
|
+
}
|
|
4921
|
+
}
|
|
4922
|
+
continue;
|
|
4923
|
+
}
|
|
4801
4924
|
if (menuOutputResultValue.action['kind'] === 'scope') {
|
|
4802
4925
|
if (menuOutputResultValue.action['scope'] === 'workflow') {
|
|
4803
4926
|
const workflowName = menuOutputResultValue.action['workflowName'] ?? '';
|
|
@@ -4853,10 +4976,12 @@ export class Runner {
|
|
|
4853
4976
|
static async readLocalFilledKeys(config) {
|
|
4854
4977
|
const environment = config['environment'] ?? {};
|
|
4855
4978
|
const workspaces = environment['workspaces'] ?? {};
|
|
4979
|
+
const profilesEnabled = environment['profiles'] !== undefined && environment['profiles']['enabled'] === true;
|
|
4980
|
+
const envFileName = (profilesEnabled === true) ? '.env.development' : '.env';
|
|
4856
4981
|
const result = {};
|
|
4857
4982
|
for (const appPath of Object.keys(workspaces)) {
|
|
4858
4983
|
const filled = [];
|
|
4859
|
-
const envPath = join(process.cwd(), appPath,
|
|
4984
|
+
const envPath = join(process.cwd(), appPath, envFileName);
|
|
4860
4985
|
try {
|
|
4861
4986
|
const raw = await fs.readFile(envPath, 'utf-8');
|
|
4862
4987
|
for (const line of raw.split(LIB_REGEX_LINEBREAK_CRLF_OR_LF)) {
|