diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000000..58bb118322 --- /dev/null +++ b/.npmignore @@ -0,0 +1,14 @@ +node_modules/ +*.swp +.lock-wscript + +Makefile.gyp +*.Makefile +*.target.gyp.mk +*.node +example/*.log +docs/ +npm-debug.log +/.idea/ +.env +build/ diff --git a/package.json b/package.json index 04bc552ff4..24d496bc8e 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "test", ".gitignore" ], - "main": "dist/xterm.js", + "main": "out/xterm.js", "repository": "https://github.com/sourcelair/xterm.js", "license": "MIT", "devDependencies": { @@ -32,6 +32,7 @@ "start": "nodemon --watch src --watch addons --watch demo --exec bash -c './bin/build && node demo/app'", "test": "./bin/build && mocha --recursive ./out", "build:docs": "jsdoc -c jsdoc.json", - "build": "./bin/build" + "build": "./bin/build", + "prepublish": "tsc" } }