( repoRoot: string, name: string, values: Values, defaults: Map<string, string> )
| 141 | if (contexts.length === 0) throw new Error('None of the Vercel projects exist.'); |
| 142 | const vault = vaultEnvironments.length > 0 ? resolveVault() : undefined; |
| 143 | const values = await collectValues(options, environments); |
| 144 | const defaults = options.only |
| 145 | ? new Map<string, string>() |
| 146 | : await collectDefaults(repoRoot, options.name); |
| 147 | if (!options.only && defaults.size === 0) warnAboutMissingTrackedDefault(options.name); |
| 148 | rejectMatchingTrackedValues(repoRoot, options.name, values, defaults); |
| 149 | |
| 150 | const deployableEnvironments = environments.filter( |
| 151 | (environment): environment is Exclude<Environment, 'development'> => |
| 152 | environment !== 'development' |
| 153 | ); |
| 154 | |
| 155 | console.log('\nPlan'); |
| 156 | for (const environment of environments) { |
| 157 | const type = sensitive && environment !== 'development' ? 'sensitive' : 'encrypted'; |
| 158 | for (const context of contexts) console.log(`- ${context.project}/${environment}: ${type}`); |
| 159 | } |
| 160 | for (const project of missingProjects) { |
| 161 | console.log(`- ${project}: skip, the Vercel project does not exist yet`); |
| 162 | } |
no test coverage detected