Skip to content

Commit

Permalink
Fix packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed May 14, 2024
1 parent a46aec2 commit 72bc58e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"version": "0.1.2",
"description": "A JSON editor using the Monaco editor",
"main": "lib/index.js",
"type": "module",
"files": [
"lib/"
],
"scripts": {
"build": "tsc",
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './jsonEditor';
export {JSONEditor} from './jsonEditor';
4 changes: 1 addition & 3 deletions src/jsonEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface JSONEditorProps {

type AvailableEditorProps = Pick<EditorProps, 'height'>;

const JSONEditor: React.FC<JSONEditorProps & AvailableEditorProps> = ({
export const JSONEditor: React.FC<JSONEditorProps & AvailableEditorProps> = ({
value = '',
onChange,
readOnly = false,
Expand Down Expand Up @@ -66,5 +66,3 @@ const JSONEditor: React.FC<JSONEditorProps & AvailableEditorProps> = ({
/>
);
};

export default JSONEditor;

0 comments on commit 72bc58e

Please sign in to comment.