From 8e6bcf5f7c13e8c25a8fcb9f18cef91998aa1ce9 Mon Sep 17 00:00:00 2001 From: Mila Votradovec Date: Fri, 29 Jan 2021 13:52:16 +0100 Subject: [PATCH] fix: build from typescript before publish --- package.json | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 41a5d42e..5cd65bbf 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,13 @@ "main": "dist/index.js", "module": "dist/index.es.js", "types": "dist/index.d.ts", - "files": [ - "dist" - ], + "files": ["dist"], "scripts": { + "build": "tsc", "compile": "tsc -p ./", "lint": "npx eslint src/**/*.ts", "lint:fix": "npx eslint --fix src/**/*.ts", + "prepare": "npm run build", "watch": "tsc -watch -p ./", "test": "jest --coverage --runInBand --detectOpenHandles" }, @@ -18,10 +18,7 @@ "type": "git", "url": "git+https://github.com/snyk/code-client.git" }, - "keywords": [ - "snyk", - "api client" - ], + "keywords": ["snyk", "api client"], "author": "snyk", "license": "MIT", "bugs": {