add prepublish script
This commit is contained in:
		@@ -6,7 +6,9 @@
 | 
			
		||||
  "types": "build/index.d.ts",
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "test": "env TS_NODE_PROJECT='./tests/tsconfig.json' mocha --require ts-node/register ./tests/**/*-spec.ts",
 | 
			
		||||
    "build": "tsc -p ./src"
 | 
			
		||||
    "build": "tsc -p ./src",
 | 
			
		||||
    "lint": "eslint 'tests/**/*.ts' 'src/**/*.ts'",
 | 
			
		||||
    "prepublish": "npm run-script build && npm run-script lint && npm test"
 | 
			
		||||
  },
 | 
			
		||||
  "repository": {
 | 
			
		||||
    "type": "git",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user