UNPKG

@paroicms/connector

Version:

An API to help build management tools for ParoiCMS instances

8 lines 447 B
import { dirname } from "node:path"; export function checkSiteSchemaVersion(version, { file }, siteSchemaVersion) { if (typeof version !== "string" || version !== siteSchemaVersion) { throw new Error(`Unsupported site-schema version '${version}' in file '${file}', expected: '${siteSchemaVersion}'. You may want to run: npx @paroicms/cli --migrate-site-schema ${dirname(file)}`); } } //# sourceMappingURL=site-schema-helpers.js.map