diff options
author | crupest <crupest@outlook.com> | 2020-11-05 16:23:34 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-11-05 16:23:34 +0800 |
commit | ad1b3e008118c527d7581c20011f69385f528290 (patch) | |
tree | 58ea8e58c8693d5d74f92c000a1d64bfcdf0c7d9 /FrontEnd/.yarn/sdks/prettier/index.js | |
parent | 877e0c59bb5e3c610cafe154e50af72968f03f1c (diff) | |
download | timeline-ad1b3e008118c527d7581c20011f69385f528290.tar.gz timeline-ad1b3e008118c527d7581c20011f69385f528290.tar.bz2 timeline-ad1b3e008118c527d7581c20011f69385f528290.zip |
Upgrade packages.
Diffstat (limited to 'FrontEnd/.yarn/sdks/prettier/index.js')
-rw-r--r-- | FrontEnd/.yarn/sdks/prettier/index.js | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/FrontEnd/.yarn/sdks/prettier/index.js b/FrontEnd/.yarn/sdks/prettier/index.js index 5158364a..984baf1d 100644 --- a/FrontEnd/.yarn/sdks/prettier/index.js +++ b/FrontEnd/.yarn/sdks/prettier/index.js @@ -1,20 +1,20 @@ -#!/usr/bin/env node
-
-const {existsSync} = require(`fs`);
-const {createRequire, createRequireFromPath} = require(`module`);
-const {resolve} = require(`path`);
-
-const relPnpApiPath = "../../../.pnp.js";
-
-const absPnpApiPath = resolve(__dirname, relPnpApiPath);
-const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);
-
-if (existsSync(absPnpApiPath)) {
- if (!process.versions.pnp) {
- // Setup the environment to be able to require prettier/index.js
- require(absPnpApiPath).setup();
- }
-}
-
-// Defer to the real prettier/index.js your application uses
-module.exports = absRequire(`prettier/index.js`);
+#!/usr/bin/env node + +const {existsSync} = require(`fs`); +const {createRequire, createRequireFromPath} = require(`module`); +const {resolve, dirname} = require(`path`); + +const relPnpApiPath = "../../../.pnp.js"; + +const absPnpApiPath = resolve(__dirname, relPnpApiPath); +const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath); + +if (existsSync(absPnpApiPath)) { + if (!process.versions.pnp) { + // Setup the environment to be able to require prettier/index.js + require(absPnpApiPath).setup(); + } +} + +// Defer to the real prettier/index.js your application uses +module.exports = absRequire(`prettier/index.js`); |