@vibgrate/cli 1.0.86 → 1.0.87

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,8 +1,8 @@
1
1
  import {
2
2
  baselineCommand,
3
3
  runBaseline
4
- } from "./chunk-BSV6YU5E.js";
5
- import "./chunk-SVTXTH4I.js";
4
+ } from "./chunk-2VJCLUTR.js";
5
+ import "./chunk-XCIPC2J7.js";
6
6
  import "./chunk-JQHUH6A3.js";
7
7
  export {
8
8
  baselineCommand,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runScan
3
- } from "./chunk-SVTXTH4I.js";
3
+ } from "./chunk-XCIPC2J7.js";
4
4
  import {
5
5
  writeJsonFile
6
6
  } from "./chunk-JQHUH6A3.js";
@@ -1585,6 +1585,7 @@ function parseNpmMetaPayload(data) {
1585
1585
  var BATCH_SIZE = 24;
1586
1586
  var WINDOWS_MAX_COMMAND_CHARS = 7e3;
1587
1587
  var POSIX_MAX_COMMAND_CHARS = 3e4;
1588
+ var NPM_COMMAND = process.platform === "win32" ? "npm.cmd" : "npm";
1588
1589
  function buildNpmViewChunks(pkgs, platform = process.platform) {
1589
1590
  const maxCommandChars = platform === "win32" ? WINDOWS_MAX_COMMAND_CHARS : POSIX_MAX_COMMAND_CHARS;
1590
1591
  const chunks = [];
@@ -1605,10 +1606,9 @@ function buildNpmViewChunks(pkgs, platform = process.platform) {
1605
1606
  }
1606
1607
  async function npmViewJson(args, cwd) {
1607
1608
  return new Promise((resolve9, reject) => {
1608
- const child = spawn2("npm", ["view", ...args, "--json"], {
1609
+ const child = spawn2(NPM_COMMAND, ["view", ...args, "--json"], {
1609
1610
  cwd,
1610
- stdio: ["ignore", "pipe", "pipe"],
1611
- shell: true
1611
+ stdio: ["ignore", "pipe", "pipe"]
1612
1612
  });
1613
1613
  let out = "";
1614
1614
  let err = "";
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  baselineCommand
4
- } from "./chunk-BSV6YU5E.js";
4
+ } from "./chunk-2VJCLUTR.js";
5
5
  import {
6
6
  VERSION,
7
7
  computeHmac,
@@ -12,7 +12,7 @@ import {
12
12
  pushCommand,
13
13
  scanCommand,
14
14
  writeDefaultConfig
15
- } from "./chunk-SVTXTH4I.js";
15
+ } from "./chunk-XCIPC2J7.js";
16
16
  import {
17
17
  Semaphore,
18
18
  ensureDir,
@@ -42,7 +42,7 @@ var initCommand = new Command("init").description("Initialize vibgrate in a proj
42
42
  console.log(chalk.green("\u2714") + ` Created ${chalk.bold("vibgrate.config.ts")}`);
43
43
  }
44
44
  if (opts.baseline) {
45
- const { runBaseline } = await import("./baseline-F3RUWXLR.js");
45
+ const { runBaseline } = await import("./baseline-QZZXBT74.js");
46
46
  await runBaseline(rootDir);
47
47
  }
48
48
  console.log("");
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  formatText,
6
6
  generateFindings,
7
7
  runScan
8
- } from "./chunk-SVTXTH4I.js";
8
+ } from "./chunk-XCIPC2J7.js";
9
9
  import "./chunk-JQHUH6A3.js";
10
10
  export {
11
11
  computeDriftScore,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibgrate/cli",
3
- "version": "1.0.86",
3
+ "version": "1.0.87",
4
4
  "description": "CLI for measuring upgrade drift across Node, .NET, Python & Java projects",
5
5
  "type": "module",
6
6
  "bin": {