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 13, 2016
1 parent 60a59be commit 12755af
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ node_modules/
*.swp
.lock-wscript
out/
lib/
Makefile.gyp
*.Makefile
*.target.gyp.mk
Expand Down
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
out/
Makefile.gyp
*.Makefile
*.target.gyp.mk
*.node
example/*.log
docs/
npm-debug.log
/.idea/
.env
build/
7 changes: 4 additions & 3 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": "lib/xterm.js",
"repository": "https://github.com/sourcelair/xterm.js",
"license": "MIT",
"devDependencies": {
Expand All @@ -30,8 +30,9 @@
},
"scripts": {
"start": "nodemon --watch src --watch addons --watch demo --exec bash -c './bin/build && node demo/app'",
"test": "./bin/build && mocha --recursive ./out",
"test": "mocha --recursive ./lib",
"build:docs": "jsdoc -c jsdoc.json",
"build": "./bin/build"
"build": "./bin/build",
"prepublish": "tsc --outDir lib"
}
}

0 comments on commit 12755af

Please sign in to comment.