@anker-in/headless-ui 0.0.19 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CONTRIBUTING.md CHANGED
@@ -143,6 +143,8 @@ alert('Example of disabled line for no-alert')
143
143
 
144
144
  如果希望修改eslint 规则,修改根目录下的`.eslintrc.json`
145
145
 
146
+ ❗ 在ui/目录下的代码导入的时候,要带上.js后缀,比如 import { cn } from '../helpers/index.js' 否则在使用的时候会出现 ERR_UNSUPPORTED_DIR_IMPORT 问题
147
+
146
148
  # Tesing
147
149
 
148
150
  unit test 使用 [jest](https://jestjs.io/) 和 [@test-library/react](https://testing-library.com/)。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anker-in/headless-ui",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "type": "commonjs",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "types": "./dist/cjs/index.d.ts",
@@ -1,4 +1,4 @@
1
- import { cn } from '../helpers'
1
+ import { cn } from '../helpers/index.js'
2
2
 
3
3
  export interface SpinnerProps {
4
4
  className?: string