Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Commit 6857643

Browse files
committed
config: treat otps as strings to not eat leading zeros
Credit: @iarna
1 parent ada9c6c commit 6857643

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/config/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ exports.types = {
319319
only: [null, 'dev', 'development', 'prod', 'production'],
320320
optional: Boolean,
321321
'package-lock': Boolean,
322-
otp: Number,
322+
otp: [null, String],
323323
'package-lock-only': Boolean,
324324
parseable: Boolean,
325325
'prefer-offline': Boolean,

0 commit comments

Comments
 (0)