diff --git a/.npmignore b/.npmignore
index 87877e0a5a97b7e5f3902031428c0361e79d0cce..74b096d0440dd881f951a54098c2a9055350f476 100644
--- a/.npmignore
+++ b/.npmignore
@@ -7,7 +7,8 @@ commit
 debug_test
 run_testjs
 parse_spip_log
-jalhyd_class_diagram.png
+*.png
 .npmignore
 .editorconfig
 src/test.ts
+jalhyd-*.tgz
diff --git a/README.md b/README.md
index 1499410abde356fc4464f05a88ce0ec3a8e345fe..fbc66daca80baecfdcbfc54fc910510242714c4b 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,7 @@ Then, you can install the necessary packages of the library:
 
 ### To generate locally installable package
 
-`rm -rf jalhyd-<ver>.tgz build; npm build && npm pack`
+`npm run package`
 
 
 ### To compile and test code with jasmine
diff --git a/jalhyd_class_diagram.png b/jalhyd_class_diagram.png
deleted file mode 100644
index 5fe2266aaecfcdaaf8fcc17b5d45e0316643235b..0000000000000000000000000000000000000000
Binary files a/jalhyd_class_diagram.png and /dev/null differ
diff --git a/package.json b/package.json
index 94e49adca29112e9096f413a206f997b5e97013c..ecb083b1970487ceb181f5e1712d2c99a9a99993 100644
--- a/package.json
+++ b/package.json
@@ -30,6 +30,7 @@
     "jasmine": "./node_modules/.bin/jasmine",
     "karma": "./node_modules/typescript/bin/tsc --p spec/tsconfig.spec.json && ./node_modules/karma/bin/karma start",
     "lint": "./node_modules/tslint/bin/tslint",
-    "viz": "tsviz -recursive src/ jalhyd_class_diagram.png"
+    "viz": "tsviz -recursive src/ jalhyd_class_diagram.png",
+    "package": "rm -rf build; npm run build; npm pack"
   }
 }