diff --git a/package.json b/package.json index b735841..974de4b 100755 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "react-timezone-select", - "version": "3.2.2", + "version": "3.2.3", "description": "Usable, dynamic React Timezone Select", "scripts": { "dev": "concurrently \"tsup src/index.tsx --format esm --watch\" \"cd example && pnpm dev\"", "prepublishOnly": "pnpm run build", "postpublish": "pnpm run build:example && npm run deploy", - "build": "tsup src/index.tsx --format esm --clean --dts", + "build": "tsup src/index.tsx --format esm --clean --dts && sed -i '1i \"use client\"\\n' dist/index.js", "build:example": "cd example && pnpm run build", "deploy": "gh-pages -d example/dist", "pretest": "pnpm run build", diff --git a/src/index.tsx b/src/index.tsx index 343a037..d1bdead 100755 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,5 +1,3 @@ -"use client" - import { useMemo } from "react" import Select from "react-select" import spacetime, { type Spacetime } from "spacetime"