Skip to content
Open
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/local-declaration-maps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.tsdk": "node_modules/typescript/lib",
"js/ts.preferGoToSourceDefinition": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
},
Expand Down
2 changes: 2 additions & 0 deletions packages/clerk-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
"types": "dist/types/index.d.ts",
"files": [
"dist",
"!dist/**/*.d.ts.map",
"!dist/**/*.d.mts.map",
"no-rhc"
],
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/clerk-js/tsconfig.declarations.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"noEmit": false,
"declaration": true,
"emitDeclarationOnly": true,
"declarationMap": false,
"declarationMap": true,
"sourceMap": false,
"outDir": "./dist",
"declarationDir": "./dist/types",
Expand Down
4 changes: 3 additions & 1 deletion packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
"clerk-next-fix-auth-protection": "./dist/next/fix-auth-protection-cli.js"
},
"files": [
"dist"
"dist",
"!dist/**/*.d.ts.map",
"!dist/**/*.d.mts.map"
],
"scripts": {
"build": "tsdown",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/tsdown.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default defineConfig({
clean: true,
minify: false,
sourcemap: true,
dts: true,
dts: { sourcemap: true },
// `eslint` is a peer dependency resolved from the consumer's install; never
// bundle it into the fix runner / CLI.
deps: {
Expand Down
2 changes: 2 additions & 0 deletions packages/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
"main": "./dist/index.js",
"files": [
"dist",
"!dist/**/*.d.ts.map",
"!dist/**/*.d.mts.map",
"webhooks",
"env.d.ts"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/express/tsdown.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default defineConfig(overrideOptions => {
clean: true,
minify: false,
sourcemap: true,
dts: true,
dts: { sourcemap: true },
onSuccess: shouldPublish ? 'pkglab pub --ping' : undefined,
define: {
PACKAGE_NAME: `"${pkgJson.name}"`,
Expand Down
2 changes: 2 additions & 0 deletions packages/fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
"types": "./dist/index.d.ts",
"files": [
"dist",
"!dist/**/*.d.ts.map",
"!dist/**/*.d.mts.map",
"webhooks"
],
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/fastify/tsdown.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default defineConfig(overrideOptions => {
clean: true,
minify: false,
sourcemap: true,
dts: true,
dts: { sourcemap: true },
onSuccess: shouldPublish ? 'pkglab pub --ping' : undefined,
define: {
PACKAGE_NAME: `"${pkgJson.name}"`,
Expand Down
4 changes: 3 additions & 1 deletion packages/hono/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
},
"main": "./dist/index.js",
"files": [
"dist"
"dist",
"!dist/**/*.d.ts.map",
"!dist/**/*.d.mts.map"
],
"scripts": {
"build": "tsdown",
Expand Down
2 changes: 1 addition & 1 deletion packages/hono/tsdown.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default defineConfig(overrideOptions => {
clean: true,
minify: false,
sourcemap: true,
dts: true,
dts: { sourcemap: true },
onSuccess: shouldPublish ? 'pkglab pub --ping' : undefined,
define: {
PACKAGE_NAME: `"${pkgJson.name}"`,
Expand Down
4 changes: 3 additions & 1 deletion packages/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@
"main": "./dist/module.js",
"types": "./dist/module.d.ts",
"files": [
"dist"
"dist",
"!dist/**/*.d.ts.map",
"!dist/**/*.d.mts.map"
],
"scripts": {
"build": "tsdown",
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/tsdown.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default defineConfig(overrideOptions => {
unbundle: true,
sourcemap: true,
minify: false,
dts: true,
dts: { sourcemap: true },
onSuccess: shouldPublish ? 'pkglab pub --ping' : undefined,
define: {
PACKAGE_NAME: `"${pkgJson.name}"`,
Expand Down
4 changes: 3 additions & 1 deletion packages/react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@
}
},
"files": [
"dist"
"dist",
"!dist/**/*.d.ts.map",
"!dist/**/*.d.mts.map"
],
"scripts": {
"build": "tsdown",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router/tsdown.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default defineConfig(overrideOptions => {
entry: ['./src/**/*.{ts,tsx,js,jsx}', '!./src/**/*.test.{ts,tsx}'],
bundle: true,
clean: true,
dts: true,
dts: { sourcemap: true },
minify: false,
sourcemap: true,
onSuccess: shouldPublish ? 'pkglab pub --ping' : undefined,
Expand Down
4 changes: 3 additions & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@
"./package.json": "./package.json"
},
"files": [
"dist"
"dist",
"!dist/**/*.d.ts.map",
"!dist/**/*.d.mts.map"
],
"scripts": {
"build": "tsdown",
Expand Down
6 changes: 2 additions & 4 deletions packages/shared/tsdown.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,8 @@ export default defineConfig(({ watch, env }) => {
// matching how this package has always published its declarations.
{
...common,
dts: { emitDtsOnly: true, sourcemap: false },
// Declaration sourcemaps are skipped: rolldown-plugin-dts can't produce them
// in this mode (SOURCEMAP_BROKEN warning), and they'd reference src files
// that aren't shipped in the tarball anyway.
// Local editor go-to-source; maps are correct despite SOURCEMAP_BROKEN and are pack-excluded.
dts: { emitDtsOnly: true, sourcemap: true },
sourcemap: false,
clean: false,
unbundle: true,
Expand Down
2 changes: 2 additions & 0 deletions packages/tanstack-react-start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
"types": "dist/index.d.ts",
"files": [
"dist",
"!dist/**/*.d.ts.map",
"!dist/**/*.d.mts.map",
"errors",
"server",
"webhooks",
Expand Down
2 changes: 1 addition & 1 deletion packages/tanstack-react-start/tsdown.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default defineConfig(overrideOptions => {
format: 'esm',
fixedExtension: false,
outDir: './dist',
dts: true,
dts: { sourcemap: true },
define: {
PACKAGE_NAME: `"${pkgJson.name}"`,
PACKAGE_VERSION: `"${pkgJson.version}"`,
Expand Down
3 changes: 3 additions & 0 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@
"types": "dist/index.d.ts",
"files": [
"dist",
"!dist/**/*.d.ts.map",
"!dist/**/*.d.mts.map",
"dist-mosaic",
"!dist-mosaic/**/*.d.ts.map",
"styles.css.d.ts",
"register"
],
Expand Down
1 change: 1 addition & 0 deletions packages/ui/tsdown.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default defineConfig(({ watch }) => {
emitDeclarationOnly: false,
incremental: false,
outDir: 'dist',
sourcemap: true,
},
},
sourcemap: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/tsdown.mosaic.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default defineConfig({
entry: ['./src/mosaic/styles/index.ts'],
outDir: './dist-mosaic',
format: ['esm'],
dts: true,
dts: { sourcemap: true },
clean: true,
target: 'es2022',
platform: 'browser',
Expand Down
4 changes: 3 additions & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
"dist",
"!dist/**/*.d.ts.map",
"!dist/**/*.d.mts.map"
],
"scripts": {
"build": "tsdown --onSuccess \"pnpm build:dts\"",
Expand Down
1 change: 1 addition & 0 deletions packages/vue/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"declarationDir": "./dist",
"rootDir": "./src",
"types": ["node"]
Expand Down
Loading