@sanity/export 6.0.4 → 6.0.5
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/bin/detect-corrupt.js +7 -1
- package/package.json +1 -1
package/bin/detect-corrupt.js
CHANGED
|
@@ -58,7 +58,13 @@ function printReport(filename, corruptions) {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
async function main() {
|
|
61
|
-
|
|
61
|
+
let args = process.argv.slice(2)
|
|
62
|
+
|
|
63
|
+
// When called via `npx @sanity/export detect-corrupt`, the command name
|
|
64
|
+
// is passed as the first argument. Skip it if present.
|
|
65
|
+
if (args[0] === 'detect-corrupt') {
|
|
66
|
+
args = args.slice(1)
|
|
67
|
+
}
|
|
62
68
|
|
|
63
69
|
if (args.length === 0 || args.includes('--help') || args.includes('-h')) {
|
|
64
70
|
printUsage()
|