aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/.yarn/sdks
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-10-31 00:42:06 +0800
committerGitHub <noreply@github.com>2020-10-31 00:42:06 +0800
commita3c97f6fb6313da2e8c0fac0b4c08f2ef4265d0f (patch)
treeee006874b0c93e9bfc76f141a092a8b9585a1f95 /FrontEnd/.yarn/sdks
parent0c4caaebe2480e77918d5d7df234f0edaeab74ba (diff)
parent7ce0846d9ec968da3ea4f7ebcc6db26db8e49089 (diff)
downloadtimeline-a3c97f6fb6313da2e8c0fac0b4c08f2ef4265d0f.tar.gz
timeline-a3c97f6fb6313da2e8c0fac0b4c08f2ef4265d0f.tar.bz2
timeline-a3c97f6fb6313da2e8c0fac0b4c08f2ef4265d0f.zip
Merge pull request #161 from crupest/upgrade
Upgrade packages and split front end and back end.
Diffstat (limited to 'FrontEnd/.yarn/sdks')
-rw-r--r--FrontEnd/.yarn/sdks/eslint/lib/api.js20
-rw-r--r--FrontEnd/.yarn/sdks/eslint/package.json6
-rw-r--r--FrontEnd/.yarn/sdks/integrations.yml5
-rw-r--r--FrontEnd/.yarn/sdks/prettier/index.js20
-rw-r--r--FrontEnd/.yarn/sdks/prettier/package.json6
-rw-r--r--FrontEnd/.yarn/sdks/typescript/lib/tsc.js20
-rw-r--r--FrontEnd/.yarn/sdks/typescript/lib/tsserver.js63
-rw-r--r--FrontEnd/.yarn/sdks/typescript/lib/typescript.js20
-rw-r--r--FrontEnd/.yarn/sdks/typescript/package.json6
9 files changed, 166 insertions, 0 deletions
diff --git a/FrontEnd/.yarn/sdks/eslint/lib/api.js b/FrontEnd/.yarn/sdks/eslint/lib/api.js
new file mode 100644
index 00000000..dd6df163
--- /dev/null
+++ b/FrontEnd/.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/FrontEnd/.yarn/sdks/eslint/package.json b/FrontEnd/.yarn/sdks/eslint/package.json
new file mode 100644
index 00000000..b7d1fe0e
--- /dev/null
+++ b/FrontEnd/.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/FrontEnd/.yarn/sdks/integrations.yml b/FrontEnd/.yarn/sdks/integrations.yml
new file mode 100644
index 00000000..bce9333e
--- /dev/null
+++ b/FrontEnd/.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/FrontEnd/.yarn/sdks/prettier/index.js b/FrontEnd/.yarn/sdks/prettier/index.js
new file mode 100644
index 00000000..5158364a
--- /dev/null
+++ b/FrontEnd/.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/FrontEnd/.yarn/sdks/prettier/package.json b/FrontEnd/.yarn/sdks/prettier/package.json
new file mode 100644
index 00000000..0a3b4040
--- /dev/null
+++ b/FrontEnd/.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/FrontEnd/.yarn/sdks/typescript/lib/tsc.js b/FrontEnd/.yarn/sdks/typescript/lib/tsc.js
new file mode 100644
index 00000000..bae984f9
--- /dev/null
+++ b/FrontEnd/.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/FrontEnd/.yarn/sdks/typescript/lib/tsserver.js b/FrontEnd/.yarn/sdks/typescript/lib/tsserver.js
new file mode 100644
index 00000000..70838e59
--- /dev/null
+++ b/FrontEnd/.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/FrontEnd/.yarn/sdks/typescript/lib/typescript.js b/FrontEnd/.yarn/sdks/typescript/lib/typescript.js
new file mode 100644
index 00000000..81bea7ce
--- /dev/null
+++ b/FrontEnd/.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/FrontEnd/.yarn/sdks/typescript/package.json b/FrontEnd/.yarn/sdks/typescript/package.json
new file mode 100644
index 00000000..a884274a
--- /dev/null
+++ b/FrontEnd/.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