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 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://github.com/user-attachments/assets/placeholder-image" alt="itty-packager" height="120" />
5
+ <img src="https://ity.sh/WtTvnDwJ" alt="itty-packager" height="120" />
6
6
  </a>
7
7
  </p>
8
8
 
9
9
  [![Version](https://img.shields.io/npm/v/itty-packager.svg?style=flat-square)](https://npmjs.com/package/itty-packager)
10
- [![Bundle Size](https://deno.bundlejs.com/?q=itty-packager&badge&badge-style=flat-square)](https://deno.bundlejs.com/?q=itty-packager)
11
10
  [![Coverage Status](https://img.shields.io/coveralls/github/kwhitley/itty-packager?style=flat-square)](https://coveralls.io/github/kwhitley/itty-packager)
12
11
  [![Issues](https://img.shields.io/github/issues/kwhitley/itty-packager?style=flat-square)](https://github.com/kwhitley/itty-packager/issues)
13
12
  [![Discord](https://img.shields.io/discord/832353585802903572?label=Discord&logo=Discord&style=flat-square&logoColor=fff)](https://discord.gg/53vyrZAu9u)
14
13
 
15
- ### [Documentation](https://itty.dev) &nbsp;| &nbsp; [Discord](https://discord.gg/53vyrZAu9u)
14
+ ### [Documentation](https://itty.dev/itty-packager) &nbsp;| &nbsp; [Discord](https://discord.gg/53vyrZAu9u)
16
15
 
17
16
  ---
18
17
 
19
- # Universal toolkit for itty libraries
18
+ # Single dependency build + publish for TypeScript libraries.
20
19
 
21
- Zero-config build, lint, and publish workflows for TypeScript libraries.
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
@@ -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.4",
4
4
  "description": "Universal build tool for itty libraries",
5
5
  "type": "module",
6
6
  "bin": {