From f5d10683a1edeba4dabe148ff7aa682c044f7496 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 26 Jul 2020 15:02:55 +0800 Subject: Merge front end repo --- Timeline/ClientApp/.yarn/sdks/prettier/index.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Timeline/ClientApp/.yarn/sdks/prettier/index.js (limited to 'Timeline/ClientApp/.yarn/sdks/prettier/index.js') diff --git a/Timeline/ClientApp/.yarn/sdks/prettier/index.js b/Timeline/ClientApp/.yarn/sdks/prettier/index.js new file mode 100644 index 00000000..db0cd170 --- /dev/null +++ b/Timeline/ClientApp/.yarn/sdks/prettier/index.js @@ -0,0 +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`); -- cgit v1.2.3