@timekast/factory 1.18.0 → 1.20.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/commands/add.js +6 -1
- package/dist/commands/backlog.js +706 -0
- package/dist/commands/env.js +9 -0
- package/dist/commands/provision.js +689 -42
- package/dist/commands/update.js +45 -1
- package/dist/index.js +43 -2
- package/dist/lib/atomic-swap.js +13 -6
- package/dist/lib/backlog-api.js +302 -0
- package/dist/lib/backlog-mapping.js +175 -0
- package/dist/lib/backlog-parse.js +208 -0
- package/dist/lib/cloudflare-api.js +112 -2
- package/dist/lib/constants.js +23 -0
- package/dist/lib/env-file.js +51 -6
- package/dist/lib/env-wizard.js +30 -8
- package/dist/lib/package-json.js +59 -1
- package/dist/lib/provision-preflight.js +8 -0
- package/dist/lib/provision-state.js +10 -0
- package/dist/lib/vercel-env.js +42 -8
- package/package.json +1 -1
package/dist/commands/env.js
CHANGED
|
@@ -21,6 +21,12 @@ import { pushEnvPlan, vercelProjectPath, VercelApiError, } from '../lib/vercel-e
|
|
|
21
21
|
// Re-exported so existing importers (and `cli/tests/unit/env-push.test.ts`) keep
|
|
22
22
|
// resolving PROVISION_OWNED from this module after it moved to `lib/env-file.js`.
|
|
23
23
|
export { PROVISION_OWNED };
|
|
24
|
+
/**
|
|
25
|
+
* Post-push notice: freshly uploaded env vars stay INERT until the next Vercel
|
|
26
|
+
* deployment (stale-config window — see BOOT-010). Printed only after a
|
|
27
|
+
* successful push with at least one real change (created or updated).
|
|
28
|
+
*/
|
|
29
|
+
export const REDEPLOY_NOTICE = 'ℹ️ Las variables aplican en el próximo deployment — redeploya el proyecto en Vercel para que tomen efecto.';
|
|
24
30
|
export function parseEnvPushFlags(argv) {
|
|
25
31
|
return { dryRun: argv.includes('--dry-run') };
|
|
26
32
|
}
|
|
@@ -114,6 +120,9 @@ export async function runEnvPush(flags, rootDir = process.cwd()) {
|
|
|
114
120
|
const result = await pushEnvPlan(projectId, token, teamId, plan);
|
|
115
121
|
console.log(`✔ env push: ${result.created.length} creadas, ${result.updated.length} actualizadas ` +
|
|
116
122
|
'(production, preview).');
|
|
123
|
+
if (result.created.length > 0 || result.updated.length > 0) {
|
|
124
|
+
console.log(REDEPLOY_NOTICE);
|
|
125
|
+
}
|
|
117
126
|
}
|
|
118
127
|
catch (error) {
|
|
119
128
|
if (error instanceof VercelApiError) {
|