@moneko/core 4.5.3-beta.0 → 4.5.3-beta.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.
- package/lib/commom/setup-env.mjs +1 -1
- package/package.json +2 -2
package/lib/commom/setup-env.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{env as e}from"node:process";import{fileExists as t,loadFile as r}from"@moneko/utils";async function n(n,i,s,a,l,o){let c=[".env",".env/.env"
|
|
1
|
+
import{env as e}from"node:process";import{fileExists as t,loadFile as r}from"@moneko/utils";async function n(n,i,s,a,l,o){let c=[".env",".env/.env",n&&`.${n}.env`,n&&`.env/.${n}.env`,o&&`.${o}.env`,o&&`.env/.${o}.env`].filter(e=>e&&t(e)),f={NODE_ENV:n,APPTYPE:i,FRAMEWORK:s,IS_BUILD:l};return a.forEach(e=>{let[t,r]=e.replace(/^--/,"").split("=");Object.assign(f,{[`__args__${t}__`]:r||!0})}),(await Promise.all(c.map(r))).forEach(e=>{e&&Object.assign(f,e.split("\n").reduce((e,t)=>{if(!t||t.trim().startsWith("#"))return e;let[r,...n]=t.split("=");if(!r)return e;let i=n.join("=").trim();return e[r.trim()]=i.replace(/^["']|["']$/g,""),e},{}))}),Object.keys(f).forEach(t=>{let r=f[t];e[t]!==r&&(e[t]=f[t])}),f}export default n;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneko/core",
|
|
3
|
-
"version": "4.5.3-beta.
|
|
3
|
+
"version": "4.5.3-beta.2",
|
|
4
4
|
"description": "core",
|
|
5
5
|
"main": "lib/index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"less-loader": "12.3.0",
|
|
147
147
|
"lightningcss": "1.31.1",
|
|
148
148
|
"marked-completed": "1.2.15",
|
|
149
|
-
"memfs": "4.
|
|
149
|
+
"memfs": "4.52.0",
|
|
150
150
|
"swc-loader": "0.2.7",
|
|
151
151
|
"typescript": "5.9.3",
|
|
152
152
|
"webpack": "5.104.1",
|