fly-secrets-diff 0.1.0 → 0.1.1

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.
Files changed (3) hide show
  1. package/README.md +4 -1
  2. package/index.mjs +3 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -20,6 +20,10 @@ pnpm add fly-secrets-diff
20
20
 
21
21
  Or just copy it over to you project, it's a single JavaScript file with no deps.
22
22
 
23
+ ```sh
24
+ wget -O fsd.js https://raw.githubusercontent.com/hilja/fly-secrets-diff/refs/heads/main/index.mjs
25
+ ```
26
+
23
27
  ## Usage
24
28
 
25
29
  ```
@@ -61,6 +65,5 @@ pnpm i
61
65
  pnpm format
62
66
  pnpm lint
63
67
  pnpm test
64
- pnpm build
65
68
  pnpm ncu # Update packages
66
69
  ```
package/index.mjs CHANGED
@@ -352,7 +352,9 @@ async function run(args) {
352
352
  await printDiff(args)
353
353
  }
354
354
 
355
- const runAsScript = process.argv[1] === import.meta.filename
355
+ const entry = process.argv[1]
356
+ const runAsScript =
357
+ entry && import.meta.filename.endsWith(entry.replace(process.cwd(), ''))
356
358
 
357
359
  /**
358
360
  * Execute the cli
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fly-secrets-diff",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "CLI tool to diff fly.io machine secrets and local secrets",
5
5
  "keywords": [
6
6
  "diff",