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
8 changes: 4 additions & 4 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
"dist"
],
"scripts": {
"build": "tsup --onSuccess \"pnpm build:dts\"",
"build": "tsdown --onSuccess \"pnpm build:dts\"",
"build:dts": "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.build.json",
"dev": "tsup --watch",
"dev": "tsdown --watch",
"dev:pub": "pnpm dev -- --env.publish",
"format": "node ../../scripts/format-package.mjs",
"format:check": "node ../../scripts/format-package.mjs --check",
Expand All @@ -69,8 +69,8 @@
"devDependencies": {
"@clerk/ui": "workspace:^",
"@testing-library/vue": "^8.1.0",
"@vitejs/plugin-vue": "^5.2.4",
"@vue.ts/tsx-auto-props": "^0.6.0",
"@vitejs/plugin-vue": "^6.0.5",
"@vue.ts/tsx-auto-props": "^1.0.0-beta.13",
Copy link
Copy Markdown
Member Author

@wobsoriano wobsoriano Mar 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still tagged beta (ref), but it is build-time only and is just used to generate runtime props from typed Vue component props. We need this version because it includes the rolldown export for tsdown, and installing it from npm currently resolves to the beta release anyway.

tbf, it's applicable to the Show component and UI components with custom menu items and pages only.

"unplugin-vue": "7.0.8",
"vue": "catalog:repo",
"vue-tsc": "^3.2.4"
Expand Down
4 changes: 3 additions & 1 deletion packages/vue/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"declaration": true,
"declarationDir": "./dist"
"declarationDir": "./dist",
"rootDir": "./src",
Copy link
Copy Markdown
Member Author

@wobsoriano wobsoriano Mar 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rootDir is needed for the declaration-only vue-tsc step under TypeScript 6 so the emitted .d.ts files keep the expected layout under dist

"types": ["node"]
},
"include": ["src/**/*.ts", "src/**/*.vue"],
"exclude": ["src/**/*.test.ts"]
Expand Down
1 change: 0 additions & 1 deletion packages/vue/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"noImplicitAny": true,
"noUnusedLocals": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": false,
"skipLibCheck": true
},
"include": ["src"]
Expand Down
16 changes: 7 additions & 9 deletions packages/vue/tsup.config.ts → packages/vue/tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import autoPropsPlugin from '@vue.ts/tsx-auto-props/esbuild';
import { defineConfig } from 'tsup';
import vuePlugin from 'unplugin-vue/esbuild';
import autoPropsPlugin from '@vue.ts/tsx-auto-props/rolldown';
import { defineConfig } from 'tsdown';
import vuePlugin from 'unplugin-vue/rolldown';

import { name, version } from './package.json';
import pkgJson from './package.json' with { type: 'json' };

export default defineConfig(overrideOptions => {
const shouldPublish = !!overrideOptions.env?.publish;
Expand All @@ -11,12 +11,11 @@ export default defineConfig(overrideOptions => {
clean: true,
entry: ['./src/index.ts', './src/experimental.ts', './src/internal.ts', './src/errors.ts', './src/types/index.ts'],
format: ['esm'],
bundle: true,
sourcemap: true,
minify: false,
dts: false,
onSuccess: shouldPublish ? 'pnpm build:dts && pkglab pub --ping' : 'pnpm build:dts',
esbuildPlugins: [
plugins: [
// Adds .vue files support
vuePlugin(),
// Automatically generates runtime props from TypeScript types/interfaces for all
Expand All @@ -27,9 +26,8 @@ export default defineConfig(overrideOptions => {
}),
],
define: {
PACKAGE_NAME: `"${name}"`,
PACKAGE_VERSION: `"${version}"`,
PACKAGE_NAME: `"${pkgJson.name}"`,
PACKAGE_VERSION: `"${pkgJson.version}"`,
},
external: ['vue'],
};
});
Loading
Loading