Skip to content

Commit

Permalink
fix(build): fix rollup config and circular deps (#893)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
benoitdeziel and dependabot[bot] authored Aug 26, 2020
1 parent 1c46dbf commit 3f312d3
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/fair-doors-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@platoon/react": patch
---

fix(react): cleanup component
2 changes: 0 additions & 2 deletions packages/react/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import configure from '../../config/rollup.config';
import pkg from './package.json';

export default configure({
pkg: pkg,
input: './src/index.ts',
output: [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { forwardRef } from 'react';
import { Box } from '../../primitives/box';
import { Label } from '..';
import { Label } from '../label';
import styled from 'styled-components';

const CheckboxComponent = styled.input.attrs(() => ({ type: 'checkbox' }))({});
Expand Down
3 changes: 2 additions & 1 deletion packages/react/src/components/form-element/FormElement.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { Box } from '../../primitives/box';
import { Label, Text } from '..';
import { Label } from '../label';
import { Text } from '../text';

export interface FormElementProps {
label?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { Box, BoxProps } from '../../primitives/box';
import { Overlay } from '../../primitives/overlay';
import { Portal } from '../../primitives/portal';
import { Fade } from '../..';
import { Fade } from '../fade';
import { IconButton } from '../button';
import ModalHeader from './ModalHeader';
import ModalFooter from './ModalFooter';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/radio/Radio.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { forwardRef } from 'react';
import { Box } from '../../primitives/box';
import { Label } from '..';
import { Label } from '../label';
import styled from 'styled-components';

const RadioElement = styled.input.attrs(() => ({ type: 'radio' }))({});
Expand Down
2 changes: 1 addition & 1 deletion packages/react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"outDir": "dist",
"rootDir": "src",
"lib": ["ES2019", "DOM"],
"module": "commonjs",
"module": "ESNext",
"target": "ES2019",
"sourceMap": true,
"allowJs": false,
Expand Down

0 comments on commit 3f312d3

Please sign in to comment.