@wchen.ai/env-from-example 1.0.0 → 1.0.2

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.
@@ -400,7 +400,10 @@ async function run() {
400
400
  }
401
401
  // ─── Entry ───────────────────────────────────────────────────────────────────
402
402
  const __filename = fileURLToPath(import.meta.url);
403
- const isMain = process.argv[1] && path.resolve(process.argv[1]) === path.resolve(__filename);
403
+ const resolvedArgv = process.argv[1]
404
+ ? fs.realpathSync(path.resolve(process.argv[1]))
405
+ : "";
406
+ const isMain = resolvedArgv === fs.realpathSync(path.resolve(__filename));
404
407
  if (isMain) {
405
408
  run().catch((err) => {
406
409
  if (err &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wchen.ai/env-from-example",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Interactive and non-interactive CLI to set up .env from .env.example",
5
5
  "keywords": [
6
6
  "env",