contentbase 0.1.3 → 0.1.4

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/package.json +1 -1
  2. package/src/cli/index.ts +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentbase",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "repository": "https://github.com/soederpop/contentbase",
5
5
  "website": "https://contentbase.soederpop.com",
6
6
  "type": "module",
package/src/cli/index.ts CHANGED
@@ -15,12 +15,12 @@ async function main() {
15
15
  const luca = await import('@soederpop/luca/node')
16
16
  const container = luca.default
17
17
 
18
- if (container.argv.version || container.argv.v) {
18
+ const commandName = container.argv._[0] as string | undefined
19
+
20
+ if (container.argv.version || container.argv.v || commandName === 'version') {
19
21
  console.log(`cnotes ${pkg.version}\n${pkg.repository}`)
20
22
  return
21
23
  }
22
-
23
- const commandName = container.argv._[0] as string | undefined
24
24
  const wantsHelp = container.argv.help || container.argv.h
25
25
 
26
26
  // Bare invocation or explicit "help" with no subcommand