@dotcom-tool-kit/types
Advanced tools
Comparing version 3.4.0 to 3.4.1
@@ -10,3 +10,3 @@ "use strict"; | ||
const scaling = async (logger, prompt, onCancel) => { | ||
logger.error('You must configure the scaling for each of the Heroku apps in your pipeline.'); | ||
logger.error('You must configure the scaling for each of the production Heroku apps in your pipeline.'); | ||
const scaling = {}; | ||
@@ -18,3 +18,3 @@ let allAppsConfigured = false; | ||
type: 'text', | ||
message: 'Enter the name of the Heroku app to configure' | ||
message: 'Enter the name of the production Heroku app to configure. You can find the app name and resource details at https://dashboard.heroku.com/apps/[APP_NAME].' | ||
}, { onCancel }); | ||
@@ -28,5 +28,18 @@ const { processType, size, quantity, moreApps } = await prompt([ | ||
}, | ||
{ name: 'size', type: 'text', initial: 'standard-1X', message: `What should the size of ${app} be?` }, | ||
{ name: 'quantity', type: 'number', message: `What should the dyno size of ${app} be?` }, | ||
{ name: 'moreApps', type: 'confirm', message: 'Are there more Heroku apps in this pipeline?' } | ||
{ | ||
name: 'size', | ||
type: 'text', | ||
initial: 'standard-1X', | ||
message: `What should the resource size of ${app} be?` | ||
}, | ||
{ | ||
name: 'quantity', | ||
type: 'number', | ||
message: `What should the number of dynos for ${app} be?` | ||
}, | ||
{ | ||
name: 'moreApps', | ||
type: 'confirm', | ||
message: 'Are there more production Heroku apps in this pipeline?' | ||
} | ||
], { onCancel }); | ||
@@ -39,4 +52,4 @@ scaling[app] = { [processType]: { size, quantity } }; | ||
exports.HerokuSchema = zod_1.z.object({ | ||
pipeline: zod_1.z.string(), | ||
systemCode: zod_1.z.string(), | ||
pipeline: zod_1.z.string().describe('this can be found at https://dashboard.heroku.com/pipelines/[APP_ID]'), | ||
systemCode: zod_1.z.string().describe('this can be found at https://biz-ops.in.ft.com/System/[APP_NAME]'), | ||
scaling: exports.HerokuScalingSchema | ||
@@ -43,0 +56,0 @@ }); |
{ | ||
"name": "@dotcom-tool-kit/types", | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"description": "", | ||
@@ -27,3 +27,3 @@ "main": "lib", | ||
"@dotcom-tool-kit/error": "^3.1.0", | ||
"@dotcom-tool-kit/logger": "^3.2.0", | ||
"@dotcom-tool-kit/logger": "^3.3.0", | ||
"semver": "^7.3.7", | ||
@@ -30,0 +30,0 @@ "tslib": "^2.3.1", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75590
1582