itty-packager 1.0.2 → 1.0.4
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/README.md +5 -6
- package/lib/commands/lint.js +4 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,23 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
<p>
|
|
4
4
|
<a href="https://itty.dev/itty-packager" target="_blank">
|
|
5
|
-
<img src="https://
|
|
5
|
+
<img src="https://ity.sh/WtTvnDwJ" alt="itty-packager" height="120" />
|
|
6
6
|
</a>
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
9
|
[](https://npmjs.com/package/itty-packager)
|
|
10
|
-
[](https://deno.bundlejs.com/?q=itty-packager)
|
|
11
10
|
[](https://coveralls.io/github/kwhitley/itty-packager)
|
|
12
11
|
[](https://github.com/kwhitley/itty-packager/issues)
|
|
13
12
|
[](https://discord.gg/53vyrZAu9u)
|
|
14
13
|
|
|
15
|
-
### [Documentation](https://itty.dev) | [Discord](https://discord.gg/53vyrZAu9u)
|
|
14
|
+
### [Documentation](https://itty.dev/itty-packager) | [Discord](https://discord.gg/53vyrZAu9u)
|
|
16
15
|
|
|
17
16
|
---
|
|
18
17
|
|
|
19
|
-
#
|
|
18
|
+
# Single dependency build + publish for TypeScript libraries.
|
|
20
19
|
|
|
21
|
-
Zero-config build, lint, and publish
|
|
20
|
+
Zero-config build, lint, and publish - letting you deliver packages with minimal files and minimal bytes.
|
|
22
21
|
|
|
23
22
|
## Features
|
|
24
23
|
|
|
@@ -216,4 +215,4 @@ Add itty-packager to your scripts for easy access:
|
|
|
216
215
|
|
|
217
216
|
## License
|
|
218
217
|
|
|
219
|
-
MIT
|
|
218
|
+
MIT
|
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
|
|