Skip to content

Commit

Permalink
fix: move to build where ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
17Amir17 committed Feb 7, 2024
1 parent 9e30da1 commit 049d946
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/buildEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const build = async () => {
const editorPath = path.join(webDIR, 'build/index.html');
const editorHtml = fs.readFileSync(editorPath, 'utf8');
const editorTs = createContent(editorHtml);
const editorTsPath = path.join(webDIR, 'editorHtml.ts');
const editorTsPath = path.join(webDIR, 'build/editorHtml.ts');
fs.writeFileSync(editorTsPath, editorTs);
console.log('Built Editor!');
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion src/RichText/RichText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
type WebViewMessageEvent,
} from 'react-native-webview';

import { editorHtml } from '../simpleWebEditor/editorHtml';
import { editorHtml } from '../simpleWebEditor/build/editorHtml';

Check failure on line 9 in src/RichText/RichText.tsx

View workflow job for this annotation

GitHub Actions / lint

Cannot find module '../simpleWebEditor/build/editorHtml' or its corresponding type declarations.

import { type EditorMessage } from '../types/Messaging';
import { useKeyboard } from '../utils';
Expand Down

0 comments on commit 049d946

Please sign in to comment.