diff options
Diffstat (limited to 'Timeline/ClientApp/.yarn/sdks')
9 files changed, 166 insertions, 0 deletions
diff --git a/Timeline/ClientApp/.yarn/sdks/eslint/lib/api.js b/Timeline/ClientApp/.yarn/sdks/eslint/lib/api.js new file mode 100644 index 00000000..ac3c9fc0 --- /dev/null +++ b/Timeline/ClientApp/.yarn/sdks/eslint/lib/api.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 eslint/lib/api.js + require(absPnpApiPath).setup(); + } +} + +// Defer to the real eslint/lib/api.js your application uses +module.exports = absRequire(`eslint/lib/api.js`); diff --git a/Timeline/ClientApp/.yarn/sdks/eslint/package.json b/Timeline/ClientApp/.yarn/sdks/eslint/package.json new file mode 100644 index 00000000..517ac919 --- /dev/null +++ b/Timeline/ClientApp/.yarn/sdks/eslint/package.json @@ -0,0 +1,6 @@ +{ + "name": "eslint", + "version": "7.5.0-pnpify", + "main": "./lib/api.js", + "type": "commonjs" +}
\ No newline at end of file diff --git a/Timeline/ClientApp/.yarn/sdks/integrations.yml b/Timeline/ClientApp/.yarn/sdks/integrations.yml new file mode 100644 index 00000000..bce9333e --- /dev/null +++ b/Timeline/ClientApp/.yarn/sdks/integrations.yml @@ -0,0 +1,5 @@ +# This file is automatically generated by PnPify.
+# Manual changes will be lost!
+
+integrations:
+ - vscode
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`); diff --git a/Timeline/ClientApp/.yarn/sdks/prettier/package.json b/Timeline/ClientApp/.yarn/sdks/prettier/package.json new file mode 100644 index 00000000..3f4429dc --- /dev/null +++ b/Timeline/ClientApp/.yarn/sdks/prettier/package.json @@ -0,0 +1,6 @@ +{ + "name": "prettier", + "version": "2.0.5-pnpify", + "main": "./index.js", + "type": "commonjs" +}
\ No newline at end of file diff --git a/Timeline/ClientApp/.yarn/sdks/typescript/lib/tsc.js b/Timeline/ClientApp/.yarn/sdks/typescript/lib/tsc.js new file mode 100644 index 00000000..e030711c --- /dev/null +++ b/Timeline/ClientApp/.yarn/sdks/typescript/lib/tsc.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 typescript/lib/tsc.js + require(absPnpApiPath).setup(); + } +} + +// Defer to the real typescript/lib/tsc.js your application uses +module.exports = absRequire(`typescript/lib/tsc.js`); diff --git a/Timeline/ClientApp/.yarn/sdks/typescript/lib/tsserver.js b/Timeline/ClientApp/.yarn/sdks/typescript/lib/tsserver.js new file mode 100644 index 00000000..75c31bd3 --- /dev/null +++ b/Timeline/ClientApp/.yarn/sdks/typescript/lib/tsserver.js @@ -0,0 +1,63 @@ +#!/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); + +const moduleWrapper = tsserver => { + // VSCode sends the zip paths to TS using the "zip://" prefix, that TS + // doesn't understand. This layer makes sure to remove the protocol + // before forwarding it to TS, and to add it back on all returned paths. + + const {isAbsolute} = require(`path`); + + const Session = tsserver.server.Session; + const {onMessage: originalOnMessage, send: originalSend} = Session.prototype; + + return Object.assign(Session.prototype, { + onMessage(/** @type {string} */ message) { + return originalOnMessage.call(this, JSON.stringify(JSON.parse(message), (key, value) => { + return typeof value === 'string' ? removeZipPrefix(value) : value; + })); + }, + + send(/** @type {any} */ msg) { + return originalSend.call(this, JSON.parse(JSON.stringify(msg, (key, value) => { + return typeof value === 'string' ? addZipPrefix(value) : value; + }))); + } + }); + + function addZipPrefix(str) { + // We add the `zip:` prefix to both `.zip/` paths and virtual paths + if (isAbsolute(str) && !str.match(/^zip:/) && (str.match(/\.zip\//) || str.match(/\$\$virtual\//))) { + // Absolute VSCode `Uri.fsPath`s need to start with a slash. + // VSCode only adds it automatically for supported schemes, + // so we have to do it manually for the `zip` scheme. + return `zip:${str.replace(/^\/?/, `/`)}`; + } else { + return str; + } + } + + function removeZipPrefix(str) { + return process.platform === 'win32' + ? str.replace(/^zip:\//, ``) + : str.replace(/^zip:/, ``); + } +}; + +if (existsSync(absPnpApiPath)) { + if (!process.versions.pnp) { + // Setup the environment to be able to require typescript/lib/tsserver.js + require(absPnpApiPath).setup(); + } +} + +// Defer to the real typescript/lib/tsserver.js your application uses +module.exports = moduleWrapper(absRequire(`typescript/lib/tsserver.js`)); diff --git a/Timeline/ClientApp/.yarn/sdks/typescript/lib/typescript.js b/Timeline/ClientApp/.yarn/sdks/typescript/lib/typescript.js new file mode 100644 index 00000000..7e3c852f --- /dev/null +++ b/Timeline/ClientApp/.yarn/sdks/typescript/lib/typescript.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 typescript/lib/typescript.js + require(absPnpApiPath).setup(); + } +} + +// Defer to the real typescript/lib/typescript.js your application uses +module.exports = absRequire(`typescript/lib/typescript.js`); diff --git a/Timeline/ClientApp/.yarn/sdks/typescript/package.json b/Timeline/ClientApp/.yarn/sdks/typescript/package.json new file mode 100644 index 00000000..4b400ac3 --- /dev/null +++ b/Timeline/ClientApp/.yarn/sdks/typescript/package.json @@ -0,0 +1,6 @@ +{ + "name": "typescript", + "version": "3.9.7-pnpify", + "main": "./lib/typescript.js", + "type": "commonjs" +}
\ No newline at end of file |