From 96a4ea8678a827a6634bc2b608a70e91b3b11c8d Mon Sep 17 00:00:00 2001 From: Yucel Okcu Date: Fri, 22 Jan 2021 18:48:22 +0300 Subject: [PATCH] Update npm scripts --- package.json | 5 ++++- tsconfig.json | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d5475dc..86fcaac 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "./dist/index", "scripts": { "test": "jest", - "build": "tsc && copyfiles -u 1 src/template/** dist/", + "copy-templates": "copyfiles -u 1 src/template/** dist/", + "build:dev": "npm run build -- --sourceMap", + "build": "rimraf dist/ && npm run copy-templates && tsc", "lint": "eslint --ext .js,.ts .", "prepare": "npm run build" }, @@ -39,6 +41,7 @@ "husky": "^4.2.5", "jest": "^26.1.0", "prop-types": "^15.7.2", + "rimraf": "^3.0.2", "ts-jest": "^26.1.3", "typescript": "^3.9.7" }, diff --git a/tsconfig.json b/tsconfig.json index 7a476ad..751fdb8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,6 @@ "module": "commonjs", "outDir": "dist", "declaration": true, - "sourceMap": true, "strict": true, "noImplicitAny": true, "noUnusedLocals": true,