@debugbundle/cli 0.1.0 → 0.1.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.
- package/README.md +4 -1
- package/bin/debugbundle.js +5 -4
- package/dist/{main.js → main.cjs} +13844 -2509
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -18,9 +18,12 @@ npm install --save-dev @debugbundle/cli
|
|
|
18
18
|
|
|
19
19
|
```sh
|
|
20
20
|
debugbundle setup --non-interactive
|
|
21
|
-
debugbundle doctor
|
|
21
|
+
debugbundle doctor --privacy
|
|
22
|
+
debugbundle verify local
|
|
23
|
+
debugbundle verify cloud --project-id <id> --trigger-5xx
|
|
22
24
|
debugbundle process
|
|
23
25
|
debugbundle incidents
|
|
26
|
+
debugbundle explain <incident-id> --source cloud
|
|
24
27
|
```
|
|
25
28
|
|
|
26
29
|
## Configuration
|
package/bin/debugbundle.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from "node:module";
|
|
2
3
|
import { dirname, resolve } from "node:path";
|
|
3
|
-
import { fileURLToPath
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
4
5
|
|
|
6
|
+
const require = createRequire(import.meta.url);
|
|
5
7
|
const binDirectory = dirname(fileURLToPath(import.meta.url));
|
|
6
8
|
const packageRoot = resolve(binDirectory, "..");
|
|
7
|
-
const mainPath = resolve(packageRoot, "dist/main.
|
|
8
|
-
const { main } = await import(pathToFileURL(mainPath).href);
|
|
9
|
+
const mainPath = resolve(packageRoot, "dist/main.cjs");
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
require(mainPath);
|