UNPKG

@baseplate-dev/sync

Version:

Library for syncing Baseplate descriptions

15 lines 607 B
import { KEBAB_CASE_WITH_SLASH_SEPARATOR_REGEX } from '#src/utils/validation.js'; /** * Creates a provider export scope * * @param name The name of the scope * @param description The description of the scope * @returns The provider export scope */ export function createProviderExportScope(name, description) { if (!KEBAB_CASE_WITH_SLASH_SEPARATOR_REGEX.test(name)) { throw new Error(`Provider export scope name must be in kebab case (lowercase with dashes) with slashes to namespace the scope: ${name}`); } return { name, description }; } //# sourceMappingURL=export-scopes.js.map