@dcaldeira/tooling 0.1.0 → 0.2.1
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/README.md +34 -34
- package/checks/a11y.mjs +206 -206
- package/checks/architecture.mjs +137 -137
- package/checks/audit.mjs +121 -121
- package/checks/bundle.mjs +128 -126
- package/checks/dependencies.mjs +277 -277
- package/checks/duplication.mjs +135 -0
- package/checks/lint-scss.mjs +363 -349
- package/checks/package.mjs +30 -30
- package/checks/playwright-summary.mjs +53 -53
- package/checks/sass.mjs +67 -67
- package/checks/scan-secrets.mjs +58 -58
- package/checks/shared.mjs +86 -86
- package/checks/translations.mjs +55 -55
- package/checks/visual-compare.mjs +148 -148
- package/checks/visual-report-html.mjs +470 -470
- package/checks/visual-report.mjs +13 -13
- package/config.schema.json +999 -927
- package/configs/eslint.mjs +27 -27
- package/configs/knip.json +11 -11
- package/configs/playwright.mjs +15 -15
- package/configs/vitest.mjs +16 -16
- package/package.json +105 -105
- package/release/finalize.mjs +65 -65
- package/release/github.mjs +64 -64
- package/release/prepare.mjs +30 -30
- package/runner/browsers.mjs +73 -73
- package/runner/cache.mjs +121 -121
- package/runner/ci-plan.mjs +54 -54
- package/runner/cli.mjs +250 -248
- package/runner/config.mjs +148 -148
- package/runner/docs-install.mjs +93 -93
- package/runner/execute.mjs +298 -286
- package/runner/generate.mjs +122 -122
- package/runner/git.mjs +122 -122
- package/runner/graph.mjs +250 -243
- package/runner/insights.mjs +313 -313
- package/runner/provision.mjs +53 -53
- package/runner/repo-standard.mjs +104 -0
- package/runner/report.mjs +35 -35
- package/runner/serve-static.mjs +76 -76
- package/runner/setup.mjs +241 -237
- package/runner/summary.mjs +112 -112
- package/runner/watch.mjs +82 -82
- package/templates/ci.yml +25 -25
- package/templates/dependabot-merge.yml +13 -13
- package/templates/dependabot.yml +26 -26
- package/templates/pre-push +13 -13
- package/templates/release.yml +23 -23
package/runner/cli.mjs
CHANGED
|
@@ -1,249 +1,251 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
3
|
-
import { join, resolve } from 'node:path';
|
|
4
|
-
import { watchChanges } from './watch.mjs';
|
|
5
|
-
import { loadConfig } from './config.mjs';
|
|
6
|
-
import { changedFiles, clean, git, captureSnapshot } from './git.mjs';
|
|
7
|
-
import { checkCache } from './cache.mjs';
|
|
8
|
-
import { plan } from './graph.mjs';
|
|
9
|
-
import { execute, invoke } from './execute.mjs';
|
|
10
|
-
import { writeReport } from './report.mjs';
|
|
11
|
-
import { setupCommand } from './setup.mjs';
|
|
12
|
-
import { generateCommand } from './generate.mjs';
|
|
13
|
-
import { collectMetrics, historyText, performanceHistory } from './insights.mjs';
|
|
14
|
-
import { createHash } from 'node:crypto';
|
|
15
|
-
|
|
16
|
-
const version = JSON.parse(
|
|
17
|
-
readFileSync(new URL('../package.json', import.meta.url), 'utf8'),
|
|
18
|
-
).version;
|
|
19
|
-
const args = process.argv.slice(2);
|
|
20
|
-
const subcommand = ['init', 'doctor', 'generate', 'history'].includes(args[0])
|
|
21
|
-
? args.shift()
|
|
22
|
-
: undefined;
|
|
23
|
-
const generator = subcommand === 'generate' ? args.shift() : undefined;
|
|
24
|
-
const valueFlags =
|
|
25
|
-
subcommand === 'generate'
|
|
26
|
-
? ['cwd', 'config', 'name', 'path']
|
|
27
|
-
: subcommand === 'history'
|
|
28
|
-
? ['cwd', 'limit']
|
|
29
|
-
: subcommand === 'init'
|
|
30
|
-
? ['cwd', 'preset', 'app', 'tooling-sha']
|
|
31
|
-
: subcommand === 'doctor'
|
|
32
|
-
? ['cwd', 'config']
|
|
33
|
-
: ['profile', 'base', 'head', 'config', 'only', 'skip', 'output', 'cwd', 'concurrency'];
|
|
34
|
-
const boolFlags =
|
|
35
|
-
subcommand === 'generate'
|
|
36
|
-
? ['dry-run', 'design-system']
|
|
37
|
-
: subcommand
|
|
38
|
-
? []
|
|
39
|
-
:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if (boolFlags.includes(flag))
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
options[flag] =
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
if (options.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
const
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
)
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
...
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
),
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
const
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
cached?.
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
process.env.
|
|
166
|
-
process.env.
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
else
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
2
|
+
import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
3
|
+
import { join, resolve } from 'node:path';
|
|
4
|
+
import { watchChanges } from './watch.mjs';
|
|
5
|
+
import { loadConfig } from './config.mjs';
|
|
6
|
+
import { changedFiles, clean, git, captureSnapshot } from './git.mjs';
|
|
7
|
+
import { checkCache } from './cache.mjs';
|
|
8
|
+
import { plan } from './graph.mjs';
|
|
9
|
+
import { execute, invoke } from './execute.mjs';
|
|
10
|
+
import { writeReport } from './report.mjs';
|
|
11
|
+
import { setupCommand } from './setup.mjs';
|
|
12
|
+
import { generateCommand } from './generate.mjs';
|
|
13
|
+
import { collectMetrics, historyText, performanceHistory } from './insights.mjs';
|
|
14
|
+
import { createHash } from 'node:crypto';
|
|
15
|
+
|
|
16
|
+
const version = JSON.parse(
|
|
17
|
+
readFileSync(new URL('../package.json', import.meta.url), 'utf8'),
|
|
18
|
+
).version;
|
|
19
|
+
const args = process.argv.slice(2);
|
|
20
|
+
const subcommand = ['init', 'doctor', 'generate', 'history'].includes(args[0])
|
|
21
|
+
? args.shift()
|
|
22
|
+
: undefined;
|
|
23
|
+
const generator = subcommand === 'generate' ? args.shift() : undefined;
|
|
24
|
+
const valueFlags =
|
|
25
|
+
subcommand === 'generate'
|
|
26
|
+
? ['cwd', 'config', 'name', 'path']
|
|
27
|
+
: subcommand === 'history'
|
|
28
|
+
? ['cwd', 'limit']
|
|
29
|
+
: subcommand === 'init'
|
|
30
|
+
? ['cwd', 'preset', 'app', 'tooling-sha']
|
|
31
|
+
: subcommand === 'doctor'
|
|
32
|
+
? ['cwd', 'config']
|
|
33
|
+
: ['profile', 'base', 'head', 'config', 'only', 'skip', 'output', 'cwd', 'concurrency'];
|
|
34
|
+
const boolFlags =
|
|
35
|
+
subcommand === 'generate'
|
|
36
|
+
? ['dry-run', 'design-system']
|
|
37
|
+
: subcommand === 'doctor'
|
|
38
|
+
? ['repo-standard']
|
|
39
|
+
: subcommand
|
|
40
|
+
? []
|
|
41
|
+
: ['changed', 'all', 'bail', 'install', 'plan', 'watch', 'committed', 'no-cache'];
|
|
42
|
+
const options = {};
|
|
43
|
+
for (let i = 0; i < args.length; i++) {
|
|
44
|
+
const [flag, ...tail] = args[i].replace(/^--/, '').split('=');
|
|
45
|
+
if (!args[i].startsWith('--') || ![...valueFlags, ...boolFlags].includes(flag))
|
|
46
|
+
throw new Error(`Unknown argument: ${args[i]}`);
|
|
47
|
+
if (boolFlags.includes(flag)) {
|
|
48
|
+
if (tail.length) throw new Error(`--${flag} takes no value`);
|
|
49
|
+
options[flag] = true;
|
|
50
|
+
} else {
|
|
51
|
+
options[flag] = tail.length ? tail.join('=') : args[++i];
|
|
52
|
+
if (!options[flag] || options[flag].startsWith('--'))
|
|
53
|
+
throw new Error(`--${flag} needs a value`);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
if (options.all && options.changed) throw new Error('Choose --all or --changed');
|
|
57
|
+
if (options.watch && options.profile !== 'dev') throw new Error('--watch requires --profile=dev');
|
|
58
|
+
if (options.head && !options.committed) throw new Error('--head requires --committed');
|
|
59
|
+
const root = resolve(options.cwd ?? process.cwd());
|
|
60
|
+
const state = join(root, '.tooling', 'state');
|
|
61
|
+
const output = resolve(root, options.output ?? '.tooling/report');
|
|
62
|
+
const list = (key) => options[key]?.split(',').filter(Boolean) ?? [];
|
|
63
|
+
const profile = options.profile ?? 'ci';
|
|
64
|
+
if (
|
|
65
|
+
options.concurrency !== undefined &&
|
|
66
|
+
(!/^\d+$/.test(options.concurrency) ||
|
|
67
|
+
Number(options.concurrency) < 1 ||
|
|
68
|
+
Number(options.concurrency) > 16)
|
|
69
|
+
)
|
|
70
|
+
throw new Error('--concurrency must be an integer between 1 and 16');
|
|
71
|
+
|
|
72
|
+
async function run() {
|
|
73
|
+
const started = Date.now();
|
|
74
|
+
const { config, raw } = loadConfig(root, options.config);
|
|
75
|
+
let base = options.base ?? (profile === 'dev' ? 'HEAD' : undefined);
|
|
76
|
+
if (!base) {
|
|
77
|
+
try {
|
|
78
|
+
base = git(root, 'rev-parse', 'origin/main');
|
|
79
|
+
} catch {
|
|
80
|
+
if (options.changed) throw new Error('No origin/main: pass --base=<revision> or --all');
|
|
81
|
+
base = 'HEAD';
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
base = git(root, 'rev-parse', `${base}^{commit}`);
|
|
85
|
+
if (profile === 'push') {
|
|
86
|
+
if (options.committed || options.head)
|
|
87
|
+
throw new Error('Push validation must include the current worktree');
|
|
88
|
+
let expectedBase;
|
|
89
|
+
try {
|
|
90
|
+
expectedBase = git(root, 'rev-parse', 'origin/main^{commit}');
|
|
91
|
+
} catch {}
|
|
92
|
+
if (!options.all && (!expectedBase || expectedBase !== base))
|
|
93
|
+
throw new Error('Push validation must use current origin/main, or --all without a remote');
|
|
94
|
+
}
|
|
95
|
+
const files =
|
|
96
|
+
!options.all && (options.changed || options.base)
|
|
97
|
+
? changedFiles(root, base, { committed: options.committed, head: options.head ?? 'HEAD' })
|
|
98
|
+
: 'all';
|
|
99
|
+
const selection = plan(config, { files, profile, only: list('only'), skip: list('skip') });
|
|
100
|
+
if (options.plan) {
|
|
101
|
+
console.log(JSON.stringify(selection, null, 2));
|
|
102
|
+
return true;
|
|
103
|
+
}
|
|
104
|
+
if (!selection.checks.length && !selection.excluded.length) {
|
|
105
|
+
console.log('No applicable checks; nothing to install or validate.');
|
|
106
|
+
if (profile === 'push' && !clean(root)) {
|
|
107
|
+
console.error('No pass recorded: commit all tracked and untracked files first.');
|
|
108
|
+
return false;
|
|
109
|
+
}
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
if (options.install) {
|
|
113
|
+
const result = await invoke(['npm', 'ci', '--ignore-scripts'], root);
|
|
114
|
+
if (result.status !== 'passed') throw new Error('Dependency installation failed');
|
|
115
|
+
}
|
|
116
|
+
const context = {
|
|
117
|
+
base,
|
|
118
|
+
version,
|
|
119
|
+
config: raw,
|
|
120
|
+
environment: config.environment,
|
|
121
|
+
inputs: [
|
|
122
|
+
...new Set([
|
|
123
|
+
...(config.inputs ?? []),
|
|
124
|
+
...(config.a11y?.storageState ? [config.a11y.storageState] : []),
|
|
125
|
+
...selection.checks
|
|
126
|
+
.filter((c) => c.cwd)
|
|
127
|
+
.map((c) => join(c.cwd, 'node_modules/.package-lock.json')),
|
|
128
|
+
]),
|
|
129
|
+
],
|
|
130
|
+
tools: [
|
|
131
|
+
...new Map(
|
|
132
|
+
selection.checks.flatMap((check) =>
|
|
133
|
+
[...(check.tools ?? []), ...(Array.isArray(check.command) ? [check.command[0]] : [])].map(
|
|
134
|
+
(name) => [`${check.cwd ?? '.'}\0${name}`, { name, cwd: check.cwd ?? '.' }],
|
|
135
|
+
),
|
|
136
|
+
),
|
|
137
|
+
).values(),
|
|
138
|
+
],
|
|
139
|
+
};
|
|
140
|
+
const captured = captureSnapshot(root, context);
|
|
141
|
+
const before = captured.fingerprint;
|
|
142
|
+
const cache = checkCache(root, config, selection, captured, {
|
|
143
|
+
disabled: options['no-cache'] || options.all,
|
|
144
|
+
});
|
|
145
|
+
const passPath = join(state, 'push-pass.json');
|
|
146
|
+
const checkKey = JSON.stringify(selection.checks.map((check) => check.id));
|
|
147
|
+
let cached;
|
|
148
|
+
try {
|
|
149
|
+
cached = JSON.parse(readFileSync(passPath, 'utf8'));
|
|
150
|
+
} catch {}
|
|
151
|
+
if (
|
|
152
|
+
profile === 'push' &&
|
|
153
|
+
cache.reusablePass &&
|
|
154
|
+
!options['no-cache'] &&
|
|
155
|
+
clean(root) &&
|
|
156
|
+
cached?.fingerprint === before &&
|
|
157
|
+
cached?.base === base &&
|
|
158
|
+
cached?.checks === checkKey &&
|
|
159
|
+
!selection.excluded.length &&
|
|
160
|
+
!list('only').length
|
|
161
|
+
) {
|
|
162
|
+
console.log('Pass recorded: matching commit, base, tooling, configuration and inputs.');
|
|
163
|
+
return true;
|
|
164
|
+
}
|
|
165
|
+
process.env.TOOLING_CONFIG_PATH = options.config ?? 'tooling.config.json';
|
|
166
|
+
process.env.TOOLING_REPORT_DIR = output;
|
|
167
|
+
process.env.TOOLING_COMMIT = git(root, 'rev-parse', 'HEAD');
|
|
168
|
+
process.env.TOOLING_VERSION = version;
|
|
169
|
+
const result = await execute(root, selection, {
|
|
170
|
+
cache,
|
|
171
|
+
toolCache: !options['no-cache'],
|
|
172
|
+
bail: options.bail,
|
|
173
|
+
concurrency:
|
|
174
|
+
options.concurrency !== undefined
|
|
175
|
+
? Number(options.concurrency)
|
|
176
|
+
: config.execution?.concurrency,
|
|
177
|
+
});
|
|
178
|
+
const after = captureSnapshot(root, context).fingerprint;
|
|
179
|
+
if (before !== after) {
|
|
180
|
+
result.complete = false;
|
|
181
|
+
result.results.push({
|
|
182
|
+
id: 'inputs',
|
|
183
|
+
status: 'unavailable',
|
|
184
|
+
reason: 'Inputs changed during validation',
|
|
185
|
+
});
|
|
186
|
+
} else cache.commit(result.results);
|
|
187
|
+
const report = {
|
|
188
|
+
schemaVersion: 1,
|
|
189
|
+
version,
|
|
190
|
+
profile,
|
|
191
|
+
groups: selection.groups,
|
|
192
|
+
affectedWorkspaces: selection.affectedWorkspaces,
|
|
193
|
+
required: selection.required,
|
|
194
|
+
commit: git(root, 'rev-parse', 'HEAD'),
|
|
195
|
+
base,
|
|
196
|
+
tree: git(root, 'rev-parse', 'HEAD^{tree}'),
|
|
197
|
+
fingerprint: before,
|
|
198
|
+
finishedAt: new Date().toISOString(),
|
|
199
|
+
startedAt: new Date(started).toISOString(),
|
|
200
|
+
wallMilliseconds: Date.now() - started,
|
|
201
|
+
node: process.version,
|
|
202
|
+
platform: process.platform,
|
|
203
|
+
configuration: createHash('sha256').update(raw).digest('hex'),
|
|
204
|
+
...result,
|
|
205
|
+
};
|
|
206
|
+
report.metrics = collectMetrics(root, output, report, config.reporting);
|
|
207
|
+
report.performance = performanceHistory(root, report, config.history);
|
|
208
|
+
writeReport(output, report);
|
|
209
|
+
for (const r of report.results)
|
|
210
|
+
console.log(`${r.status.padEnd(11)} ${r.id}${r.reason ? `: ${r.reason}` : ''}`);
|
|
211
|
+
console.log(`Report: ${join(output, 'index.html')}`);
|
|
212
|
+
if (profile === 'push' && result.complete) {
|
|
213
|
+
if (!clean(root)) {
|
|
214
|
+
console.error('No pass recorded: commit all tracked and untracked files first.');
|
|
215
|
+
return false;
|
|
216
|
+
}
|
|
217
|
+
mkdirSync(state, { recursive: true });
|
|
218
|
+
writeFileSync(passPath, JSON.stringify({ fingerprint: before, base, checks: checkKey }));
|
|
219
|
+
console.log('Pass recorded');
|
|
220
|
+
}
|
|
221
|
+
return result.complete;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
try {
|
|
225
|
+
if (subcommand === 'generate') process.exitCode = generateCommand(root, generator, options);
|
|
226
|
+
else if (subcommand === 'history') {
|
|
227
|
+
const limit = options.limit === undefined ? 20 : Number(options.limit);
|
|
228
|
+
if (!Number.isInteger(limit) || limit < 1 || limit > 1000)
|
|
229
|
+
throw new Error('--limit must be between 1 and 1000');
|
|
230
|
+
console.log(historyText(root, limit));
|
|
231
|
+
} else if (subcommand) process.exitCode = await setupCommand(subcommand, root, options);
|
|
232
|
+
else if (!options.watch) process.exitCode = (await run()) ? 0 : 1;
|
|
233
|
+
else {
|
|
234
|
+
const controller = new AbortController();
|
|
235
|
+
const stop = () => controller.abort();
|
|
236
|
+
process.once('SIGINT', stop);
|
|
237
|
+
process.once('SIGTERM', stop);
|
|
238
|
+
try {
|
|
239
|
+
await watchChanges(root, run, {
|
|
240
|
+
signal: controller.signal,
|
|
241
|
+
inputs: () => loadConfig(root, options.config).config.inputs ?? [],
|
|
242
|
+
});
|
|
243
|
+
} finally {
|
|
244
|
+
process.removeListener('SIGINT', stop);
|
|
245
|
+
process.removeListener('SIGTERM', stop);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
} catch (error) {
|
|
249
|
+
console.error(error.message);
|
|
250
|
+
process.exitCode = 2;
|
|
251
|
+
}
|