From 6e262c0c9c822fef62e34d9e213db1f816c765ea Mon Sep 17 00:00:00 2001 From: afeiship <1290657123@qq.com> Date: Sun, 1 Sep 2024 15:16:52 +0800 Subject: [PATCH] feat: rename to with-props --- README.md | 26 +++++++++++++------------- package.json | 3 +-- tsconfig.json | 1 - 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 01dbe36..5ccae36 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# react-with-props +# with-props > Enhance component with preset properties. [![version][version-image]][version-url] @@ -8,12 +8,12 @@ ## installation ```shell -npm install @jswork/react-with-props +npm install @jswork/with-props ``` ## usage ```js -import withProps from '@jswork/react-with-props'; +import withProps from '@jswork/with-props'; import React from 'react'; interface MyComponentProps { @@ -43,20 +43,20 @@ export default App; ## types ```ts -/// +/// ``` ## license -Code released under [the MIT license](https://github.com/afeiship/react-with-props/blob/master/LICENSE.txt). +Code released under [the MIT license](https://github.com/afeiship/with-props/blob/master/LICENSE.txt). -[version-image]: https://img.shields.io/npm/v/@jswork/react-with-props -[version-url]: https://npmjs.org/package/@jswork/react-with-props +[version-image]: https://img.shields.io/npm/v/@jswork/with-props +[version-url]: https://npmjs.org/package/@jswork/with-props -[license-image]: https://img.shields.io/npm/l/@jswork/react-with-props -[license-url]: https://github.com/afeiship/react-with-props/blob/master/LICENSE.txt +[license-image]: https://img.shields.io/npm/l/@jswork/with-props +[license-url]: https://github.com/afeiship/with-props/blob/master/LICENSE.txt -[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-with-props -[size-url]: https://github.com/afeiship/react-with-props/blob/master/dist/index.min.js +[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/with-props +[size-url]: https://github.com/afeiship/with-props/blob/master/dist/index.min.js -[download-image]: https://img.shields.io/npm/dm/@jswork/react-with-props -[download-url]: https://www.npmjs.com/package/@jswork/react-with-props +[download-image]: https://img.shields.io/npm/dm/@jswork/with-props +[download-url]: https://www.npmjs.com/package/@jswork/with-props diff --git a/package.json b/package.json index 55ba41b..9ea6fc1 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,9 @@ { - "name": "@jswork/react-with-props", + "name": "@jswork/with-props", "version": "1.0.0", "description": "Enhance component with preset properties.", "main": "./dist/index.cjs.js", "module": "./dist/index.esm.js", - "browser": "./dist/index.umd.js", "types": "./dist/index.d.ts", "files": [ "dist", diff --git a/tsconfig.json b/tsconfig.json index efa02a5..910b001 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,7 +14,6 @@ }, "include": [ "src", - "global.d.ts", "__tests__" ] }