Skip to content

Commit

Permalink
Add prepublish script and change main
Browse files Browse the repository at this point in the history
Building TS before publish and pointing the main entry to the builded files.
  • Loading branch information
budde377 committed Dec 9, 2016
1 parent 60a59be commit 4277260
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -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/
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"test",
".gitignore"
],
"main": "dist/xterm.js",
"main": "out/xterm.js",
"repository": "https://github.com/sourcelair/xterm.js",
"license": "MIT",
"devDependencies": {
Expand All @@ -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"
}
}

0 comments on commit 4277260

Please sign in to comment.