diff options
author | crupest <crupest@outlook.com> | 2021-01-29 23:29:52 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-01-29 23:29:52 +0800 |
commit | cc08d98c5e170406b104cadb71add94010c59dae (patch) | |
tree | 91885012d9203611eb278986e75737ca700e9d17 /FrontEnd/.yarn/sdks/eslint/lib/api.js | |
parent | 72344fcf7a099e1fcc8495d5ea30c64b5dddf183 (diff) | |
download | timeline-cc08d98c5e170406b104cadb71add94010c59dae.tar.gz timeline-cc08d98c5e170406b104cadb71add94010c59dae.tar.bz2 timeline-cc08d98c5e170406b104cadb71add94010c59dae.zip |
Front end migrate to npm because of buggy pnp in yarn 2.
Diffstat (limited to 'FrontEnd/.yarn/sdks/eslint/lib/api.js')
-rw-r--r-- | FrontEnd/.yarn/sdks/eslint/lib/api.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/FrontEnd/.yarn/sdks/eslint/lib/api.js b/FrontEnd/.yarn/sdks/eslint/lib/api.js deleted file mode 100644 index ac3c9fc0..00000000 --- a/FrontEnd/.yarn/sdks/eslint/lib/api.js +++ /dev/null @@ -1,20 +0,0 @@ -#!/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`); |