@driveflux/env 0.0.2-develop.2 → 0.0.2-develop.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/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import{a as A}from"./init-env.js";import{b as z}from"./augment-env.js";import{c as C,d as x}from"./chunk-32b1dzdk.js";await A().catch((k)=>{console.error("Error initializing environment:",k),process.exit(1)});z();if(x.main==x.module){let k=process.argv.slice(2);if(!k.length)console.error("No arguments provided"),process.exit(1);let{spawn:B}=await import("node:child_process"),y=k.shift();if(!y)console.error("No binary to run provided"),process.exit(1);B(y,k,{stdio:"inherit",shell:!0,env:process.env})}
1
+ import{a as A}from"./init-env.js";import{b as z}from"./augment-env.js";import{c as C,e as x}from"./chunk-wy1gj9e4.js";await A().catch((k)=>{console.error("Error initializing environment:",k),process.exit(1)});z();if(x.main==x.module){let k=process.argv.slice(2);if(!k.length)console.error("No arguments provided"),process.exit(1);let{spawn:B}=await import("node:child_process"),y=k.shift();if(!y)console.error("No binary to run provided"),process.exit(1);B(y,k,{stdio:"inherit",shell:!0,env:process.env})}
2
2
 
3
- //# debugId=D4E9ADD2CBDB487064756E2164756E21
3
+ //# debugId=E1235BA9A4FBE9DA64756E2164756E21
4
4
  //# sourceMappingURL=main.js.map
package/dist/main.js.map CHANGED
@@ -5,6 +5,6 @@
5
5
  "import { augmentEnv } from './augment-env'\nimport { initEnv } from './init-env'\n\n// Init the env\nawait initEnv().catch((error: Error) => {\n console.error('Error initializing environment:', error)\n process.exit(1)\n})\n\n// Augment the env with the base configs\naugmentEnv()\n\nif (import.meta.main) {\n // When this file is called as the main, it is supposed to load the env\n // and set it in the shell calling the rest of the script from argv\n // as if it's just a pre-script to load env variables\n\n const args = process.argv.slice(2)\n if (!args.length) {\n console.error('No arguments provided')\n process.exit(1)\n }\n\n const { spawn } = await import('node:child_process')\n const binToRunRun = args.shift()\n if (!binToRunRun) {\n console.error('No binary to run provided')\n process.exit(1)\n }\n spawn(binToRunRun, args, {\n stdio: 'inherit',\n shell: true,\n env: process.env,\n })\n}\n"
6
6
  ],
7
7
  "mappings": "qIAIA,HAAM,JAAQ,EAAE,MAAM,CAAC,IAAiB,CACtC,QAAQ,MAAM,kCAAmC,CAAK,EACtD,QAAQ,KAAK,CAAC,EACf,EAGD,EAAW,EAEX,GAAI,iBAAkB,CAKpB,IAAM,EAAO,QAAQ,KAAK,MAAM,CAAC,EACjC,GAAI,CAAC,EAAK,OACR,QAAQ,MAAM,uBAAuB,EACrC,QAAQ,KAAK,CAAC,EAGhB,IAAQ,SAAU,KAAa,8BACzB,EAAc,EAAK,MAAM,EAC/B,GAAI,CAAC,EACH,QAAQ,MAAM,2BAA2B,EACzC,QAAQ,KAAK,CAAC,EAEhB,EAAM,EAAa,EAAM,CACvB,MAAO,UACP,MAAO,GACP,IAAK,QAAQ,GACf,CAAC",
8
- "debugId": "D4E9ADD2CBDB487064756E2164756E21",
8
+ "debugId": "E1235BA9A4FBE9DA64756E2164756E21",
9
9
  "names": []
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@driveflux/env",
3
- "version": "0.0.2-develop.2",
3
+ "version": "0.0.2-develop.4",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -24,6 +24,6 @@
24
24
  "devDependencies": {
25
25
  "@types/bun": "^1.3",
26
26
  "typescript": "5.9.3",
27
- "@driveflux/fix-builds": "0.0.2-develop.13"
27
+ "@driveflux/fix-builds": "0.0.2-develop.15"
28
28
  }
29
29
  }
@@ -1,5 +0,0 @@
1
- import{createRequire as k}from"node:module";var g=Object.create;var{getPrototypeOf:h,defineProperty:e,getOwnPropertyNames:i}=Object;var j=Object.prototype.hasOwnProperty;var l=(a,f,b)=>{b=a!=null?g(h(a)):{};let c=f||!a||!a.__esModule?e(b,"default",{value:a,enumerable:!0}):b;for(let d of i(a))if(!j.call(c,d))e(c,d,{get:()=>a[d],enumerable:!0});return c};var n=k(import.meta.url);
2
- export{l as c,n as d};
3
-
4
- //# debugId=695D25ED1EB2189864756E2164756E21
5
- //# sourceMappingURL=chunk-32b1dzdk.js.map