Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/wicked-buses-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
8 changes: 5 additions & 3 deletions packages/localizations/tsdown.config.mts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import { defineConfig } from 'tsdown';

export default defineConfig(overrideOptions => {
const shouldPublish = !!overrideOptions.env?.publish;
export default defineConfig(({ env, watch }) => {
const shouldPublish = !!env?.publish;

return {
entry: ['src/*.ts'],
format: ['cjs', 'esm'],
fixedExtension: false,
clean: true,
// Keep the previous build in place during watch rebuilds so downstream
// dev servers never resolve package exports against an empty dist.
clean: !watch,
minify: false,
sourcemap: true,
dts: true,
Expand Down
4 changes: 3 additions & 1 deletion packages/shared/tsdown.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export default defineConfig(({ watch, env }) => {
{
...common,
dts: false,
clean: true,
// Keep the previous build in place during watch rebuilds so downstream
// dev servers never resolve package exports against an empty dist.
clean: !watch,
external: ['react', 'react-dom'],
onSuccess: shouldPublish ? 'pkglab pub --ping' : undefined,
// Route rolldown's shared chunks into a nested `_chunks/` directory. The
Expand Down
16 changes: 16 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,22 @@
"dev": {
"cache": false
},
"@clerk/clerk-js#dev": {
Comment thread
thiskevinwang marked this conversation as resolved.
"cache": false,
"dependsOn": ["@clerk/shared#build"]
},
"@clerk/ui#dev": {
"cache": false,
"dependsOn": ["@clerk/shared#build", "@clerk/localizations#build"]
},
"@clerk/shared#dev": {
"cache": false,
"dependsOn": ["@clerk/shared#build"]
},
"@clerk/localizations#dev": {
"cache": false,
"dependsOn": ["@clerk/localizations#build"]
},
"dev:current": {
"cache": false,
"dependsOn": ["^build", "dev"],
Expand Down
Loading