Skip to content

Commit 479392a

Browse files
committed
build(types): 👷 add support for building types
1 parent 9e55a8c commit 479392a

File tree

4 files changed

+615
-320
lines changed

4 files changed

+615
-320
lines changed

package.json

+22-22
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"commit": "gacp",
3939
"contributors:add": "all-contributors add",
4040
"contributors:generate": "all-contributors generate",
41-
"eject": "react-scripts eject",
4241
"format": "prettier --write \"./**/*.{js,ts,css,less,json,md,html,yml,yaml,pcss,jsx,tsx}\"",
4342
"format:package": "sort-package-json",
4443
"lint": "eslint src --ext .tsx,.ts,.jsx,.js",
@@ -64,63 +63,64 @@
6463
},
6564
"dependencies": {},
6665
"devDependencies": {
67-
"@babel/cli": "7.12.8",
68-
"@babel/core": "^7.12.9",
66+
"@babel/cli": "7.12.10",
67+
"@babel/core": "^7.12.10",
6968
"@babel/plugin-proposal-class-properties": "7.12.1",
70-
"@babel/preset-env": "7.12.7",
71-
"@babel/preset-react": "7.12.7",
69+
"@babel/preset-env": "7.12.11",
70+
"@babel/preset-react": "7.12.10",
7271
"@babel/preset-typescript": "7.12.7",
7372
"@chakra-ui/babel-plugin": "1.0.0",
7473
"@commitlint/cli": "^11.0.0",
7574
"@commitlint/config-conventional": "^11.0.0",
76-
"@storybook/addon-actions": "^6.1.10",
77-
"@storybook/addon-essentials": "^6.1.10",
78-
"@storybook/addon-links": "^6.1.10",
79-
"@storybook/react": "^6.1.10",
80-
"@testing-library/dom": "^7.28.1",
75+
"@storybook/addon-actions": "^6.1.11",
76+
"@storybook/addon-essentials": "^6.1.11",
77+
"@storybook/addon-links": "^6.1.11",
78+
"@storybook/react": "^6.1.11",
79+
"@testing-library/dom": "^7.29.0",
8180
"@testing-library/jest-dom": "^5.11.6",
8281
"@testing-library/react": "^11.2.2",
83-
"@testing-library/react-hooks": "^3.5.0",
84-
"@testing-library/user-event": "^12.5.0",
85-
"@types/jest": "^26.0.16",
82+
"@testing-library/react-hooks": "^3.7.0",
83+
"@testing-library/user-event": "^12.6.0",
84+
"@types/jest": "^26.0.19",
8685
"@types/jest-axe": "^3.5.1",
87-
"@types/node": "^14.14.10",
86+
"@types/node": "^14.14.16",
8887
"@types/react": "^17.0.0",
8988
"@types/react-dom": "^17.0.0",
9089
"@types/testing-library__jest-dom": "^5.9.5",
91-
"@typescript-eslint/eslint-plugin": "^4.9.0",
92-
"@typescript-eslint/parser": "^4.9.0",
90+
"@typescript-eslint/eslint-plugin": "^4.11.0",
91+
"@typescript-eslint/parser": "^4.11.0",
9392
"all-contributors-cli": "^6.19.0",
9493
"babel-eslint": "^10.1.0",
9594
"babel-jest": "^26.6.3",
9695
"babel-loader": "^8.2.2",
9796
"concurrently": "^5.3.0",
9897
"conventional-github-releaser": "^3.1.5",
9998
"cross-env": "^7.0.3",
100-
"eslint": "^7.15.0",
101-
"eslint-config-prettier": "^7.0.0",
99+
"eslint": "^7.16.0",
100+
"eslint-config-prettier": "^7.1.0",
102101
"eslint-config-react-app": "^6.0.0",
103102
"eslint-plugin-flowtype": "^5.2.0",
104103
"eslint-plugin-import": "^2.22.1",
105104
"eslint-plugin-jest": "^24.1.3",
106105
"eslint-plugin-jsx-a11y": "^6.4.1",
107-
"eslint-plugin-prettier": "^3.2.0",
106+
"eslint-plugin-prettier": "^3.3.0",
108107
"eslint-plugin-react": "^7.21.5",
109108
"eslint-plugin-react-hooks": "^4.2.0",
110109
"eslint-plugin-testing-library": "^3.10.1",
111110
"gacp": "^2.10.2",
112-
"husky": "^4.3.5",
111+
"husky": "^4.3.6",
113112
"jest": "^26.6.3",
114113
"jest-axe": "^4.1.0",
115114
"lint-staged": "^10.5.3",
116115
"prettier": "^2.2.1",
117116
"react": "^17.0.1",
118117
"react-dom": "^17.0.1",
118+
"react-test-renderer": "^17.0.1",
119119
"rimraf": "^3.0.2",
120120
"sort-package-json": "^1.48.0",
121121
"standard-version": "^9.0.0",
122-
"ts-node": "^9.1.0",
123-
"typescript": "^4.1.2"
122+
"ts-node": "^9.1.1",
123+
"typescript": "^4.1.3"
124124
},
125125
"peer-dependencies": {
126126
"react": "16.x || 17.x",

tsconfig.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"module": "esnext",
55
"lib": ["dom", "esnext", "dom.iterable"],
66
"types": ["node", "jest", "@testing-library/jest-dom"],
7-
"allowJs": true,
87
"jsx": "react-jsx",
98
"strict": true,
109
"strictFunctionTypes": true,
@@ -20,9 +19,8 @@
2019
"esModuleInterop": true,
2120
"skipLibCheck": true,
2221
"isolatedModules": true,
23-
"noEmit": true,
2422
"declaration": true,
25-
"sourceMap": true
26-
},
27-
"include": ["src"]
23+
"sourceMap": true,
24+
"declarationDir": "dist/types"
25+
}
2826
}

tsconfig.prod.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": ["src"],
4+
"exclude": ["**/*/stories", "**/*/__tests__"]
5+
}

0 commit comments

Comments
 (0)