Add prepublish script and change main
Building TS before publish and pointing the main entry to the builded files.
This commit is contained in:
@@ -2,6 +2,7 @@ node_modules/
|
|||||||
*.swp
|
*.swp
|
||||||
.lock-wscript
|
.lock-wscript
|
||||||
out/
|
out/
|
||||||
|
lib/
|
||||||
Makefile.gyp
|
Makefile.gyp
|
||||||
*.Makefile
|
*.Makefile
|
||||||
*.target.gyp.mk
|
*.target.gyp.mk
|
||||||
|
|||||||
+14
@@ -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
-3
@@ -6,9 +6,12 @@
|
|||||||
"test",
|
"test",
|
||||||
".gitignore"
|
".gitignore"
|
||||||
],
|
],
|
||||||
"main": "dist/xterm.js",
|
"main": "lib/xterm.js",
|
||||||
"repository": "https://github.com/sourcelair/xterm.js",
|
"repository": "https://github.com/sourcelair/xterm.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"files": [
|
||||||
|
"lib"
|
||||||
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/chai": "^3.4.34",
|
"@types/chai": "^3.4.34",
|
||||||
"@types/mocha": "^2.2.33",
|
"@types/mocha": "^2.2.33",
|
||||||
@@ -30,8 +33,9 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "nodemon --watch src --watch addons --watch demo --exec bash -c './bin/build && node demo/app'",
|
"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:docs": "jsdoc -c jsdoc.json",
|
||||||
"build": "./bin/build"
|
"build": "./bin/build",
|
||||||
|
"prepublish": "tsc --outDir lib"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user