codsen 0.0.4 → 0.1.0

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 (3) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/cli.js +5 -3
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 0.1.0 (2022-08-12)
7
+
8
+ ### Features
9
+
10
+ - export types ([11b5fb9](https://github.com/codsen/codsen/commit/11b5fb936ce20e0a77c3a09806773e1cd7695c50))
11
+
6
12
  ## 0.0.2 (2022-01-11)
7
13
 
8
14
  ### Bug Fixes
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.4",
3
+ "version": "0.1.0",
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
  }