@forge/cli-shared 9.2.0-next.3-experimental-bf8e292 → 9.2.0-next.3-experimental-c6a3916
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/CHANGELOG.md +5 -2
- package/out/graphql/graphql-types.d.ts +2 -0
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/ui/log-color.d.ts +1 -0
- package/out/ui/log-color.d.ts.map +1 -1
- package/out/ui/log-color.js +1 -0
- package/out/ui/single-table-prompt.d.ts.map +1 -1
- package/out/ui/single-table-prompt.js +2 -1
- package/out/ui/text.d.ts +9 -2
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +35 -13
- package/package.json +2 -2
package/out/ui/log-color.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-color.d.ts","sourceRoot":"","sources":["../../src/ui/log-color.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;qBACF,MAAM,KAAG,MAAM;qBACf,MAAM,KAAG,MAAM;oBAChB,MAAM,KAAG,MAAM;qBACd,MAAM,KAAG,MAAM;;
|
|
1
|
+
{"version":3,"file":"log-color.d.ts","sourceRoot":"","sources":["../../src/ui/log-color.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;qBACF,MAAM,KAAG,MAAM;qBACf,MAAM,KAAG,MAAM;oBAChB,MAAM,KAAG,MAAM;qBACd,MAAM,KAAG,MAAM;wBACZ,MAAM,KAAG,MAAM;;CAGpC,CAAC;AAKF,eAAO,MAAM,eAAe;;;;;;;CAO3B,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;CAkBtB,CAAC"}
|
package/out/ui/log-color.js
CHANGED
|
@@ -8,6 +8,7 @@ exports.LogColor = {
|
|
|
8
8
|
debug: (message) => chalk_1.default.gray(message),
|
|
9
9
|
warn: (message) => chalk_1.default.yellow(message),
|
|
10
10
|
error: (message) => chalk_1.default.red(message),
|
|
11
|
+
approval: (message) => chalk_1.default.cyan(message),
|
|
11
12
|
errorPrefix: chalk_1.default.red.bold('Error: ')
|
|
12
13
|
};
|
|
13
14
|
const withPadding = (input) => input.padEnd(7);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"single-table-prompt.d.ts","sourceRoot":"","sources":["../../src/ui/single-table-prompt.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvH,eAAO,MAAM,YAAY,EAAE,gBAE1B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,kBAE5B,CAAC;AAEF,qBAAa,uBAAwB,SAAQ,WAAW;gBAC1C,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;IAIvD,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;IAIvD,SAAS,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,gBAAgB,GAAG,IAAI;IAIjE,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"single-table-prompt.d.ts","sourceRoot":"","sources":["../../src/ui/single-table-prompt.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvH,eAAO,MAAM,YAAY,EAAE,gBAE1B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,kBAE5B,CAAC;AAEF,qBAAa,uBAAwB,SAAQ,WAAW;gBAC1C,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;IAIvD,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;IAIvD,SAAS,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,gBAAgB,GAAG,IAAI;IAIjE,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;CAoBhD"}
|
|
@@ -29,8 +29,9 @@ class SingleChoiceTablePrompt extends table_prompt_1.TablePrompt {
|
|
|
29
29
|
const { isDone, promptMessage, infoMessage, rows, pointer } = props;
|
|
30
30
|
let header = infoMessage;
|
|
31
31
|
header += '\r\n';
|
|
32
|
+
const selectedRow = rows[pointer - 1];
|
|
32
33
|
header += isDone
|
|
33
|
-
? `${text_1.Text.customPrompts.singleSelectionTable.doneHeaderMessage(promptMessage)} ${text_1.Text.customPrompts.singleSelectionTable.decorateSelected(
|
|
34
|
+
? `${text_1.Text.customPrompts.singleSelectionTable.doneHeaderMessage(promptMessage)} ${text_1.Text.customPrompts.singleSelectionTable.decorateSelected(selectedRow?.primary ?? '')}`
|
|
34
35
|
: text_1.Text.customPrompts.table.headerMessage(promptMessage, true);
|
|
35
36
|
let renderOutput = '';
|
|
36
37
|
if (!isDone) {
|
package/out/ui/text.d.ts
CHANGED
|
@@ -428,6 +428,7 @@ export declare const Text: {
|
|
|
428
428
|
error: {
|
|
429
429
|
noDeployUrl: string;
|
|
430
430
|
noPresignedUrls: string;
|
|
431
|
+
noManifestUrl: string;
|
|
431
432
|
noUploadId: string;
|
|
432
433
|
noManifestInZip: (manifestFilename: string) => string;
|
|
433
434
|
noManifestAtPath: (path: string) => string;
|
|
@@ -642,6 +643,7 @@ export declare const Text: {
|
|
|
642
643
|
taskLint: {
|
|
643
644
|
lintError: string;
|
|
644
645
|
lintWarning: (numWarnings: number) => string;
|
|
646
|
+
lintApproval: (numApprovals: number, ruleNames?: string[]) => string;
|
|
645
647
|
};
|
|
646
648
|
list: {
|
|
647
649
|
cmd: {
|
|
@@ -664,12 +666,13 @@ export declare const Text: {
|
|
|
664
666
|
start1: (envKey: string, envType: AppEnvironmentType, buildTag?: string) => string;
|
|
665
667
|
start2: (appName: string, envKey: string, envType: AppEnvironmentType, buildTag?: string) => string;
|
|
666
668
|
success: string;
|
|
667
|
-
successDetails: (appName: string, envKey: string, envType: AppEnvironmentType, buildTag?: string) => string;
|
|
669
|
+
successDetails: (appName: string, envKey: string, envType: AppEnvironmentType, buildTag?: string, numApprovals?: number) => string;
|
|
668
670
|
distributePageLink: (appId: string) => string;
|
|
669
671
|
};
|
|
670
672
|
taskLint: {
|
|
671
673
|
lintError: string;
|
|
672
674
|
lintWarning: (numWarnings: number) => string;
|
|
675
|
+
lintApproval: (numApprovals: number, ruleNames?: string[]) => string;
|
|
673
676
|
};
|
|
674
677
|
hasNoAppInstallationsForEnv: {
|
|
675
678
|
hasNoAppInstallationsForEnvError: string;
|
|
@@ -1020,16 +1023,20 @@ export declare const Text: {
|
|
|
1020
1023
|
cmd: string;
|
|
1021
1024
|
running: string;
|
|
1022
1025
|
noProblems: string;
|
|
1026
|
+
approvalRequired: (ruleNames?: string[]) => string;
|
|
1023
1027
|
noFixableProblem: string;
|
|
1024
1028
|
noFixableProblems: string;
|
|
1025
1029
|
filename: chalk.Chalk;
|
|
1030
|
+
errorMissingManifest: string;
|
|
1031
|
+
errorInvalidManifest: string;
|
|
1026
1032
|
linterFailed: (linterClass: string, failure: string) => string;
|
|
1027
1033
|
fixed: (numFixableErrors: number, numFixableWarnings: number) => string;
|
|
1028
1034
|
fixFollowUp: string;
|
|
1029
1035
|
error: (line: number, column: number, message: string, reference: string) => string;
|
|
1030
|
-
summary: (numErrors: number, numWarnings: number, numFixableErrors: number, numFixableWarnings: number) => string;
|
|
1036
|
+
summary: (numErrors: number, numWarnings: number, numApprovals: number, numFixableErrors: number, numFixableWarnings: number) => string;
|
|
1031
1037
|
fixSummary: (numErrors: number, numFixableErrors: number, numFixableWarnings: number) => string;
|
|
1032
1038
|
warning: (line: number, column: number, message: string, reference: string) => string;
|
|
1039
|
+
approval: (line: number, column: number, message: string, reference: string) => string;
|
|
1033
1040
|
};
|
|
1034
1041
|
repositories: {
|
|
1035
1042
|
cmd: {
|
package/out/ui/text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/ui/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAI1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAI9D,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAGrC,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB;AAwBD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAEjE;AAKD,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,KAAG,MAAsD,CAAC;
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/ui/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAI1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAI9D,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAGrC,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB;AAwBD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAEjE;AAKD,eAA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AAI,EAAE,MAAM,CAAC;gBAAC,MAAM,EAAE,MAAM,CAAA;aAAE,EAAE;2DAElC,MAAM,EAAE;;iDAIlB,MAAM,EAAE;sDAIH,MAAM,aAAa,MAAM,YAAY,MAAM,YAAY,MAAM;qDAE9D,MAAM,YAAY,MAAM,YAAY,MAAM;kDAE7C,MAAM;;;;;;;oDAQJ,MAAM;;;;;;;;;;;;;;qDAeL,MAAM;;;;;;8CAMb,MAAM,cAAc,MAAM;yDAEf,MAAM,cAAc,MAAM;+CAEpC,MAAM,UAAU,MAAM,cAAc,MAAM;wCAEjD,MAAM;0CAEJ,MAAM;0CAEN,MAAM;kCAEd,MAAM;;;;;;;CAOjC,CAAC"}
|
package/out/ui/text.js
CHANGED
|
@@ -33,10 +33,11 @@ const keytarAccessErrorBase = (message) => `Keytar error detected: ${message}`;
|
|
|
33
33
|
const capitalise = (word) => word.charAt(0).toUpperCase() + word.slice(1);
|
|
34
34
|
exports.capitalise = capitalise;
|
|
35
35
|
const getLintMessage = (line, column, message, level, colourFunction, reference) => `${chalk_1.default.dim(`${line}:${column}`.padEnd(7))} ${colourFunction(level.padEnd(8))} ${message} ${chalk_1.default.dim(reference)}\n`;
|
|
36
|
-
const checkLintTotalPlurals = (numErrors, numWarnings, numFixableErrors, numFixableWarnings) => ({
|
|
36
|
+
const checkLintTotalPlurals = (numErrors, numWarnings, numApprovals, numFixableErrors, numFixableWarnings) => ({
|
|
37
37
|
pluralCheckedErrors: `${numErrors} ${numErrors === 1 ? 'error' : 'errors'}`,
|
|
38
38
|
pluralCheckedWarnings: `${numWarnings} ${numWarnings === 1 ? 'warning' : 'warnings'}`,
|
|
39
|
-
|
|
39
|
+
pluralCheckedApprovals: `${numApprovals} ${numApprovals === 1 ? 'approval' : 'approvals'}`,
|
|
40
|
+
pluralCheckedTotal: `${numErrors + numWarnings + numApprovals} ${numErrors + numWarnings + numApprovals === 1 ? 'issue' : 'issues'}`,
|
|
40
41
|
pluralCheckedFixableErrors: `${numFixableErrors} ${numFixableErrors === 1 ? 'error' : 'errors'}`,
|
|
41
42
|
pluralCheckedFixableWarnings: `${numFixableWarnings} ${numFixableWarnings === 1 ? 'warning' : 'warnings'}`
|
|
42
43
|
});
|
|
@@ -515,6 +516,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
515
516
|
error: {
|
|
516
517
|
noDeployUrl: "Couldn't find deployment URL",
|
|
517
518
|
noPresignedUrls: "Couldn't find presigned URLs",
|
|
519
|
+
noManifestUrl: "Couldn't find manifest URL",
|
|
518
520
|
noUploadId: "Couldn't find uploadId",
|
|
519
521
|
noManifestInZip: (manifestFilename) => `Couldn't find ${manifestFilename} file in the zip archive. Add one.`,
|
|
520
522
|
noManifestAtPath: (path) => `We couldn't find the artifact file ${path}.`,
|
|
@@ -829,8 +831,13 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
829
831
|
taskLint: {
|
|
830
832
|
lintError: log_color_1.LogColor.error(`Error: The build failed due to errors in the app code. Fix the errors before rerunning ${forge('build')}, or run ${forge('build', '--no-verify')} to skip the linter.\n`),
|
|
831
833
|
lintWarning: (numWarnings) => {
|
|
832
|
-
const { pluralCheckedTotal } = checkLintTotalPlurals(0, numWarnings, 0, 0);
|
|
834
|
+
const { pluralCheckedTotal } = checkLintTotalPlurals(0, numWarnings, 0, 0, 0);
|
|
833
835
|
return log_color_1.LogColor.warn(`${pluralCheckedTotal} found. Run ${forge('lint')} to review the warnings.`);
|
|
836
|
+
},
|
|
837
|
+
lintApproval: (numApprovals, ruleNames) => {
|
|
838
|
+
const { pluralCheckedApprovals } = checkLintTotalPlurals(0, 0, numApprovals, 0, 0);
|
|
839
|
+
const approveValue = ruleNames && ruleNames.length > 0 ? ruleNames.join(',') : 'ruleName';
|
|
840
|
+
return log_color_1.LogColor.approval(`The deploy failed due to ${pluralCheckedApprovals} requested. Approve the rule by running ${forge('deploy', `--approve=${approveValue}`)}\n`);
|
|
834
841
|
}
|
|
835
842
|
},
|
|
836
843
|
list: {
|
|
@@ -860,9 +867,12 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
860
867
|
return `Deploying ${appName}${buildTagText} to ${exports.Text.env.displayEnvironment(envKey, envType)}...`;
|
|
861
868
|
},
|
|
862
869
|
success: 'Deployed\n',
|
|
863
|
-
successDetails: (appName, envKey, envType, buildTag) => {
|
|
870
|
+
successDetails: (appName, envKey, envType, buildTag, numApprovals) => {
|
|
864
871
|
const buildTagText = buildTag ? ` using build with tag ${buildTag}` : '';
|
|
865
|
-
|
|
872
|
+
const approvalsText = numApprovals && numApprovals > 0
|
|
873
|
+
? ` with ${numApprovals} ${numApprovals === 1 ? 'approval' : 'approvals'} acknowledged`
|
|
874
|
+
: '';
|
|
875
|
+
return `Deployed ${appName}${buildTagText} to the ${exports.Text.env.displayEnvironment(envKey, envType)} environment${approvalsText}.`;
|
|
866
876
|
},
|
|
867
877
|
distributePageLink: (appId) => `To install on a site that you're an admin of, run ${forge('install')}.\n` +
|
|
868
878
|
'To install on any other site, generate an installation link in the developer console and share it with the site admin: ' +
|
|
@@ -871,8 +881,13 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
871
881
|
taskLint: {
|
|
872
882
|
lintError: log_color_1.LogColor.error(`Error: The deploy failed due to errors in the app code. Fix the errors before rerunning ${forge('deploy')}, or run ${forge('deploy', '--no-verify')} to skip the linter.\n`),
|
|
873
883
|
lintWarning: (numWarnings) => {
|
|
874
|
-
const { pluralCheckedTotal } = checkLintTotalPlurals(0, numWarnings, 0, 0);
|
|
884
|
+
const { pluralCheckedTotal } = checkLintTotalPlurals(0, numWarnings, 0, 0, 0);
|
|
875
885
|
return log_color_1.LogColor.warn(`${pluralCheckedTotal} found. Run ${forge('lint')} to review the warnings.`);
|
|
886
|
+
},
|
|
887
|
+
lintApproval: (numApprovals, ruleNames) => {
|
|
888
|
+
const { pluralCheckedApprovals } = checkLintTotalPlurals(0, 0, numApprovals, 0, 0);
|
|
889
|
+
const approveValue = ruleNames && ruleNames.length > 0 ? ruleNames.join(',') : 'ruleName';
|
|
890
|
+
return log_color_1.LogColor.approval(`The deploy failed due to ${pluralCheckedApprovals} requested. Approve the rule by running ${forge('deploy', `--approve=${approveValue}`)}\n`);
|
|
876
891
|
}
|
|
877
892
|
},
|
|
878
893
|
hasNoAppInstallationsForEnv: {
|
|
@@ -1280,28 +1295,35 @@ ${buildTerminalLink(link)}\n`,
|
|
|
1280
1295
|
cmd: 'check the source files for common errors',
|
|
1281
1296
|
running: `Running ${forge('lint')}...`,
|
|
1282
1297
|
noProblems: 'No issues found.',
|
|
1298
|
+
approvalRequired: (ruleNames) => {
|
|
1299
|
+
const approveValue = ruleNames && ruleNames.length > 0 ? ruleNames.join(',') : 'ruleName';
|
|
1300
|
+
return log_color_1.LogColor.approval(`Approval required, fixable with ${forge('deploy', `--approve=${approveValue}`)}\n`);
|
|
1301
|
+
},
|
|
1283
1302
|
noFixableProblem: chalk_1.default.red(` Issue found is not automatically fixable with ${forge('lint')}.`),
|
|
1284
1303
|
noFixableProblems: chalk_1.default.red(` Issues found are not automatically fixable with ${forge('lint')}.`),
|
|
1285
1304
|
filename: chalk_1.default.underline,
|
|
1305
|
+
errorMissingManifest: `Missing manifest`,
|
|
1306
|
+
errorInvalidManifest: `Invalid manifest`,
|
|
1286
1307
|
linterFailed: (linterClass, failure) => chalk_1.default.yellow(`${chalk_1.default.bold('Warning:')} Could not perform some linting actions for ${chalk_1.default.bold(linterClass)} due to unhandled error "${failure}".\n`),
|
|
1287
1308
|
fixed: (numFixableErrors, numFixableWarnings) => {
|
|
1288
|
-
const { pluralCheckedFixableErrors, pluralCheckedFixableWarnings } = checkLintTotalPlurals(0, 0, numFixableErrors, numFixableWarnings);
|
|
1309
|
+
const { pluralCheckedFixableErrors, pluralCheckedFixableWarnings } = checkLintTotalPlurals(0, 0, 0, numFixableErrors, numFixableWarnings);
|
|
1289
1310
|
return `${greenTick} Fixed ${pluralCheckedFixableErrors} and ${pluralCheckedFixableWarnings}`;
|
|
1290
1311
|
},
|
|
1291
1312
|
fixFollowUp: `Run ${forge('lint')} to review outstanding errors and warnings`,
|
|
1292
1313
|
error: (line, column, message, reference) => getLintMessage(line, column, message, 'error', log_color_1.LogColor.error, reference),
|
|
1293
|
-
summary: (numErrors, numWarnings, numFixableErrors, numFixableWarnings) => {
|
|
1294
|
-
const { pluralCheckedErrors, pluralCheckedWarnings, pluralCheckedTotal } = checkLintTotalPlurals(numErrors, numWarnings, numFixableErrors, numFixableWarnings);
|
|
1295
|
-
const colourFunction = numErrors ? log_color_1.LogColor.error : log_color_1.LogColor.warn;
|
|
1314
|
+
summary: (numErrors, numWarnings, numApprovals, numFixableErrors, numFixableWarnings) => {
|
|
1315
|
+
const { pluralCheckedErrors, pluralCheckedWarnings, pluralCheckedApprovals, pluralCheckedTotal } = checkLintTotalPlurals(numErrors, numWarnings, numApprovals, numFixableErrors, numFixableWarnings);
|
|
1316
|
+
const colourFunction = numErrors ? log_color_1.LogColor.error : numWarnings ? log_color_1.LogColor.warn : log_color_1.LogColor.approval;
|
|
1296
1317
|
const warningCharacter = numErrors ? 'X' : '⚠';
|
|
1297
|
-
return colourFunction(`${warningCharacter} ${pluralCheckedTotal} (${pluralCheckedErrors}, ${pluralCheckedWarnings})`);
|
|
1318
|
+
return colourFunction(`${warningCharacter} ${pluralCheckedTotal} (${pluralCheckedErrors}, ${pluralCheckedWarnings}, ${pluralCheckedApprovals})`);
|
|
1298
1319
|
},
|
|
1299
1320
|
fixSummary: (numErrors, numFixableErrors, numFixableWarnings) => {
|
|
1300
|
-
const { pluralCheckedFixableErrors, pluralCheckedFixableWarnings } = checkLintTotalPlurals(0, 0, numFixableErrors, numFixableWarnings);
|
|
1321
|
+
const { pluralCheckedFixableErrors, pluralCheckedFixableWarnings } = checkLintTotalPlurals(0, 0, 0, numFixableErrors, numFixableWarnings);
|
|
1301
1322
|
const colourFunction = numErrors ? log_color_1.LogColor.error : log_color_1.LogColor.warn;
|
|
1302
1323
|
return colourFunction(` Run ${forge('lint', '--fix')} to automatically fix ${pluralCheckedFixableErrors} and ${pluralCheckedFixableWarnings}.\n`);
|
|
1303
1324
|
},
|
|
1304
|
-
warning: (line, column, message, reference) => getLintMessage(line, column, message, 'warning', log_color_1.LogColor.warn, reference)
|
|
1325
|
+
warning: (line, column, message, reference) => getLintMessage(line, column, message, 'warning', log_color_1.LogColor.warn, reference),
|
|
1326
|
+
approval: (line, column, message, reference) => getLintMessage(line, column, message, 'approval', log_color_1.LogColor.approval, reference)
|
|
1305
1327
|
},
|
|
1306
1328
|
repositories: {
|
|
1307
1329
|
cmd: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli-shared",
|
|
3
|
-
"version": "9.2.0-next.3-experimental-
|
|
3
|
+
"version": "9.2.0-next.3-experimental-c6a3916",
|
|
4
4
|
"description": "Common functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"generate-graphql-types": "graphql-codegen --config src/graphql/codegen.yml"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@forge/manifest": "13.1.1-next.2-experimental-
|
|
15
|
+
"@forge/manifest": "13.1.1-next.2-experimental-c6a3916",
|
|
16
16
|
"@forge/util": "3.0.0",
|
|
17
17
|
"@forge/i18n": "1.0.0",
|
|
18
18
|
"@sentry/node": "7.106.0",
|