File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,19 @@ import useDualExports from '../helpers/use-dual-exports.mjs'
13
13
14
14
/** @typedef {'builtin'|'commonjs'|'dynamic'|'json'|'module'|'wasm' } Format */
15
15
16
+ const NODE_MODULES = process . env . NODE_MODULES
17
+ const PROJECT_CWD = process . env . PROJECT_CWD
18
+
16
19
// ! Add ESM-compatible export statement to `exports.default` statements
17
20
// ! Fixes: `TypeError: logger is not a function`
18
- useDualExports ( [ `${ process . env . NODE_MODULES } /@flex-development/grease/cjs/**` ] )
21
+ useDualExports ( [
22
+ `${ NODE_MODULES } /@flex-development/grease/cjs/**` ,
23
+ `${ PROJECT_CWD } /${ NODE_MODULES } /@flex-development/grease/cjs/**`
24
+ ] )
19
25
20
26
// ! Fixes: `Error: Cannot find module '../loaders/env.cjs'`
21
27
; ( ( ) => {
22
- const PACKAGE = `${ process . env . NODE_MODULES } /@flex-development/log`
28
+ const PACKAGE = `${ NODE_MODULES } /@flex-development/log`
23
29
const PACKAGE_JSON = `${ PACKAGE } /package.json`
24
30
25
31
if ( fs . existsSync ( PACKAGE_JSON ) ) {
You can’t perform that action at this time.
0 commit comments