Closed saas786 closed 3 years ago
on windows
process.env.INIT_CWD
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
when passed to path.join(process.env.INIT_CWD, 'husky.config.js');
so using process.cwd()
as a fallback for windows
slack discussion ref: https://conversionxl.slack.com/archives/C0G52K19U/p1606730153003000
@saas786 can you amend commit message
"fix: node process.env.INIT_CWD may be missing on Windows"
on windows
process.env.INIT_CWD
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
when passed to path.join(process.env.INIT_CWD, 'husky.config.js');
so using process.cwd()
as a fallback for windows
slack discussion ref: https://conversionxl.slack.com/archives/C0G52K19U/p1606730153003000