Skip to content

Commit 02994f9

Browse files
committed
Upgrade node version, clean up config value validator message
1 parent 783462e commit 02994f9

4 files changed

Lines changed: 24 additions & 5 deletions

File tree

package-lock.json

Lines changed: 21 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"variables"
2222
],
2323
"engines": {
24-
"node": ">=18.0.0"
24+
"node": ">=20.0.0"
2525
},
2626
"publishConfig": {
2727
"access": "public"

src/shared/configMeta.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default [
1010
input: {
1111
validator: (value: ConfigValue): boolean =>
1212
value != null && ['true', 'false'].includes(value.toString()),
13-
failedMessage: 'Must provide a boolean value.',
13+
failedMessage: 'must provide either "true" or "false"',
1414
},
1515
},
1616
];

test/prerun.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const testHook = async (params: { Command: Command.Class; config: Config; argv:
100100

101101
describe('prerun hook', () => {
102102
const ORIGINAL_ENV = Object.freeze({ ...process.env });
103-
const mockConfig = { 'should-log-env': 'true' } as unknown as Config;
103+
const mockConfig = {} as Config;
104104
const mockCommand = {} as Command.Class;
105105
const mockLogger = () => {
106106
// don't pipe to stdout and clog up the terminal

0 commit comments

Comments
 (0)