@sanity/cli 5.8.1 → 5.8.2-next.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/lib/_chunks-cjs/cli.js
CHANGED
|
@@ -4114,7 +4114,7 @@ const testFunctionsCommand = {
|
|
|
4114
4114
|
}), { dataset, projectId, token: token2 } = client2.config(), actualDataset = dataset === "~dummy-placeholder-dataset-" ? void 0 : dataset;
|
|
4115
4115
|
if (!token2) throw new Error("No API token found. Please run `sanity login`.");
|
|
4116
4116
|
if (!name) throw new Error("You must provide a function name as the first argument");
|
|
4117
|
-
const { initBlueprintConfig } = await import("@sanity/runtime-cli/cores"), { functionTestCore } = await import("@sanity/runtime-cli/cores/functions"), { blueprint } = await import("@sanity/runtime-cli/actions/blueprints"), log = utils$3.logger.Logger(output.print), { projectId: bpProjectId } = await blueprint.readLocalBlueprint(log);
|
|
4117
|
+
const { initBlueprintConfig } = await import("@sanity/runtime-cli/cores"), { functionTestCore } = await import("@sanity/runtime-cli/cores/functions"), { blueprint } = await import("@sanity/runtime-cli/actions/blueprints"), log = utils$3.logger.Logger(output.print), { projectId: bpProjectId } = await blueprint.readLocalBlueprint(log, { resources: !1 });
|
|
4118
4118
|
projectId && projectId !== bpProjectId && (output.print(
|
|
4119
4119
|
chalk2.yellow("WARNING"),
|
|
4120
4120
|
`Project ID ${chalk2.cyan(projectId)} in ${chalk2.green("sanity.cli.ts")} does not match Project ID ${chalk2.cyan(bpProjectId)} in ${chalk2.green("./sanity/blueprint.config.json")}.`
|