adapt hub pull to is_fileset from hub

This commit is contained in:
Ruben Fiszel
2026-02-24 06:58:20 +00:00
parent b3ac0249de
commit b97216cf37
2 changed files with 4 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ interface HubResourceType {
schema: string;
app: string;
description: string;
is_fileset?: boolean;
}
export async function pull(opts: GlobalOptions) {
@@ -114,7 +115,8 @@ export async function pull(opts: GlobalOptions) {
y.name === x.name &&
typeof y.schema !== "string" &&
deepEqual(y.schema, x.schema) &&
y.description === x.description
y.description === x.description &&
(y.is_fileset ?? false) === (x.is_fileset ?? false)
)
) {
log.info("skipping " + x.name + " (same as current)");

View File

@@ -24,6 +24,7 @@ import { capitalize, toCamel } from "../../utils/utils.ts";
export interface ResourceTypeFile {
schema?: any;
description?: string;
is_fileset?: boolean;
}
export async function pushResourceType(