From bf98ff90a7ad9fad79f75a2215108dcfdaa02ed2 Mon Sep 17 00:00:00 2001 From: Eug-VS Date: Tue, 28 Jan 2020 17:00:00 +0300 Subject: feat!: install Typescript, migrate Window to .tsx --- package.json | 3 +++ 1 file changed, 3 insertions(+) (limited to 'package.json') diff --git a/package.json b/package.json index 6fb756f..2072865 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,9 @@ "@babel/cli": "^7.8.3", "@babel/core": "^7.8.3", "@babel/preset-react": "^7.8.3", + "@types/node": "^13.5.0", + "@types/react": "^16.9.19", + "@types/react-dom": "^16.9.5", "eslint": "^6.8.0", "eslint-config-react-app": "^5.1.0", "typescript": "^3.7.5" -- cgit v1.2.3 From f9ea123a86defb49c0519a1e8e4a74a26e9c9660 Mon Sep 17 00:00:00 2001 From: Eug-VS Date: Tue, 28 Jan 2020 21:51:27 +0300 Subject: feat: setup deploy-ready typescript config --- package.json | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 2072865..e663a8b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-benzin", - "version": "1.0.1", + "version": "2.0.0", "description": "A powerful React Material components library.", "main": "dist/index.js", "module": "dist/index.js", @@ -11,8 +11,8 @@ "scripts": { "start": "react-scripts start", "test": "eslint .", - "build": "rm -rf dist && NODE_ENV=production babel src/lib --out-dir dist --copy-files", - "deploy": "npm test && npm run build && npm publish --public" + "build": "rm -rf dist && tsc --project ts-compile-config.json", + "deploy": "eslint src/lib && npm run build && npm publish --public" }, "license": "MIT", "dependencies": { @@ -26,9 +26,6 @@ "typeface-roboto": "0.0.75" }, "devDependencies": { - "@babel/cli": "^7.8.3", - "@babel/core": "^7.8.3", - "@babel/preset-react": "^7.8.3", "@types/node": "^13.5.0", "@types/react": "^16.9.19", "@types/react-dom": "^16.9.5", -- cgit v1.2.3