paper-manager 0.10.0 → 0.10.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.
@@ -6,15 +6,21 @@ const KNOWN_DEPS = new Set(["opendataloader"]);
6
6
  export function createDepCommand() {
7
7
  const dep = new Command("dep").description("Manage external dependencies");
8
8
  dep
9
- .command("check <dep>")
9
+ .command("check [dep]")
10
10
  .description("Check if an external dependency is available")
11
11
  .action(async (depName) => {
12
- if (!KNOWN_DEPS.has(depName)) {
13
- log.error(`Unknown dependency: ${depName}`);
14
- log.step(`Available: ${[...KNOWN_DEPS].join(", ")}`);
15
- process.exit(1);
12
+ if (depName != null) {
13
+ if (!KNOWN_DEPS.has(depName)) {
14
+ log.error(`Unknown dependency: ${depName}`);
15
+ log.step(`Available: ${[...KNOWN_DEPS].join(", ")}`);
16
+ process.exit(1);
17
+ }
18
+ if (depName === "opendataloader") {
19
+ await checkOpendataLoader();
20
+ }
16
21
  }
17
- if (depName === "opendataloader") {
22
+ else {
23
+ // Check all known dependencies
18
24
  await checkOpendataLoader();
19
25
  }
20
26
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paper-manager",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "A paper management system.",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/EurFelux/paper-manager",