OSDN Git Service

prepare for publish
authorYongfeng LI <wliyongfeng@gmail.com>
Tue, 22 May 2018 02:06:56 +0000 (10:06 +0800)
committerYongfeng LI <wliyongfeng@gmail.com>
Tue, 22 May 2018 02:06:56 +0000 (10:06 +0800)
.npmignore [new file with mode: 0644]
package.json

diff --git a/.npmignore b/.npmignore
new file mode 100644 (file)
index 0000000..99c96b4
--- /dev/null
@@ -0,0 +1,2 @@
+src
+docs
index 2f12fdd..8d3b70d 100644 (file)
@@ -1,12 +1,20 @@
 {
-  "name": "bytom-node-sdk",
+  "name": "bytom-sdk",
   "version": "1.0.0",
   "description": "node sdk to interact with bytomd",
   "main": "dist/index.js",
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/Bytom/node-sdk.git"
+  },
   "license": "Apache-2.0",
+  "engines": {
+    "node": ">=4.7"
+  },
   "scripts": {
     "docs": "jsdoc -c jsdoc.conf.json",
-    "build": "babel src --out-dir dist"
+    "build": "babel src --out-dir dist",
+    "prepublish": "npm run build"
   },
   "devDependencies": {
     "babel-cli": "^6.26.0",