Skip to content
Draft
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
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,5 @@
"resolutions": {
"chrono-node": "2.7.5"
},
"pnpm": {
"overrides": {
"rollup": "4.52.5"
}
},
"packageManager": "[email protected]"
}
6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"dist"
],
"scripts": {
"dev": "tsup --watch",
"build": "tsup",
"dev": "tsdown --watch",
"build": "tsdown",
"typecheck": "tsc --noEmit",
"clean": "rimraf dist",
"start": "node dist/index.js "
Expand Down Expand Up @@ -62,7 +62,7 @@
"@types/prompts": "^2.4.9",
"rimraf": "^5.0.10",
"ts-node": "^10.9.2",
"tsup": "^6.7.0",
"tsdown": "^0.16.1",
"type-fest": "^4.26.1",
"typescript": "^5.6.2"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig } from "tsup";
import { defineConfig } from "tsdown";

export default defineConfig({
clean: true,
Expand Down
6 changes: 3 additions & 3 deletions packages/embeds/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"dist/**"
],
"scripts": {
"build": "tsup",
"build": "tsdown",
"lint": "eslint src/",
"dev": "tsup --watch",
"dev": "tsdown --watch",
"check-types": "tsc --noEmit"
},
"dependencies": {
Expand All @@ -21,7 +21,7 @@
"devDependencies": {
"@types/js-cookie": "^3.0.6",
"tsconfig": "workspace:*",
"tsup": "^6.1.3",
"tsdown": "^0.16.1",
"typescript": "^5.1.6"
},
"author": "Steven Tey <[email protected]>",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
import { defineConfig } from "tsup";
import { defineConfig } from "tsdown";

export default defineConfig({
export default defineConfig((options) => ({
entry: {
"embed/script": "src/embed.ts", // Standalone entry for embed.ts
index: "src/index.ts", // Entry for all other files via index.ts
},
format: ["cjs"],
esbuildOptions(options) {
options.banner = {
js: '"use client"',
};
},
format: ["esm"],
dts: true,
minify: true,
clean: true,
splitting: false,
});
...options,
}));
6 changes: 3 additions & 3 deletions packages/embeds/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"dist/**"
],
"scripts": {
"build": "tsup",
"build": "tsdown",
"lint": "eslint src/",
"dev": "tsup --watch",
"dev": "tsdown --watch",
"check-types": "tsc --noEmit",
"preview": "vite --port=3101 --open",
"prepublishOnly": "node ./prepublish.js"
Expand All @@ -28,7 +28,7 @@
"postcss": "^8.4.31",
"react": "^18.2.0",
"tsconfig": "workspace:*",
"tsup": "^6.1.3",
"tsdown": "^0.16.1",
"typescript": "^5.1.6"
},
"dependencies": {
Expand Down
5 changes: 2 additions & 3 deletions packages/embeds/react/src/example/app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { createRoot } from "react-dom/client";
import { useCallback, useEffect, useState } from "react";
import ReactDom from "react-dom";
import { createRoot } from "react-dom/client";
import { DubEmbed } from "../embed";

const Embed = () => {
Expand All @@ -19,5 +18,5 @@ const Embed = () => {
return <DubEmbed data="referrals" token={token} />;
};

const root = createRoot(document.getElementById("root"));
const root = createRoot(document.getElementById("root") as HTMLElement);
root.render(<Embed />);
13 changes: 13 additions & 0 deletions packages/embeds/react/tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { defineConfig } from "tsdown";

export default defineConfig((options) => ({
entry: ["src/index.ts"],
format: ["esm"],
dts: true,
minify: true,
external: ["react"],
noExternal: ["@dub/embed-core"],
clean: true,
splitting: false,
...options,
}));
22 changes: 0 additions & 22 deletions packages/embeds/react/tsup.config.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/hubspot-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"devDependencies": {
"@types/node": "18.11.9",
"rimraf": "^5.0.10",
"tsup": "^6.7.0",
"typescript": "^5.6.2"
},
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
}
},
"scripts": {
"build": "tsup",
"build": "tsdown",
"lint": "eslint src/",
"dev": "tsup --watch",
"dev": "tsdown --watch",
"check-types": "tsc --noEmit"
},
"peerDependencies": {
Expand All @@ -50,7 +50,7 @@
"react": "^19.1.1",
"tailwindcss": "^3.4.4",
"tsconfig": "workspace:*",
"tsup": "^6.1.3",
"tsdown": "^0.16.1",
"typescript": "^5.1.6"
},
"dependencies": {
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client";

// styles
import "./styles.css";

Expand Down
9 changes: 2 additions & 7 deletions packages/ui/tsup.config.ts → packages/ui/tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import { defineConfig, Options } from "tsup";
import { defineConfig } from "tsdown";

export default defineConfig((options: Options) => ({
export default defineConfig((options) => ({
entry: {
index: "src/index.tsx",
"icons/index": "src/icons/index.tsx",
"charts/index": "src/charts/index.ts",
},

format: ["esm"],
esbuildOptions(options) {
options.banner = {
js: '"use client"',
};
},
dts: true,
minify: true,
external: ["react"],
Expand Down
6 changes: 3 additions & 3 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"dist/**"
],
"scripts": {
"build": "tsup",
"build": "tsdown",
"lint": "eslint src/",
"dev": "tsup --watch",
"dev": "tsdown --watch",
"check-types": "tsc --noEmit"
},
"peerDependencies": {
Expand All @@ -27,7 +27,7 @@
"next": "15.5.4",
"react": "^19.1.1",
"tsconfig": "workspace:*",
"tsup": "^6.1.3",
"tsdown": "^0.16.1",
"typescript": "^5.1.6"
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig, Options } from "tsup";
import { defineConfig } from "tsdown";

export default defineConfig((options: Options) => ({
export default defineConfig((options) => ({
entry: ["src/**/*.ts"],
format: ["esm"],
dts: true,
Expand Down
Loading
Loading