sanity 5.0.1-next.30 → 5.0.1-next.32
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.
|
@@ -25,7 +25,7 @@ import oneline from "oneline";
|
|
|
25
25
|
import EventSource from "@sanity/eventsource";
|
|
26
26
|
import { Observable } from "rxjs";
|
|
27
27
|
import { exportDataset } from "@sanity/export";
|
|
28
|
-
import sanityImport from "@sanity/import";
|
|
28
|
+
import { sanityImport } from "@sanity/import";
|
|
29
29
|
import { uuid } from "@sanity/uuid";
|
|
30
30
|
import chokidar from "chokidar";
|
|
31
31
|
import execa from "execa";
|
|
@@ -1642,7 +1642,7 @@ function toBoolIfSet(flag) {
|
|
|
1642
1642
|
return typeof flag > "u" ? void 0 : !!flag;
|
|
1643
1643
|
}
|
|
1644
1644
|
function parseFlags(rawFlags) {
|
|
1645
|
-
const allowAssetsInDifferentDataset = toBoolIfSet(rawFlags["allow-assets-in-different-dataset"]), allowFailingAssets = toBoolIfSet(rawFlags["allow-failing-assets"]), assetConcurrency =
|
|
1645
|
+
const allowAssetsInDifferentDataset = toBoolIfSet(rawFlags["allow-assets-in-different-dataset"]), allowFailingAssets = toBoolIfSet(rawFlags["allow-failing-assets"]), assetConcurrency = rawFlags["asset-concurrency"] ? parseInt(rawFlags["asset-concurrency"], 10) : void 0, replaceAssets = toBoolIfSet(rawFlags["replace-assets"]), skipCrossDatasetReferences = toBoolIfSet(rawFlags["skip-cross-dataset-references"]), allowSystemDocuments = toBoolIfSet(rawFlags["allow-system-documents"]), replace = toBoolIfSet(rawFlags.replace), missing = toBoolIfSet(rawFlags.missing);
|
|
1646
1646
|
return {
|
|
1647
1647
|
allowAssetsInDifferentDataset,
|
|
1648
1648
|
allowFailingAssets,
|