Skip to content

Commit ebc610d

Browse files
Remove 'use client'; from types declaration files in build (#5649)
* remove 'use client' from types declaration files * try again * try 3, esape single quotes * attempt 3, escape single quotes properly --------- Co-authored-by: Yihui Liao <44729383+yihuiliao@users.noreply.github.com>
1 parent 022b45b commit ebc610d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@adobe/react-spectrum/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
],
3131
"sideEffects": false,
3232
"scripts": {
33-
"prepublishOnly": "mkdir -p dist; cp src/index.ts dist/types.d.ts; grep -v '^export type' src/index.ts > dist/module.js; babel --root-mode upward src/index.ts -o dist/main.js"
33+
"prepublishOnly": "mkdir -p dist; cp src/index.ts dist/types.d.ts; sed -i -e 's\/'\\''use client'\\'';\/\/' dist/types.d.ts; grep -v '^export type' src/index.ts > dist/module.js; babel --root-mode upward src/index.ts -o dist/main.js"
3434
},
3535
"repository": {
3636
"type": "git",

0 commit comments

Comments
 (0)