@vita-mojo/aggregator 1.11.0 → 1.13.0

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/main.js.enc CHANGED
Binary file
package/main.js.map.enc CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vita-mojo/aggregator",
3
- "version": "1.11.0",
3
+ "version": "1.13.0",
4
4
  "type": "commonjs",
5
5
  "scripts": {
6
6
  "postinstall": "node postinstall.js"
package/postinstall.js CHANGED
@@ -9,9 +9,7 @@ const crypto = require('crypto');
9
9
  * Load environment variables from .env file
10
10
  */
11
11
  function loadEnvFile() {
12
- // Navigate up to repo root (from node_modules/@cicd_vitamojo/aggregator)
13
- const repoRoot = path.resolve(__dirname, '../../../..');
14
- const envFilePath = path.join(repoRoot, '.env');
12
+ const envFilePath = path.resolve(process.env.INIT_CWD, '.env');
15
13
 
16
14
  if (!fs.existsSync(envFilePath)) {
17
15
  console.log('ℹ No .env file found in repo root');