@flatjs/evolve 3.0.14 → 3.0.15

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.
@@ -1 +1 @@
1
- import{existsSync}from"fs";import{join}from"path";import{chalk,logger}from"@flatjs/common";import{searchConfig}from"@hyperse/config-loader";export const loadEnvConfig=async(o,n)=>{const{projectCwd:t}=n,e=join(t,"configuration"),i=`env.${o}.ts`;if(!existsSync(join(e,i)))return void logger.warn(`Env config file not found: ${chalk(["yellow"])(i)}`);const r={externals:[/^@flatjs\/.*/],projectCwd:t};"test"===process.env.NODE_ENV&&(r.externalExclude=o=>o.toString().startsWith("@flatjs/"));const c=await searchConfig(o,e,r);let f;if(f="function"==typeof c?.config?await(c?.config(o)):c?.config||{},f)return f;logger.warn(`Env config is undefined: ${chalk(["yellow"])(i)}`)};
1
+ import{existsSync}from"fs";import{join}from"path";import{chalk,logger}from"@flatjs/common";import{searchConfig}from"@hyperse/config-loader";export const loadEnvConfig=async(o,n)=>{const{projectCwd:t}=n,e=join(t,"configuration"),i=`env.${o}.ts`;if(!existsSync(join(e,i)))return void logger.debug(`Env config file not found: ${chalk(["yellow"])(i)}`);const r={externals:[/^@flatjs\/.*/],projectCwd:t};"test"===process.env.NODE_ENV&&(r.externalExclude=o=>o.toString().startsWith("@flatjs/"));const c=await searchConfig(o,e,r);let f;if(f="function"==typeof c?.config?await(c?.config(o)):c?.config||{},f)return f;logger.warn(`Env config is undefined: ${chalk(["yellow"])(i)}`)};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatjs/evolve",
3
- "version": "3.0.14",
3
+ "version": "3.0.15",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {