Hi, thanks for making useful module!
I've met unexpected behavior about checkAllNodeModules: true
on Windows. When there is package.json
like this:
{
"private": true,
"devDependencies": {
"are-you-es5": "^2.1.0"
},
"dependencies": {}
}
checkAllNodeModules: true
in Windows always will mark non-direct dependents as ignored.
// test.js
const { checkModules } = require('are-you-es5')
console.log(
checkModules({
checkAllNodeModules: true,
})
)
It returns different in Linux and Windows by running node ./test.js
.
Linux
{
es5Modules: [ 'acorn', 'array-flatten', 'commander' ],
es6Modules: [
'are-you-es5',
'find-up',
'locate-path',
'p-limit',
'p-locate',
'p-try',
'path-exists'
],
ignored: []
}
Windows
{
es5Modules: [],
es6Modules: [],
ignored: [
'ih\\Programming\\ayes5\\node_modules\\.bin',
'ih\\Programming\\ayes5\\node_modules\\acorn',
'ih\\Programming\\ayes5\\node_modules\\are-you-es5',
'ih\\Programming\\ayes5\\node_modules\\array-flatten',
'ih\\Programming\\ayes5\\node_modules\\commander',
'ih\\Programming\\ayes5\\node_modules\\find-up',
'ih\\Programming\\ayes5\\node_modules\\locate-path',
'ih\\Programming\\ayes5\\node_modules\\p-limit',
'ih\\Programming\\ayes5\\node_modules\\p-locate',
'ih\\Programming\\ayes5\\node_modules\\p-try',
'ih\\Programming\\ayes5\\node_modules\\path-exists'
]
}