Skip to content

Commit

Permalink
fix: 打包错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Liang34 committed Jul 15, 2023
1 parent 3c0b49e commit cd0d359
Show file tree
Hide file tree
Showing 9 changed files with 175 additions and 4 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
### LiangShip:

Hi, 欢迎来到LiangShip组件库,目前组件已经有18个基础组件,后续计划做二次组件封装。
Hi, 欢迎来到LiangShip组件库,目前组件已经有22个基础组件,后续计划做二次组件封装。

目前已经发布到npm上了,使用:

`npm install liangShip --save`

即可下载

组件文档

[https://liang34.github.io/liangship/](https://liang34.github.io/liangship/)

### 技术栈:

React、TypeScript、Scss、StoryBook
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "liangship",
"version": "0.1.4",
"version": "1.1.4",
"private": false,
"main": "dist/index.js",
"module": "dist/index.js",
Expand Down Expand Up @@ -107,6 +107,7 @@
"react-docgen-typescript-loader": "^3.7.2",
"react-dom": "^17.0.1",
"react-scripts": "4.0.2",
"rimraf": "^5.0.1",
"sass": "^1.32.8",
"typescript": "^4.4.3",
"web-vitals": "^1.0.1",
Expand Down
148 changes: 148 additions & 0 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/components/form/Form.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ComponentStory, ComponentMeta } from '@storybook/react';
import Form from './index';
import Input from '../Input';
import Button from '../Button';
import Checkbox from '../checkbox';
import Checkbox from '../Checkbox';

const { Item, Reset } = Form;

Expand Down
1 change: 1 addition & 0 deletions src/components/form/Reset.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { ReactNode, CSSProperties, useContext, useRef } from 'react';
import FormContext from './FormContext';

Expand Down
2 changes: 1 addition & 1 deletion src/components/overlay/Popup.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ReactElement, useCallback, useRef, cloneElement, useState } from 'react';
import React, { ReactElement, useCallback, useRef, cloneElement, useState } from 'react';
import Overlay, { OverlayProps } from './Overlay';
import { PlacementType } from './placement';

Expand Down
13 changes: 13 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,16 @@ export { default as Progress } from './components/Progress'
export { default as Tabs } from './components/Tabs'
export { default as Transition } from './components/Transition'
export { default as Upload } from './components/Upload'

export {default as Affix} from './components/Affix'
export {default as Avantar} from './components/Avantar'
export {default as Checkbox} from './components/Checkbox'
export {default as Form } from './components/Form'
export {default as Overlay} from './components/overlay'
export {default as Radio} from './components/Radio'
export {default as RadioGroup } from './components/RadioGroup'
export {default as RecordInput} from './components/RecordInput'
export {default as Select} from './components/Select'
export {default as Switcher} from './components/Switcher'
export {default as Tag} from './components/Tag'
export {default as Tooltip} from './components/Tooltip'
1 change: 1 addition & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"outDir": "dist",
"module": "esnext",
"target": "es5",
"skipLibCheck": true,
"declaration": true,
"moduleResolution": "node",
"jsx": "react",
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@
},
"include": [
"src"
],
"exclude": [
"node_modules"
]
}

0 comments on commit cd0d359

Please sign in to comment.