@common-stack/rollup-vite-utils 6.0.8-alpha.19 → 6.0.8-alpha.20

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,10 +1,10 @@
1
1
  'use strict';var path=require('path'),dotenv=require('dotenv-esm');function loadEnvConfig(directoryName) {
2
2
  let dotEnvResult;
3
- // if (process.env.NODE_ENV !== 'production') {
4
- dotEnvResult = dotenv.config({ path: path.resolve(directoryName, process.env.ENV_FILE) });
5
- if (dotEnvResult.error) {
6
- throw dotEnvResult.error;
3
+ if (process.env.ENV_FILE) {
4
+ dotEnvResult = dotenv.config({ path: path.resolve(directoryName, process.env.ENV_FILE) });
5
+ if (dotEnvResult.error) {
6
+ throw dotEnvResult.error;
7
+ }
7
8
  }
8
- // }
9
9
  return dotEnvResult;
10
10
  }exports.loadEnvConfig=loadEnvConfig;//# sourceMappingURL=envLoader.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"envLoader.cjs","sources":["../../../src/preStartup/configLoader/envLoader.ts"],"sourcesContent":[null],"names":["resolve"],"mappings":"mEAGM,SAAU,aAAa,CAAC,aAAa,EAAA;AACvC,IAAA,IAAI,YAAY,CAAC;;IAEjB,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAEA,YAAO,CAAC,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AACrF,IAAA,IAAI,YAAY,CAAC,KAAK,EAAE;QACpB,MAAM,YAAY,CAAC,KAAK,CAAC;KAC5B;;AAED,IAAA,OAAO,YAAY,CAAC;AACxB"}
1
+ {"version":3,"file":"envLoader.cjs","sources":["../../../src/preStartup/configLoader/envLoader.ts"],"sourcesContent":[null],"names":["resolve"],"mappings":"mEAGM,SAAU,aAAa,CAAC,aAAa,EAAA;AACvC,IAAA,IAAI,YAAY,CAAC;AACjB,IAAA,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE;QACtB,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAEA,YAAO,CAAC,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AACrF,QAAA,IAAI,YAAY,CAAC,KAAK,EAAE;YACpB,MAAM,YAAY,CAAC,KAAK,CAAC;SAC5B;KACJ;AACD,IAAA,OAAO,YAAY,CAAC;AACxB"}
@@ -1,10 +1,10 @@
1
1
  import {resolve}from'path';import dotenv from'dotenv-esm';function loadEnvConfig(directoryName) {
2
2
  let dotEnvResult;
3
- // if (process.env.NODE_ENV !== 'production') {
4
- dotEnvResult = dotenv.config({ path: resolve(directoryName, process.env.ENV_FILE) });
5
- if (dotEnvResult.error) {
6
- throw dotEnvResult.error;
3
+ if (process.env.ENV_FILE) {
4
+ dotEnvResult = dotenv.config({ path: resolve(directoryName, process.env.ENV_FILE) });
5
+ if (dotEnvResult.error) {
6
+ throw dotEnvResult.error;
7
+ }
7
8
  }
8
- // }
9
9
  return dotEnvResult;
10
10
  }export{loadEnvConfig};//# sourceMappingURL=envLoader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"envLoader.js","sources":["../../../src/preStartup/configLoader/envLoader.ts"],"sourcesContent":[null],"names":[],"mappings":"0DAGM,SAAU,aAAa,CAAC,aAAa,EAAA;AACvC,IAAA,IAAI,YAAY,CAAC;;IAEjB,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AACrF,IAAA,IAAI,YAAY,CAAC,KAAK,EAAE;QACpB,MAAM,YAAY,CAAC,KAAK,CAAC;KAC5B;;AAED,IAAA,OAAO,YAAY,CAAC;AACxB"}
1
+ {"version":3,"file":"envLoader.js","sources":["../../../src/preStartup/configLoader/envLoader.ts"],"sourcesContent":[null],"names":[],"mappings":"0DAGM,SAAU,aAAa,CAAC,aAAa,EAAA;AACvC,IAAA,IAAI,YAAY,CAAC;AACjB,IAAA,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE;QACtB,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AACrF,QAAA,IAAI,YAAY,CAAC,KAAK,EAAE;YACpB,MAAM,YAAY,CAAC,KAAK,CAAC;SAC5B;KACJ;AACD,IAAA,OAAO,YAAY,CAAC;AACxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common-stack/rollup-vite-utils",
3
- "version": "6.0.8-alpha.19",
3
+ "version": "6.0.8-alpha.20",
4
4
  "description": "Client Module for react app",
5
5
  "homepage": "https://github.com/cdmbase/fullstack-pro#readme",
6
6
  "bugs": {
@@ -56,7 +56,7 @@
56
56
  "publishConfig": {
57
57
  "access": "public"
58
58
  },
59
- "gitHead": "b9eff6af540fbca475085f08dddea756e383df7e",
59
+ "gitHead": "636eb68d91e0a1cd0cd5c150f3c806df7ac68fcb",
60
60
  "typescript": {
61
61
  "definition": "lib/index.d.ts"
62
62
  }