Skip to content

Commit

Permalink
Adding main field pointing to jsoneditor.js
Browse files Browse the repository at this point in the history
Without this `require('jsoneditor')` fails with the following error:
```
Error: Cannot find module 'jsoneditor'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Users/thlorenz/dev/projects/level-json-edit/example/main.js:3:18)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
```
  • Loading branch information
thlorenz committed Sep 20, 2013
1 parent e34cfc1 commit f79ceee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "jsoneditor",
"main": "jsoneditor.js",
"version": "2.3.0",
"description": "A web-based tool to view, edit and format JSON",
"tags": [
Expand Down

0 comments on commit f79ceee

Please sign in to comment.