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.
- package/lib/commands/lint.js +4 -5
- package/package.json +1 -1
package/lib/commands/lint.js
CHANGED
|
@@ -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
|
|
92
|
-
const
|
|
93
|
-
const
|
|
94
|
-
|
|
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
|
|