chore: upgrade to yarn v2 🚀

This commit is contained in:
daief
2020-12-11 20:21:28 +08:00
parent ec85ffa3c1
commit c177842cd0
12 changed files with 2554 additions and 1684 deletions

10
.gitignore vendored
View File

@@ -132,4 +132,12 @@ lib
# gatsby files
.cache/
public
public
# yarn
.yarn/*
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.*

5
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"recommendations": [
"arcanis.vscode-zipfs"
]
}

View File

@@ -1,3 +1,9 @@
{
"editor.formatOnSave": true
"editor.formatOnSave": true,
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}

File diff suppressed because one or more lines are too long

55
.yarn/releases/yarn-berry.js vendored Executable file

File diff suppressed because one or more lines are too long

5
.yarn/sdks/integrations.yml vendored Normal file
View File

@@ -0,0 +1,5 @@
# This file is automatically generated by PnPify.
# Manual changes will be lost!
integrations:
- vscode

20
.yarn/sdks/typescript/bin/tsc vendored Executable file
View File

@@ -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/bin/tsc
require(absPnpApiPath).setup();
}
}
// Defer to the real typescript/bin/tsc your application uses
module.exports = absRequire(`typescript/bin/tsc`);

20
.yarn/sdks/typescript/bin/tsserver vendored Executable file
View File

@@ -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/bin/tsserver
require(absPnpApiPath).setup();
}
}
// Defer to the real typescript/bin/tsserver your application uses
module.exports = absRequire(`typescript/bin/tsserver`);

6
.yarn/sdks/typescript/package.json vendored Normal file
View File

@@ -0,0 +1,6 @@
{
"name": "typescript",
"version": "4.1.2-pnpify",
"main": "./lib/typescript.js",
"type": "commonjs"
}

11
.yarnrc.yml Normal file
View File

@@ -0,0 +1,11 @@
enableGlobalCache: true
nodeLinker: pnp
npmRegistryServer: "https://registry.npm.taobao.org"
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: "@yarnpkg/plugin-typescript"
yarnPath: .yarn/releases/yarn-berry.js

View File

@@ -21,6 +21,7 @@
"@types/lodash": "^4.14.165",
"@types/node": "^14.14.10",
"@types/webpack": "^4.41.25",
"@types/webpack-sources": "^2",
"@vue/compiler-sfc": "^3.0.3",
"cross-env": "^7.0.2",
"css-loader": "^5.0.1",
@@ -33,7 +34,8 @@
"typescript": "^4.1.2",
"vue-loader": "^16.0.0",
"webpack": "^5.8.0",
"webpack-cli": "^4.2.0"
"webpack-cli": "^4.2.0",
"webpack-sources": "^2.2.0"
},
"dependencies": {
"@ant-design/colors": "^5.0.0",

4086
yarn.lock

File diff suppressed because it is too large Load Diff