codsen 0.0.3 → 0.0.6

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.
Files changed (2) hide show
  1. package/cli.js +5 -3
  2. package/package.json +3 -3
package/cli.js CHANGED
@@ -1,12 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import meow from "meow";
4
+ import updateNotifier from "update-notifier";
4
5
  import { createRequire } from "module";
5
6
 
6
7
  const { log } = console;
7
8
 
8
- const require = createRequire(import.meta.url);
9
- const { name } = require("./package.json");
9
+ const require1 = createRequire(import.meta.url);
10
+ const pkg = require1("./package.json");
10
11
 
11
12
  const cli = meow(
12
13
  `
@@ -22,12 +23,13 @@ const cli = meow(
22
23
  flags: {},
23
24
  }
24
25
  );
26
+ updateNotifier({ pkg }).notify();
25
27
 
26
28
  // FUNCTIONS
27
29
  // -----------------------------------------------------------------------------
28
30
 
29
31
  if (cli.flags.v) {
30
- log(cli.pkg.version);
32
+ log(pkg.version);
31
33
  process.exit(0);
32
34
  } else if (cli.flags.h) {
33
35
  log(cli.help);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codsen",
3
- "version": "0.0.3",
3
+ "version": "0.0.6",
4
4
  "description": "Codsen CLI",
5
5
  "keywords": [
6
6
  "codsen",
@@ -50,7 +50,7 @@
50
50
  }
51
51
  },
52
52
  "dependencies": {
53
- "meow": "^10.1.2",
54
- "update-notifier": "^5.1.0"
53
+ "meow": "^10.1.3",
54
+ "update-notifier": "^6.0.2"
55
55
  }
56
56
  }