@cbnventures/nova 0.35.0 → 0.37.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.
Files changed (147) hide show
  1. package/bin/nova.mjs +17 -0
  2. package/build/package.json +3 -2
  3. package/build/scaffold-versions.json +54 -44
  4. package/build/src/cli/generate/github/workflows-blueprint-validate.d.ts +2 -2
  5. package/build/src/cli/generate/github/workflows-blueprint-validate.d.ts.map +1 -1
  6. package/build/src/cli/generate/github/workflows-blueprint-validate.js +116 -3
  7. package/build/src/cli/generate/github/workflows-blueprint-validate.js.map +1 -1
  8. package/build/src/cli/generate/github/workflows-blueprint.d.ts +11 -5
  9. package/build/src/cli/generate/github/workflows-blueprint.d.ts.map +1 -1
  10. package/build/src/cli/generate/github/workflows-blueprint.js +411 -35
  11. package/build/src/cli/generate/github/workflows-blueprint.js.map +1 -1
  12. package/build/src/cli/generate/must-haves/agent-conventions.d.ts.map +1 -1
  13. package/build/src/cli/generate/must-haves/agent-conventions.js +3 -0
  14. package/build/src/cli/generate/must-haves/agent-conventions.js.map +1 -1
  15. package/build/src/cli/generate/must-haves/dotenv.d.ts.map +1 -1
  16. package/build/src/cli/generate/must-haves/dotenv.js +1 -0
  17. package/build/src/cli/generate/must-haves/dotenv.js.map +1 -1
  18. package/build/src/cli/scaffold/app/astro.d.ts.map +1 -1
  19. package/build/src/cli/scaffold/app/astro.js +0 -1
  20. package/build/src/cli/scaffold/app/astro.js.map +1 -1
  21. package/build/src/cli/scaffold/app/vite.d.ts.map +1 -1
  22. package/build/src/cli/scaffold/app/vite.js +0 -1
  23. package/build/src/cli/scaffold/app/vite.js.map +1 -1
  24. package/build/src/cli/scaffold/docs/docusaurus.d.ts.map +1 -1
  25. package/build/src/cli/scaffold/docs/docusaurus.js +0 -1
  26. package/build/src/cli/scaffold/docs/docusaurus.js.map +1 -1
  27. package/build/src/cli/utility/changelog.d.ts.map +1 -1
  28. package/build/src/cli/utility/changelog.js +119 -67
  29. package/build/src/cli/utility/changelog.js.map +1 -1
  30. package/build/src/cli/utility/configure.d.ts.map +1 -1
  31. package/build/src/cli/utility/configure.js +126 -1
  32. package/build/src/cli/utility/configure.js.map +1 -1
  33. package/build/src/lib/corepack.d.ts +2 -2
  34. package/build/src/lib/corepack.d.ts.map +1 -1
  35. package/build/src/lib/corepack.js +16 -6
  36. package/build/src/lib/corepack.js.map +1 -1
  37. package/build/src/lib/docker-packaging.d.ts.map +1 -1
  38. package/build/src/lib/docker-packaging.js +15 -12
  39. package/build/src/lib/docker-packaging.js.map +1 -1
  40. package/build/src/lib/dotenv.d.ts.map +1 -1
  41. package/build/src/lib/dotenv.js +17 -8
  42. package/build/src/lib/dotenv.js.map +1 -1
  43. package/build/src/lib/env-managed-set.d.ts.map +1 -1
  44. package/build/src/lib/env-managed-set.js +55 -11
  45. package/build/src/lib/env-managed-set.js.map +1 -1
  46. package/build/src/lib/env-namespace.d.ts.map +1 -1
  47. package/build/src/lib/env-namespace.js +1 -0
  48. package/build/src/lib/env-namespace.js.map +1 -1
  49. package/build/src/lib/env-profiles.d.ts +3 -0
  50. package/build/src/lib/env-profiles.d.ts.map +1 -0
  51. package/build/src/lib/env-profiles.js +70 -0
  52. package/build/src/lib/env-profiles.js.map +1 -0
  53. package/build/src/lib/env-status.d.ts.map +1 -1
  54. package/build/src/lib/env-status.js +23 -2
  55. package/build/src/lib/env-status.js.map +1 -1
  56. package/build/src/lib/item.d.ts.map +1 -1
  57. package/build/src/lib/item.js +20 -3
  58. package/build/src/lib/item.js.map +1 -1
  59. package/build/src/lib/nova-config.d.ts.map +1 -1
  60. package/build/src/lib/nova-config.js +31 -0
  61. package/build/src/lib/nova-config.js.map +1 -1
  62. package/build/src/lib/regex.d.ts +7 -1
  63. package/build/src/lib/regex.d.ts.map +1 -1
  64. package/build/src/lib/regex.js +7 -1
  65. package/build/src/lib/regex.js.map +1 -1
  66. package/build/src/lib/run-scripts.d.ts.map +1 -1
  67. package/build/src/lib/run-scripts.js +24 -0
  68. package/build/src/lib/run-scripts.js.map +1 -1
  69. package/build/src/lib/scaffold.d.ts.map +1 -1
  70. package/build/src/lib/scaffold.js +7 -0
  71. package/build/src/lib/scaffold.js.map +1 -1
  72. package/build/src/lib/workflow-templates.js +4 -4
  73. package/build/src/lib/workflow-templates.js.map +1 -1
  74. package/build/src/types/cli/generate/github/workflows-blueprint-validate.d.ts +42 -4
  75. package/build/src/types/cli/generate/github/workflows-blueprint.d.ts +193 -17
  76. package/build/src/types/cli/utility/changelog.d.ts +49 -6
  77. package/build/src/types/cli/utility/configure.d.ts +52 -0
  78. package/build/src/types/lib/corepack.d.ts +13 -0
  79. package/build/src/types/lib/docker-packaging.d.ts +2 -0
  80. package/build/src/types/lib/dotenv.d.ts +10 -3
  81. package/build/src/types/lib/env-managed-set.d.ts +15 -0
  82. package/build/src/types/lib/env-namespace.d.ts +5 -0
  83. package/build/src/types/lib/env-profiles.d.ts +67 -0
  84. package/build/src/types/lib/env-status.d.ts +9 -0
  85. package/build/src/types/lib/item.d.ts +20 -3
  86. package/build/src/types/lib/nova-config.d.ts +14 -0
  87. package/build/src/types/lib/regex.d.ts +0 -2
  88. package/build/src/types/lib/run-scripts.d.ts +16 -0
  89. package/build/src/types/lib/scaffold.d.ts +8 -0
  90. package/build/src/types/shared.d.ts +47 -6
  91. package/build/src/types/tests/cli/generate/github/workflows-blueprint-publish-parity.test.d.ts +20 -0
  92. package/build/src/types/tests/cli/generate/github/workflows-blueprint-validate.test.d.ts +22 -0
  93. package/build/src/types/tests/cli/generate/github/workflows-blueprint.test.d.ts +16 -0
  94. package/build/src/types/tests/cli/generate/must-haves/agent-conventions.test.d.ts +40 -0
  95. package/build/src/types/tests/cli/utility/changelog.test.d.ts +48 -45
  96. package/build/src/types/tests/cli/utility/configure.test.d.ts +1 -0
  97. package/build/src/types/tests/cli/utility/run-scripts.test.d.ts +29 -0
  98. package/build/src/types/tests/lib/docker-packaging.test.d.ts +14 -0
  99. package/build/src/types/tests/lib/env-profiles.test.d.ts +20 -0
  100. package/build/templates/generators/must-haves/agent-conventions/AGENTS.md +8 -5
  101. package/build/templates/generators/must-haves/agent-conventions/CLAUDE.md +8 -5
  102. package/build/templates/generators/must-haves/agent-conventions/conventions/csharp.md +6 -6
  103. package/build/templates/generators/must-haves/agent-conventions/conventions/go.md +241 -0
  104. package/build/templates/generators/must-haves/agent-conventions/conventions/nova.md +155 -0
  105. package/build/templates/generators/must-haves/agent-conventions/conventions/python.md +7 -7
  106. package/build/templates/generators/must-haves/agent-conventions/conventions/rust.md +227 -0
  107. package/build/templates/generators/must-haves/agent-conventions/conventions/swift.md +9 -9
  108. package/build/templates/generators/must-haves/agent-conventions/conventions/typescript.md +145 -23
  109. package/build/templates/generators/must-haves/agent-conventions/conventions/universal.md +112 -103
  110. package/build/templates/generators/must-haves/ignore-files/gitignore +1 -0
  111. package/build/templates/scaffold/app/android/package.json +1 -1
  112. package/build/templates/scaffold/app/apple/Sources/App.swift +15 -2
  113. package/build/templates/scaffold/app/apple/Tests/AppTests.swift +14 -2
  114. package/build/templates/scaffold/app/apple/package.json +1 -1
  115. package/build/templates/scaffold/app/apple/project.yml +1 -0
  116. package/build/templates/scaffold/app/astro/package.json +1 -1
  117. package/build/templates/scaffold/app/discord-bot/package.json +1 -1
  118. package/build/templates/scaffold/app/express/package.json +1 -1
  119. package/build/templates/scaffold/app/nextjs/package.json +1 -1
  120. package/build/templates/scaffold/app/vite/package.json +2 -2
  121. package/build/templates/scaffold/app/vite/vite.config.mts +3 -0
  122. package/build/templates/scaffold/docs/docusaurus/package.json +4 -4
  123. package/build/templates/scaffold/docs/docusaurus/static/images/nova.svg +13 -5
  124. package/build/templates/scaffold/docs/docusaurus/vitest.config.mts +9 -0
  125. package/build/templates/scaffold/package/github-action/package.json +1 -1
  126. package/build/templates/scaffold/package/homebridge/package.json +1 -1
  127. package/build/templates/scaffold/package/pfsense/package.json +1 -1
  128. package/build/templates/scaffold/package/pfsense/port/files/usr/local/pkg/[__WORKSPACE_NAME__].inc +10 -0
  129. package/build/templates/scaffold/package/pfsense-root/.github/workflows/pfsense-[__WORKSPACE_NAME__].yml +62 -0
  130. package/build/templates/scaffold-options/app/android-native/.gitattributes +2 -0
  131. package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/MainActivity.kt +16 -2
  132. package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/NavigationKeys.kt +7 -1
  133. package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/data/DataRepository.kt +28 -4
  134. package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/theme/Color.kt +40 -6
  135. package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/theme/Theme.kt +22 -1
  136. package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/theme/Type.kt +8 -2
  137. package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/ui/main/MainScreenViewModel.kt +42 -6
  138. package/build/templates/scaffold-options/app/android-native/app/src/test/java/[__ANDROID_PACKAGE_PATH__]/ui/main/MainScreenViewModelTest.kt +31 -4
  139. package/build/templates/scaffold-options/app/android-native/gradle/wrapper/gradle-wrapper.jar +0 -0
  140. package/build/templates/scaffold-options/app/android-native/gradlew +189 -113
  141. package/build/templates/scaffold-options/app/android-native/gradlew.bat +79 -51
  142. package/build/templates/scaffold-options/app/astro/cloudflare/public/.assetsignore +15 -0
  143. package/build/templates/scaffold-options/app/web-launchpad/public/favicon.svg +13 -5
  144. package/build/templates/scaffold-options/docker-image/common/dockerignore +2 -0
  145. package/build/templates/scaffold-options/tool/serverless/cloudflare-workers/package.json +1 -1
  146. package/build/templates/scaffold-options/tool/serverless/vercel-functions/package.json +1 -1
  147. 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, '.env');
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)) {