@sps-woodland/codemods 8.12.0 → 8.12.1

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.
package/main.js CHANGED
@@ -2,12 +2,13 @@
2
2
  const fs = require("fs");
3
3
  const glob = require("glob");
4
4
  const path = require("path");
5
- const yargs = require("yargs");
5
+ const yargs = require("yargs/yargs");
6
+ const { hideBin } = require('yargs/helpers')
6
7
  const { run } = require("jscodeshift/src/Runner")
7
8
 
8
9
  const WOODLAND_CONFIG_FILENAME = "woodland.config.json";
9
10
 
10
- const yargv = yargs
11
+ const yargv = yargs(hideBin(process.argv))
11
12
  .usage("Usage: $0 [options] [...globs]")
12
13
  .options({
13
14
  "dry-run": {
@@ -33,7 +34,8 @@ const yargv = yargs
33
34
  }
34
35
  })
35
36
  .help("help")
36
- .alias("help", "h").argv;
37
+ .alias("help", "h")
38
+ .parse().argv;
37
39
 
38
40
  if (yargv.vv) {
39
41
  Object.assign(yargv, {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sps-woodland/codemods",
3
3
  "description": "SPS Woodland Design System codemods",
4
- "version": "8.12.0",
4
+ "version": "8.12.1",
5
5
  "author": "SPS Commerce",
6
6
  "license": "UNLICENSED",
7
7
  "repository": "https://github.com/spscommerce/woodland/tree/master/packages/@sps-woodland/codemods",
@@ -22,7 +22,7 @@
22
22
  "chalk": "^2.4.1",
23
23
  "concat-stream": "^1.6.2",
24
24
  "glob": "^8.0.3",
25
- "jscodeshift": "^0.13.1",
26
- "yargs": "^12.0.2"
25
+ "jscodeshift": "^0.16.1",
26
+ "yargs": "^17.7.2"
27
27
  }
28
28
  }
Binary file
Binary file