@datatruck/cli 0.41.0 → 0.41.2

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.
@@ -109,7 +109,7 @@ class RestoreAction {
109
109
  package: pkg,
110
110
  snapshot,
111
111
  });
112
- snapshotPath = taskResult?.snapshotPath;
112
+ snapshotPath = taskResult?.snapshotPath ?? snapshotPath;
113
113
  }
114
114
  (0, assert_1.ok)(snapshotPath);
115
115
  await (0, repository_1.initSnapshotPath)(snapshotPath, this.config.minFreeDiskSpace);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datatruck/cli",
3
- "version": "0.41.0",
3
+ "version": "0.41.2",
4
4
  "description": "Tool for creating and managing backups",
5
5
  "homepage": "https://github.com/swordev/datatruck#readme",
6
6
  "bugs": {
@@ -16,6 +16,10 @@
16
16
  "email": "juanrgm724@gmail.com",
17
17
  "url": "https://github.com/juanrgm"
18
18
  },
19
+ "exports": {
20
+ ".": "./lib/index.js",
21
+ "./*": "./lib/"
22
+ },
19
23
  "main": "lib/index.js",
20
24
  "bin": {
21
25
  "datatruck": "lib/bin.js",