Browse Source

Preparing first publish

bodicsek 4 years ago
parent
commit
72b0d0a707
2 changed files with 8 additions and 2 deletions
  1. 2 0
      .npmignore
  2. 6 2
      package.json

+ 2 - 0
.npmignore

@@ -2,3 +2,5 @@
 node_modules
 testdata
 **/*.ts
+.eslint*
+tsconfig.json

+ 6 - 2
package.json

@@ -4,13 +4,14 @@
   "description": "Structured log viewer for canary logs.",
   "main": "index.js",
   "bin": {
-    "clv": "./bin/cli.js"
+    "canary-log-viewer": "./bin/cli.js"
   },
   "scripts": {
     "start": "ts-node canary-log-viewer.ts",
     "build": "tsc",
     "lint": "eslint . --ext .ts",
-    "test": "echo \"Error: no test specified\" && exit 1"
+    "test": "echo \"Error: no test specified\" && exit 1",
+    "prepublishOnly": "npm run build && npm run lint"
   },
   "repository": {
     "type": "git",
@@ -30,5 +31,8 @@
   "dependencies": {
     "rxjs": "^6.6.7",
     "yargs": "^16.2.0"
+  },
+  "publishConfig": {
+    "registry": "https://npm.bodicsek.host"
   }
 }