Description:
gts/eslint.config.js shipped at the package root does require('./src/index.js'), but only build/src/index.js is included in the published tarball.
Consumers doing require('gts/eslint.config.js') from their own flat ESLint config get MODULE_NOT_FOUND. The working path is
gts/build/eslint.config.js. Suggested fix: either remove the top-level eslint.config.js / eslint.ignores.js from files in package.json and point users at the build/ copy, or change the top-level file to require('./build/src/index.js'). Or add an exports map to disambiguate.
Reproducer:
see test in any consumer project — node -e "require('gts/eslint.config.js')" throws; node -e "require('gts/build/eslint.config.js')" works.
Description:
gts/eslint.config.jsshipped at the package root does require('./src/index.js'), but onlybuild/src/index.jsis included in the published tarball.Consumers doing
require('gts/eslint.config.js')from their own flat ESLint config getMODULE_NOT_FOUND. The working path isgts/build/eslint.config.js. Suggested fix: either remove the top-leveleslint.config.js/eslint.ignores.jsfrom files inpackage.jsonand point users at the build/ copy, or change the top-level file torequire('./build/src/index.js'). Or add an exports map to disambiguate.Reproducer:
see test in any consumer project — node -e "require('gts/eslint.config.js')" throws; node -e "require('gts/build/eslint.config.js')" works.