@yarnpkg/plugin-essentials 3.1.0 → 3.2.0-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,11 +21,11 @@ function getBranchRef(branch) {
21
21
  const cloneWorkflow = ({ repository, branch }, target) => [
22
22
  [`git`, `init`, fslib_1.npath.fromPortablePath(target)],
23
23
  [`git`, `remote`, `add`, `origin`, repository],
24
- [`git`, `fetch`, `origin`, getBranchRef(branch)],
24
+ [`git`, `fetch`, `origin`, `--depth=1`, getBranchRef(branch)],
25
25
  [`git`, `reset`, `--hard`, `FETCH_HEAD`],
26
26
  ];
27
27
  const updateWorkflow = ({ branch }) => [
28
- [`git`, `fetch`, `origin`, getBranchRef(branch), `--force`],
28
+ [`git`, `fetch`, `origin`, `--depth=1`, getBranchRef(branch), `--force`],
29
29
  [`git`, `reset`, `--hard`, `FETCH_HEAD`],
30
30
  [`git`, `clean`, `-dfx`],
31
31
  ];
@@ -165,8 +165,10 @@ async function setVersion(configuration, bundleVersion, bundleBuffer, { report }
165
165
  yarnPath: projectPath,
166
166
  });
167
167
  const manifest = (await core_1.Manifest.tryFind(projectCwd)) || new core_1.Manifest();
168
- if (bundleVersion && core_2.miscUtils.isTaggedYarnVersion(bundleVersion))
169
- manifest.packageManager = `yarn@${bundleVersion}`;
168
+ manifest.packageManager = `yarn@${bundleVersion && core_2.miscUtils.isTaggedYarnVersion(bundleVersion)
169
+ ? bundleVersion
170
+ // If the version isn't tagged, we use the latest stable version as the wrapper
171
+ : await resolveTag(configuration, `stable`)}`;
170
172
  const data = {};
171
173
  manifest.exportTo(data);
172
174
  const path = fslib_1.ppath.join(projectCwd, core_1.Manifest.fileName);
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@yarnpkg/plugin-essentials",
3
- "version": "3.1.0",
3
+ "version": "3.2.0-rc.4",
4
4
  "license": "BSD-2-Clause",
5
5
  "main": "./lib/index.js",
6
6
  "dependencies": {
7
- "@yarnpkg/fslib": "^2.6.0",
7
+ "@yarnpkg/fslib": "^2.6.1-rc.1",
8
8
  "@yarnpkg/json-proxy": "^2.1.1",
9
- "@yarnpkg/parsers": "^2.4.1",
9
+ "@yarnpkg/parsers": "^2.5.0-rc.4",
10
10
  "ci-info": "^3.2.0",
11
11
  "clipanion": "^3.0.1",
12
12
  "enquirer": "^2.3.6",
@@ -17,18 +17,18 @@
17
17
  "typanion": "^3.3.0"
18
18
  },
19
19
  "peerDependencies": {
20
- "@yarnpkg/cli": "^3.1.0",
21
- "@yarnpkg/core": "^3.1.0",
22
- "@yarnpkg/plugin-git": "^2.5.0"
20
+ "@yarnpkg/cli": "^3.2.0-rc.6",
21
+ "@yarnpkg/core": "^3.2.0-rc.6",
22
+ "@yarnpkg/plugin-git": "^2.6.0-rc.6"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/lodash": "^4.14.136",
26
26
  "@types/micromatch": "^4.0.1",
27
27
  "@types/semver": "^7.1.0",
28
28
  "@types/treeify": "^1.0.0",
29
- "@yarnpkg/cli": "^3.1.0",
30
- "@yarnpkg/core": "^3.1.0",
31
- "@yarnpkg/plugin-git": "^2.5.0"
29
+ "@yarnpkg/cli": "^3.2.0-rc.6",
30
+ "@yarnpkg/core": "^3.2.0-rc.6",
31
+ "@yarnpkg/plugin-git": "^2.6.0-rc.6"
32
32
  },
33
33
  "repository": {
34
34
  "type": "git",
@@ -49,5 +49,6 @@
49
49
  "engines": {
50
50
  "node": ">=12 <14 || 14.2 - 14.9 || >14.10.0"
51
51
  },
52
+ "stableVersion": "3.1.0",
52
53
  "typings": "./lib/index.d.ts"
53
54
  }