Skip to content

Commit

Permalink
make dayjs a peer dep
Browse files Browse the repository at this point in the history
  • Loading branch information
hoorayimhelping committed Jan 6, 2025
1 parent fb52572 commit c741b56
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-toast": "^1.1.5",
"@radix-ui/react-tooltip": "^1.0.7",
"dayjs": "^1.11.12",
"lodash": "^4.17.21",
"react-sortablejs": "^6.1.4",
"react-syntax-highlighter": "^15.5.0",
Expand Down Expand Up @@ -116,6 +115,7 @@
"watch": "^1.0.2"
},
"peerDependencies": {
"dayjs": "^1.11.13",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"styled-components": ">= 5"
Expand Down
2 changes: 1 addition & 1 deletion src/components/DateTime/DateTime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Container } from "@/components/Container/Container";
import { Panel } from "@/components/Panel/Panel";
import { Popover } from "@/components/Popover/Popover";
import { Text } from "@/components/Typography/Text/Text";
import styled from "styled-components";
import { styled } from "styled-components";

dayjs.extend(duration);
dayjs.extend(localizedFormat);
Expand Down
2 changes: 2 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default defineConfig({
rollupOptions: {
// Add _all_ external dependencies here
external: [
"dayjs",
"react",
"react-dom",
"styled-components",
Expand All @@ -51,6 +52,7 @@ export default defineConfig({
],
output: {
globals: {
dayjs: "dayjs",
react: "React",
"styled-components": "styled",
"react-dom": "ReactDOM",
Expand Down

0 comments on commit c741b56

Please sign in to comment.