diff options
Diffstat (limited to 'FrontEnd/.yarn/sdks/prettier/index.js')
-rwxr-xr-x[-rw-r--r--] | FrontEnd/.yarn/sdks/prettier/index.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/FrontEnd/.yarn/sdks/prettier/index.js b/FrontEnd/.yarn/sdks/prettier/index.js index 984baf1d..80134e18 100644..100755 --- a/FrontEnd/.yarn/sdks/prettier/index.js +++ b/FrontEnd/.yarn/sdks/prettier/index.js @@ -14,6 +14,16 @@ if (existsSync(absPnpApiPath)) { // Setup the environment to be able to require prettier/index.js require(absPnpApiPath).setup(); } + + const pnpifyResolution = require.resolve(`@yarnpkg/pnpify`, {paths: [dirname(absPnpApiPath)]}); + if (typeof global[`__yarnpkg_sdk_is_using_pnpify__`] === `undefined`) { + Object.defineProperty(global, `__yarnpkg_sdk_is_using_pnpify__`, {configurable: true, value: true}); + + process.env.NODE_OPTIONS += ` -r ${pnpifyResolution}`; + + // Apply PnPify to the current process + absRequire(pnpifyResolution).patchFs(); + } } // Defer to the real prettier/index.js your application uses |