@yarnpkg/cli 3.1.0-rc.1 → 3.1.0-rc.10

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.
@@ -1,7 +1,9 @@
1
1
  const fs = require(`fs`);
2
2
 
3
3
  // Makes it possible to access our dependencies
4
- require(`../../../.pnp.cjs`).setup();
4
+ const pnpFile = `${__dirname}/../../../.pnp.cjs`;
5
+ if (fs.existsSync(pnpFile))
6
+ require(pnpFile).setup();
5
7
 
6
8
  // Adds TS support to Node
7
9
  require(`@yarnpkg/monorepo/scripts/setup-ts-execution`);
package/lib/main.js CHANGED
@@ -15,7 +15,7 @@ function runBinary(path) {
15
15
  // innermost process, whose end will cause our own to exit.
16
16
  });
17
17
  if (physicalPath) {
18
- child_process_1.execFileSync(process.execPath, [physicalPath, ...process.argv.slice(2)], {
18
+ (0, child_process_1.execFileSync)(process.execPath, [physicalPath, ...process.argv.slice(2)], {
19
19
  stdio: `inherit`,
20
20
  env: {
21
21
  ...process.env,
@@ -25,7 +25,7 @@ function runBinary(path) {
25
25
  });
26
26
  }
27
27
  else {
28
- child_process_1.execFileSync(physicalPath, process.argv.slice(2), {
28
+ (0, child_process_1.execFileSync)(physicalPath, process.argv.slice(2), {
29
29
  stdio: `inherit`,
30
30
  env: {
31
31
  ...process.env,
@@ -118,8 +118,8 @@ async function main({ binaryVersion, pluginConfiguration }) {
118
118
  // @ts-expect-error: The cwd is a global option defined by BaseCommand
119
119
  const cwd = command.cwd;
120
120
  if (typeof cwd !== `undefined` && !ignoreCwd) {
121
- const iAmHere = fs_1.realpathSync(process.cwd());
122
- const iShouldBeHere = fs_1.realpathSync(cwd);
121
+ const iAmHere = (0, fs_1.realpathSync)(process.cwd());
122
+ const iShouldBeHere = (0, fs_1.realpathSync)(cwd);
123
123
  if (iAmHere !== iShouldBeHere) {
124
124
  process.chdir(cwd);
125
125
  await run();
@@ -2,16 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getDynamicLibs = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const cli = tslib_1.__importStar(require("@yarnpkg/cli"));
6
- const core = tslib_1.__importStar(require("@yarnpkg/core"));
7
- const fslib = tslib_1.__importStar(require("@yarnpkg/fslib"));
8
- const libzip = tslib_1.__importStar(require("@yarnpkg/libzip"));
9
- const parsers = tslib_1.__importStar(require("@yarnpkg/parsers"));
10
- const shell = tslib_1.__importStar(require("@yarnpkg/shell"));
11
- const clipanion = tslib_1.__importStar(require("clipanion"));
12
- const semver = tslib_1.__importStar(require("semver"));
13
- const typanion = tslib_1.__importStar(require("typanion"));
14
- const yup = tslib_1.__importStar(require("yup"));
5
+ const cli = (0, tslib_1.__importStar)(require("@yarnpkg/cli"));
6
+ const core = (0, tslib_1.__importStar)(require("@yarnpkg/core"));
7
+ const fslib = (0, tslib_1.__importStar)(require("@yarnpkg/fslib"));
8
+ const libzip = (0, tslib_1.__importStar)(require("@yarnpkg/libzip"));
9
+ const parsers = (0, tslib_1.__importStar)(require("@yarnpkg/parsers"));
10
+ const shell = (0, tslib_1.__importStar)(require("@yarnpkg/shell"));
11
+ const clipanion = (0, tslib_1.__importStar)(require("clipanion"));
12
+ const semver = (0, tslib_1.__importStar)(require("semver"));
13
+ const typanion = (0, tslib_1.__importStar)(require("typanion"));
14
+ const yup = (0, tslib_1.__importStar)(require("yup"));
15
15
  const getDynamicLibs = () => new Map([
16
16
  [`@yarnpkg/cli`, cli],
17
17
  [`@yarnpkg/core`, core],
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getPluginConfiguration = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  // @ts-expect-error
6
- const package_json_1 = tslib_1.__importDefault(require("@yarnpkg/cli/package.json"));
6
+ const package_json_1 = (0, tslib_1.__importDefault)(require("@yarnpkg/cli/package.json"));
7
7
  const getDynamicLibs_1 = require("./getDynamicLibs");
8
8
  function getPluginConfiguration() {
9
9
  const plugins = new Set();
10
10
  for (const dependencyName of package_json_1.default[`@yarnpkg/builder`].bundles.standard)
11
11
  plugins.add(dependencyName);
12
- const modules = getDynamicLibs_1.getDynamicLibs();
12
+ const modules = (0, getDynamicLibs_1.getDynamicLibs)();
13
13
  for (const plugin of plugins)
14
14
  modules.set(plugin, require(plugin).default);
15
15
  return { plugins, modules };
package/package.json CHANGED
@@ -1,31 +1,32 @@
1
1
  {
2
2
  "name": "@yarnpkg/cli",
3
- "version": "3.1.0-rc.1",
3
+ "version": "3.1.0-rc.10",
4
4
  "license": "BSD-2-Clause",
5
5
  "main": "./lib/index.js",
6
6
  "dependencies": {
7
- "@yarnpkg/core": "^3.1.0-rc.2",
8
- "@yarnpkg/fslib": "^2.6.0-rc.1",
7
+ "@yarnpkg/core": "^3.1.0-rc.11",
8
+ "@yarnpkg/fslib": "^2.6.0-rc.10",
9
9
  "@yarnpkg/libzip": "^2.2.2",
10
- "@yarnpkg/parsers": "^2.4.1-rc.1",
11
- "@yarnpkg/plugin-compat": "^3.0.0",
12
- "@yarnpkg/plugin-dlx": "^3.0.0",
13
- "@yarnpkg/plugin-essentials": "^3.1.0-rc.1",
14
- "@yarnpkg/plugin-file": "^2.2.1",
10
+ "@yarnpkg/parsers": "^2.4.1-rc.10",
11
+ "@yarnpkg/plugin-compat": "^3.1.0-rc.9",
12
+ "@yarnpkg/plugin-dlx": "^3.0.1-rc.9",
13
+ "@yarnpkg/plugin-essentials": "^3.1.0-rc.10",
14
+ "@yarnpkg/plugin-file": "^2.3.0-rc.7",
15
15
  "@yarnpkg/plugin-git": "^2.4.0",
16
16
  "@yarnpkg/plugin-github": "^2.2.0",
17
17
  "@yarnpkg/plugin-http": "^2.1.3",
18
- "@yarnpkg/plugin-init": "^3.0.0",
19
- "@yarnpkg/plugin-link": "^2.1.2",
20
- "@yarnpkg/plugin-nm": "^3.0.1-rc.2",
21
- "@yarnpkg/plugin-npm": "^2.5.0",
22
- "@yarnpkg/plugin-npm-cli": "^3.0.0",
23
- "@yarnpkg/plugin-pack": "^3.1.0-rc.1",
24
- "@yarnpkg/plugin-patch": "^3.0.0",
25
- "@yarnpkg/plugin-pnp": "^3.0.1-rc.1",
26
- "@yarnpkg/shell": "^3.0.1-rc.3",
18
+ "@yarnpkg/plugin-init": "^3.0.1-rc.2",
19
+ "@yarnpkg/plugin-link": "^2.2.0-rc.7",
20
+ "@yarnpkg/plugin-nm": "^3.0.1-rc.11",
21
+ "@yarnpkg/plugin-npm": "^2.6.0-rc.7",
22
+ "@yarnpkg/plugin-npm-cli": "^3.0.1-rc.7",
23
+ "@yarnpkg/plugin-pack": "^3.1.0-rc.10",
24
+ "@yarnpkg/plugin-patch": "^3.0.1-rc.9",
25
+ "@yarnpkg/plugin-pnp": "^3.1.0-rc.3",
26
+ "@yarnpkg/plugin-pnpm": "^1.0.0-rc.6",
27
+ "@yarnpkg/shell": "^3.1.0-rc.7",
27
28
  "chalk": "^3.0.0",
28
- "ci-info": "^2.0.0",
29
+ "ci-info": "^3.2.0",
29
30
  "clipanion": "^3.0.1",
30
31
  "semver": "^7.1.2",
31
32
  "tslib": "^1.13.0",
@@ -33,17 +34,16 @@
33
34
  "yup": "^0.32.9"
34
35
  },
35
36
  "devDependencies": {
36
- "@types/ci-info": "^2",
37
37
  "@types/semver": "^7.1.0",
38
38
  "@types/yup": "^0",
39
- "@yarnpkg/builder": "3.0.2-rc.2",
40
- "@yarnpkg/monorepo": "0.0.0",
41
- "@yarnpkg/pnpify": "3.0.1-rc.1",
39
+ "@yarnpkg/builder": "^3.1.0-rc.7",
40
+ "@yarnpkg/monorepo": "^0.0.0",
41
+ "@yarnpkg/pnpify": "^3.0.1-rc.10",
42
42
  "micromatch": "^4.0.2",
43
- "typescript": "^4.3.2"
43
+ "typescript": "^4.4.2"
44
44
  },
45
45
  "peerDependencies": {
46
- "@yarnpkg/core": "^3.1.0-rc.2"
46
+ "@yarnpkg/core": "^3.1.0-rc.11"
47
47
  },
48
48
  "scripts": {
49
49
  "postpack": "rm -rf lib",
@@ -80,7 +80,8 @@
80
80
  "@yarnpkg/plugin-npm-cli",
81
81
  "@yarnpkg/plugin-pack",
82
82
  "@yarnpkg/plugin-patch",
83
- "@yarnpkg/plugin-pnp"
83
+ "@yarnpkg/plugin-pnp",
84
+ "@yarnpkg/plugin-pnpm"
84
85
  ]
85
86
  }
86
87
  },