Skip to content

Commit

Permalink
lg first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
zhixzhan committed Aug 26, 2019
1 parent a2f2968 commit 8ec736b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions example/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { render } from "react-dom";
import MonacoEditor, { MonacoDiffEditor } from "react-monaco-editor";
import MonacoEditor, { MonacoDiffEditor } from "../src/index";

class CodeEditor extends React.Component {
constructor() {
Expand Down Expand Up @@ -67,7 +67,7 @@ class CodeEditor extends React.Component {
<hr />
<MonacoEditor
height="400"
language="javascript"
language="typescript"
value={code}
options={options}
onChange={this.onChange}
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,18 @@
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-react": "^7.14.3",
"monaco-editor": "^0.17.1",
"prettier": "^1.18.2",
"react": "^16.8.3",
"rimraf": "^3.0.0",
"typescript": "^3.5.3",
"typings-tester": "^0.3.2"
},
"peerDependencies": {
"monaco-editor": "*",
"react": "^15.x || ^16.x"
},
"dependencies": {
"@types/react": "^16.9.2",
"monaco-editor": "https://github.com/zhixzhan/monaco-editor/releases/download/1.17.1/archive.tar",
"prop-types": "^15.7.2"
}
}
7 changes: 3 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2255,10 +2255,9 @@ mkdirp@^0.5.0, mkdirp@^0.5.1:
dependencies:
minimist "0.0.8"

monaco-editor@^0.17.1:
version "0.17.1"
resolved "https://registry.yarnpkg.com/monaco-editor/-/monaco-editor-0.17.1.tgz#8fbe96ca54bfa75262706e044f8f780e904aa45c"
integrity sha512-JAc0mtW7NeO+0SwPRcdkfDbWLgkqL9WfP1NbpP9wNASsW6oWqgZqNIWt4teymGjZIXTElx3dnQmUYHmVrJ7HxA==
"monaco-editor@https://github.com/zhixzhan/monaco-editor/releases/download/1.17.1/archive.tar":
version "1.17.1"
resolved "https://github.com/zhixzhan/monaco-editor/releases/download/1.17.1/archive.tar#b64a94e86c25f4540e0d365bcd60ebe7ba84c686"

ms@2.0.0:
version "2.0.0"
Expand Down

0 comments on commit 8ec736b

Please sign in to comment.