From 0d15138e2f8647ca94f04514b69a8b947e13e4cb Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Mon, 22 Apr 2024 19:49:11 +0000 Subject: [PATCH] chore(release): 1.0.0-alpha.3 [skip ci] # [1.0.0-alpha.3](https://github.com/tenantcloud/template-sync/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2024-04-22) ### Bug Fixes * Broken filters ([70c96e7](https://github.com/tenantcloud/template-sync/commit/70c96e7fabb2073faa9eb1d5dc2644b7694b1d09)) --- CHANGELOG.md | 7 +++++++ dist/github-action/index.js | 11 +++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 99a17f6..8361573 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.0.0-alpha.3](https://github.com/tenantcloud/template-sync/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2024-04-22) + + +### Bug Fixes + +* Broken filters ([70c96e7](https://github.com/tenantcloud/template-sync/commit/70c96e7fabb2073faa9eb1d5dc2644b7694b1d09)) + # [1.0.0-alpha.2](https://github.com/tenantcloud/template-sync/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2024-04-22) diff --git a/dist/github-action/index.js b/dist/github-action/index.js index ea06ca6..6db4093 100644 --- a/dist/github-action/index.js +++ b/dist/github-action/index.js @@ -52925,16 +52925,19 @@ const pluginsConfigSchema = z.strictObject({ z.string().min(1), z.object({ name: z.string().min(1), - }), + }) + .passthrough(), ])) .min(1), }); +const CONFIG_FILE_NAME = "template-sync.json"; async function loadConfig(root) { - const rawConfig = await readJson((0,external_path_.join)(root, "template-sync.json")); + const rawConfig = await readJson((0,external_path_.join)(root, CONFIG_FILE_NAME)); return configSchema.parse(rawConfig); } +const PLUGINS_CONFIG_FILE_NAME = "template-sync.plugins.json"; async function loadPluginsConfig(root) { - const rawConfig = await readJson((0,external_path_.join)(root, "template-sync.plugins.json")); + const rawConfig = await readJson((0,external_path_.join)(root, PLUGINS_CONFIG_FILE_NAME)); return pluginsConfigSchema.parse(rawConfig); } @@ -53037,7 +53040,7 @@ async function loadPluginFactory(name, repositoryRoot) { async function sync_sync(sourceRoot, { repositoryCloner, }) { const sourceConfig = await loadConfig(sourceRoot); const source = new Repository(sourceRoot); - let reserved = ["template-sync.plugins.json"]; + let reserved = [PLUGINS_CONFIG_FILE_NAME]; for (const repositoryConfig of sourceConfig.repositories) { const template = await repositoryCloner.clone(repositoryConfig.url, repositoryConfig.branch); const pluginsConfig = await loadPluginsConfig(template.root);