From 030c505ca43ac8c77225863c4d815c22e795b8da Mon Sep 17 00:00:00 2001 From: srijan-paul Date: Sat, 29 Jan 2022 19:24:05 +0530 Subject: [PATCH] fix: added strict mode to tsconfig and tsc to build script --- package.json | 2 +- tsconfig.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9dfa0682..3468b7f6 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "test": "npm-run-all -p unit lint", "lint": "eslint \"*.?(c)js\" lib/ tests/lib/", "fixlint": "npm run lint -- --fix", - "build": "rollup -c rollup.config.js", + "build": "rollup -c rollup.config.js && tsc --build", "update-version": "node tools/update-version.js", "pretest": "npm run build", "prepublishOnly": "npm run update-version && npm run build", diff --git a/tsconfig.json b/tsconfig.json index c08d4da3..e73cbb6a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,7 @@ "declaration": true, "emitDeclarationOnly": true, "outDir": "dist", - "declarationMap": true + "declarationMap": true, + "strict": true } }