aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/.yarn/sdks/prettier
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-01-23 02:05:42 +0800
committercrupest <crupest@outlook.com>2021-01-23 02:05:42 +0800
commit45cd92679a69d9f21928df31f1d8b250bfd8f213 (patch)
tree583ad7f474d5474c12eac68024c8c058eea48b34 /FrontEnd/.yarn/sdks/prettier
parent2639774e3e3c90a6453e0d764f977f575dc56ec4 (diff)
downloadtimeline-45cd92679a69d9f21928df31f1d8b250bfd8f213.tar.gz
timeline-45cd92679a69d9f21928df31f1d8b250bfd8f213.tar.bz2
timeline-45cd92679a69d9f21928df31f1d8b250bfd8f213.zip
chore: Re-pnpify.
Diffstat (limited to 'FrontEnd/.yarn/sdks/prettier')
-rwxr-xr-x[-rw-r--r--]FrontEnd/.yarn/sdks/prettier/index.js10
-rw-r--r--FrontEnd/.yarn/sdks/prettier/package.json2
2 files changed, 11 insertions, 1 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
diff --git a/FrontEnd/.yarn/sdks/prettier/package.json b/FrontEnd/.yarn/sdks/prettier/package.json
index 6a957f27..adf33891 100644
--- a/FrontEnd/.yarn/sdks/prettier/package.json
+++ b/FrontEnd/.yarn/sdks/prettier/package.json
@@ -1,6 +1,6 @@
{
"name": "prettier",
- "version": "2.1.2-pnpify",
+ "version": "2.2.1-pnpify",
"main": "./index.js",
"type": "commonjs"
}