From 2cc488bdfd975b65473eff5c75cf13826b6f7155 Mon Sep 17 00:00:00 2001 From: Onesine Date: Sat, 11 Mar 2023 08:45:15 +0100 Subject: [PATCH] [Fix] Absence of `types` in the build (#29) --- .npmignore | 2 +- {components => page-components}/Alert.jsx | 0 {components => page-components}/Button.jsx | 0 {components => page-components}/Checkbox.jsx | 0 {components => page-components}/Header.jsx | 0 {components => page-components}/Link.jsx | 0 .../SelectContainer.jsx | 0 {components => page-components}/TailwindColors.jsx | 0 pages/index.js | 14 +++++++------- tailwind.config.js | 2 +- 10 files changed, 9 insertions(+), 9 deletions(-) rename {components => page-components}/Alert.jsx (100%) rename {components => page-components}/Button.jsx (100%) rename {components => page-components}/Checkbox.jsx (100%) rename {components => page-components}/Header.jsx (100%) rename {components => page-components}/Link.jsx (100%) rename {components => page-components}/SelectContainer.jsx (100%) rename {components => page-components}/TailwindColors.jsx (100%) diff --git a/.npmignore b/.npmignore index 667f494..cb79811 100644 --- a/.npmignore +++ b/.npmignore @@ -6,7 +6,7 @@ node_modules assets .git pages -components +page-components styles .next .rollup.cache diff --git a/components/Alert.jsx b/page-components/Alert.jsx similarity index 100% rename from components/Alert.jsx rename to page-components/Alert.jsx diff --git a/components/Button.jsx b/page-components/Button.jsx similarity index 100% rename from components/Button.jsx rename to page-components/Button.jsx diff --git a/components/Checkbox.jsx b/page-components/Checkbox.jsx similarity index 100% rename from components/Checkbox.jsx rename to page-components/Checkbox.jsx diff --git a/components/Header.jsx b/page-components/Header.jsx similarity index 100% rename from components/Header.jsx rename to page-components/Header.jsx diff --git a/components/Link.jsx b/page-components/Link.jsx similarity index 100% rename from components/Link.jsx rename to page-components/Link.jsx diff --git a/components/SelectContainer.jsx b/page-components/SelectContainer.jsx similarity index 100% rename from components/SelectContainer.jsx rename to page-components/SelectContainer.jsx diff --git a/components/TailwindColors.jsx b/page-components/TailwindColors.jsx similarity index 100% rename from components/TailwindColors.jsx rename to page-components/TailwindColors.jsx diff --git a/pages/index.js b/pages/index.js index 4d421b9..6d203f0 100644 --- a/pages/index.js +++ b/pages/index.js @@ -1,13 +1,13 @@ import Head from "next/head"; import Select from "../src"; -import Header from "../components/Header"; -import Button from "../components/Button"; -import SelectContainer from "../components/SelectContainer"; +import Header from "../page-components/Header"; +import Button from "../page-components/Button"; +import SelectContainer from "../page-components/SelectContainer"; import { useCallback, useEffect, useState } from "react"; -import TailwindColors from "../components/TailwindColors"; -import Checkbox from "../components/Checkbox"; -import Alert from "../components/Alert"; -import { DarkLink, LightLink } from "../components/Link"; +import TailwindColors from "../page-components/TailwindColors"; +import Checkbox from "../page-components/Checkbox"; +import Alert from "../page-components/Alert"; +import { DarkLink, LightLink } from "../page-components/Link"; const MANGAS = [ { diff --git a/tailwind.config.js b/tailwind.config.js index f3c61d0..abadc27 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -2,7 +2,7 @@ module.exports = { content: [ "./pages/**/*.{js,ts,jsx,tsx}", - "./components/**/*.{js,ts,jsx,tsx}", + "./page-components/**/*.{js,ts,jsx,tsx}", "./src/**/*.{js,ts,jsx,tsx}" ], theme: {