Skip to content

Commit

Permalink
refactor: move richtext into core folder
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenle committed Dec 15, 2023
1 parent 5da52eb commit 67cc4fc
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 46 deletions.
5 changes: 5 additions & 0 deletions .changeset/tame-crews-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@blinkk/root-cms': patch
---

refactor: move richtext into core folder
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
import {useTranslations} from '@blinkk/root';
import {FunctionalComponent} from 'preact';
import {RichTextData} from './types.js';

export interface RichTextBlock {
type: string;
data?: any;
}

export interface RichTextData {
[key: string]: any;
blocks: any[];
}

export type RichTextBlockComponent = FunctionalComponent<any>;

Expand Down
4 changes: 2 additions & 2 deletions packages/root-cms/core/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default defineConfig({
functions: './core/functions.ts',
plugin: './core/plugin.ts',
project: './core/project.ts',
richtext: './richtext/richtext.tsx',
richtext: './core/richtext.tsx',
},
sourcemap: 'inline',
target: 'node16',
Expand All @@ -22,7 +22,7 @@ export default defineConfig({
'./core/functions.ts',
'./core/plugin.ts',
'./core/project.ts',
'./richtext/richtext.tsx',
'./core/richtext.tsx',
],
},
format: ['esm'],
Expand Down
34 changes: 0 additions & 34 deletions packages/root-cms/richtext/tsconfig.json

This file was deleted.

9 changes: 0 additions & 9 deletions packages/root-cms/richtext/types.ts

This file was deleted.

0 comments on commit 67cc4fc

Please sign in to comment.