@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.
@@ -58,7 +58,13 @@ function printReport(filename, corruptions) {
58
58
  }
59
59
 
60
60
  async function main() {
61
- const args = process.argv.slice(2)
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()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/export",
3
- "version": "6.0.4",
3
+ "version": "6.0.5",
4
4
  "description": "Export Sanity documents and assets",
5
5
  "keywords": [
6
6
  "sanity",