Skip to content

Commit d2a5505

Browse files
committed
Edit build-lib script to add "use client"; above the compiled ts code
1 parent 4a473e2 commit d2a5505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"scripts": {
8-
"build-lib": "tsup",
8+
"build-lib": "tsup && sed -i '1s/^/\"use client\";/' dist/index.js",
99
"lint": "eslint --fix --cache src/",
1010
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
1111
"typecheck": "tsc -p tsconfig.json"

0 commit comments

Comments
 (0)