From 40669c50f937cf7190855e61c60002ffa5b0a504 Mon Sep 17 00:00:00 2001 From: Shingo Yamazaki Date: Sun, 10 Feb 2019 15:42:00 +0900 Subject: [PATCH] #290 Add TypeScript's type-check script --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e4aabe66a..da22a357b 100644 --- a/package.json +++ b/package.json @@ -21,10 +21,12 @@ }, "scripts": { "storybook": "start-storybook -s ./node_modules/@salesforce-ux/design-system -p 9001 -c .storybook", - "test": "npm-run-all test:jest test:storyshots", + "test": "npm-run-all type-check test:jest test:storyshots", "test:storyshots": "NODE_ENV=test jest test/storyshots/*.test.js", "test:jest": "jest test/*-spec.js", "prepublish": "npm run build", + "type-check": "tsc --noEmit", + "type-check:watch": "npm run type-check -- --watch", "lint": "npm run lint:src && npm run lint:stories && npm run lint:test", "lint:src": "eslint --ext .js src/scripts/**", "lint:stories": "eslint --ext .js stories/**",