diff --git a/packages/others/inject-head-style/README.md b/packages/others/inject-head-style/README.md index 307944a05..3b95e3e91 100644 --- a/packages/others/inject-head-style/README.md +++ b/packages/others/inject-head-style/README.md @@ -1,4 +1,4 @@ -# `@hi-ui/inject-head-style` +# `inject-head-style` > TODO: description @@ -9,3 +9,8 @@ const injectHeadStyle = require('@hi-ui/inject-head-style'); // TODO: DEMONSTRATE API ``` + +### 背景介绍: +- 之间组件依赖的都是这个库,但是这个库没有配置 licence,不符合开源协议,该库也不在 hiui 工程中维护,所以也就无法修改和发布 npm,就导致无法继续使用 +- 后来就在 hiui 工程中新开发了一个 @hi-ui/style-inject 库,问题是新版本的组件可以使用该库,但是老版本的组件中还是用的 inject-head-style 这个库 +- 最后找到了之前发布 inject-head-style 库的作者,将 inject-head-style 库的代码拷贝过来,并修改了 licence,然后发布了一个新版本,也就将改库先维护在 hiui 工程中 diff --git a/packages/others/inject-head-style/package.json b/packages/others/inject-head-style/package.json index b274f9435..2d8e43e48 100644 --- a/packages/others/inject-head-style/package.json +++ b/packages/others/inject-head-style/package.json @@ -7,16 +7,6 @@ ], "author": "flcwl", "license": "MIT", - "scripts": { - "start": "tsdx watch", - "build": "tsdx build", - "test": "tsdx test --passWithNoTests", - "lint": "tsdx lint", - "prepare": "tsdx build", - "predeploy": "npm run build && cd example && npm run build", - "deploy": "gh-pages -d ./example/dist", - "release": "np --no-yarn --no-tests --no-cleanup" - }, "directories": { "dist": "dist" }, @@ -41,11 +31,6 @@ "Android >= 4.4", "iOS >= 9" ], - "husky": { - "hooks": { - "pre-commit": "tsdx lint" - } - }, "prettier": { "printWidth": 80, "semi": true,