@tuturuuu/utils 0.0.1 → 0.0.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tuturuuu/utils",
3
3
  "license": "MIT",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -41,8 +41,5 @@
41
41
  },
42
42
  "overrides": {
43
43
  "react-is": "^19.0.0"
44
- },
45
- "exports": {
46
- "./*": "./src/*.ts"
47
44
  }
48
45
  }
package/rollup.config.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import commonjs from "@rollup/plugin-commonjs";
2
+ import json from "@rollup/plugin-json";
2
3
  import resolve from "@rollup/plugin-node-resolve";
3
4
  import terser from "@rollup/plugin-terser";
4
5
  import typescript from "@rollup/plugin-typescript";
@@ -28,6 +29,7 @@ export default [
28
29
  commonjs(),
29
30
  typescript({ tsconfig: "./tsconfig.json" }),
30
31
  terser(),
32
+ json(),
31
33
  ],
32
34
  external: ["react", "react-dom", /\.css$/],
33
35
  },
package/src/format.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { type ClassValue, clsx } from 'clsx';
1
+ import { clsx } from 'clsx';
2
2
  import { twMerge } from 'tailwind-merge';
3
3
 
4
- export function cn(...inputs: ClassValue[]): string {
4
+ export function cn(...inputs: (string | undefined)[]): string {
5
5
  return twMerge(clsx(inputs));
6
6
  }
7
7