Skip to content

Commit

Permalink
Merge pull request #23 from 10play/release-2
Browse files Browse the repository at this point in the history
Fix NPM Release
  • Loading branch information
GuySerfaty committed Feb 7, 2024
2 parents d0897e2 + af9baf2 commit 94a20a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 247 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
3 changes: 2 additions & 1 deletion src/RichText/RichText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
type WebViewMessageEvent,
} from 'react-native-webview';

import { editorHtml } from '../simpleWebEditor/editorHtml';
// @ts-ignore - this file is built
import { editorHtml } from '../simpleWebEditor/build/editorHtml';

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

0 comments on commit 94a20a4

Please sign in to comment.