itty-packager 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -88,11 +88,10 @@ Note:
88
88
  const packagerPath = path.resolve(__dirname, '../../')
89
89
  const builtinConfig = path.join(packagerPath, 'lib', 'configs', 'eslint.config.mjs')
90
90
 
91
- // Check if we're in development (has node_modules) or published (use npx)
92
- const isDevMode = await fs.pathExists(path.join(packagerPath, 'node_modules'))
93
- const eslintBinary = isDevMode
94
- ? path.join(packagerPath, 'node_modules', '.bin', 'eslint')
95
- : 'eslint' // Use npx approach for published version
91
+ // Check if we're in development (has ESLint binary) or published (use npx)
92
+ const eslintBinaryPath = path.join(packagerPath, 'node_modules', '.bin', 'eslint')
93
+ const isDevMode = await fs.pathExists(eslintBinaryPath)
94
+ const eslintBinary = isDevMode ? eslintBinaryPath : 'eslint'
96
95
 
97
96
  const eslintArgs = []
98
97
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itty-packager",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Universal build tool for itty libraries",
5
5
  "type": "module",
6
6
  "bin": {