Skip to content

Commit

Permalink
build(types): 💚 fix building types in last version
Browse files Browse the repository at this point in the history
  • Loading branch information
navin-moorthy committed Jun 21, 2021
1 parent 1c03969 commit 5ebcf0c
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 125 deletions.
2 changes: 1 addition & 1 deletion .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Inter&display=swap"
crossorigin="anonymous"
href="https://fonts.googleapis.com/css2?family=Inter&display=swap"
/>
1 change: 1 addition & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const parameters = {
export const decorators = [
(Story, context) => {
document.body.id = kebabCase(context.kind);
document.body.classList.add("font-sans");

return <Story />;
},
Expand Down
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
],
"scripts": {
"postinstall": "concurrently \"husky install\" \"patch-package\"",
"storybook": "TAILWIND_MODE=watch start-storybook -p 6006",
"storybook": "cross-env TAILWIND_MODE=watch start-storybook -p 6006",
"generatejs": "node scripts/generate-js",
"test": "jest --config ./jest.config.ts --no-cache",
"keys": "node scripts/builds/keys",
Expand All @@ -50,6 +50,7 @@
"build": "concurrently yarn:build:*",
"build:cjs": "cross-env BABEL_ENV=cjs babel src --extensions .ts,.tsx -d dist/cjs --source-maps",
"build:esm": "cross-env BABEL_ENV=esm babel src --extensions .ts,.tsx -d dist/esm --source-maps",
"build:types": "tsc --emitDeclarationOnly --project tsconfig.prod.json",
"storybook-build": "yarn generatejs && build-storybook",
"commit": "gacp",
"contributors:add": "all-contributors add",
Expand Down Expand Up @@ -87,8 +88,8 @@
]
},
"dependencies": {
"@chakra-ui/counter": "1.1.5",
"@chakra-ui/hooks": "1.5.2",
"@chakra-ui/counter": "1.1.6",
"@chakra-ui/hooks": "1.5.3",
"@chakra-ui/react-utils": "1.1.2",
"@chakra-ui/utils": "1.8.0",
"@react-aria/i18n": "3.3.1",
Expand Down Expand Up @@ -129,7 +130,7 @@
"@types/jest-axe": "3.5.1",
"@types/jest-in-case": "1.0.3",
"@types/mockdate": "^3.0.0",
"@types/node": "^15.12.2",
"@types/node": "^15.12.4",
"@types/react": "17.0.11",
"@types/react-dom": "17.0.8",
"@types/react-transition-group": "4.4.1",
Expand All @@ -148,7 +149,7 @@
"codesandbox": "^2.2.3",
"concurrently": "6.2.0",
"cross-env": "7.0.3",
"eslint": "7.28.0",
"eslint": "7.29.0",
"eslint-config-prettier": "8.3.0",
"eslint-config-react-app": "6.0.0",
"eslint-plugin-flowtype": "5.7.2",
Expand Down Expand Up @@ -181,13 +182,13 @@
"raw-loader": "^4.0.2",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-hook-form": "7.8.8",
"react-hook-form": "7.9.0",
"react-test-renderer": "17.0.2",
"react-transition-group": "4.4.2",
"react-virtual": "^2.7.1",
"reakit": "1.3.8",
"reakit-test-utils": "^0.15.1",
"release-it": "^14.9.0",
"release-it": "^14.10.0",
"rimraf": "3.0.2",
"sort-package-json": "^1.50.0",
"standard-version": "9.3.0",
Expand Down
8 changes: 7 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
const defaultTheme = require("tailwindcss/defaultTheme");

module.exports = {
mode: "jit",
purge: ["./src/**/*"],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
extend: {
fontFamily: {
sans: ["Inter var", ...defaultTheme.fontFamily.sans],
},
},
},
variants: {
extend: {},
Expand Down
Loading

0 comments on commit 5ebcf0c

Please sign in to comment.