A full-featured CRM built with React, shadcn/ui, and Supabase.
Changelog: Move changelog into `/src/` and add it to the registry.json`
erwanMarmelab4b737a393654
diff --git a/registry.json b/registry.jsonindex ab71f29e..71b0cacf 100644--- a/registry.json+++ b/registry.json@@ -864,6 +864,11 @@{"path": "src/lib/toSlug.ts","type": "registry:lib"+ },+ {+ "path": "src/CHANGELOG.md",+ "type": "registry:file",+ "target": "~/CHANGELOG.md"}]}diff --git a/scripts/generate-registry.mjs b/scripts/generate-registry.mjsindex 5d7c89a2..ccced34b 100755--- a/scripts/generate-registry.mjs+++ b/scripts/generate-registry.mjs@@ -43,6 +43,7 @@ const hooks = globSync(path.join(hooksPath, "**", "*.ts*")).filter((hook) => {const libFiles = globSync(path.join(libPath, "**", "*.ts*")).filter((file) => {return !excludedLibFiles.includes(path.basename(file));});+const changelogPath = path.join(basePath, "CHANGELOG.md");const registryContent = JSON.parse(fs.readFileSync(registryPath, "utf-8"));@@ -71,6 +72,11 @@ const files = [type: "registry:lib",};}),+ {+ path: changelogPath,+ type: "registry:file",+ target: "~/CHANGELOG.md",+ },];const newRegistryContent = {diff --git a/CHANGELOG.md b/src/CHANGELOG.mdsimilarity index 100%rename from CHANGELOG.mdrename to src/CHANGELOG.mddiff --git a/src/components/atomic-crm/misc/ChangelogPage.tsx b/src/components/atomic-crm/misc/ChangelogPage.tsxindex f2962b50..aa676bb2 100644--- a/src/components/atomic-crm/misc/ChangelogPage.tsx+++ b/src/components/atomic-crm/misc/ChangelogPage.tsx@@ -4,7 +4,7 @@ import { useIsMobile } from "@/hooks/use-mobile";import { MobileContent } from "../layout/MobileContent";import MobileHeader from "../layout/MobileHeader";import { Markdown } from "./Markdown";-import changelogContent from "../../../../CHANGELOG.md?raw";+import changelogContent from "../../../CHANGELOG.md?raw";export const ChangelogPage = () => {const translate = useTranslate();