-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[WEB-4810] feat: migrate to tsdown from tsup #7679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
5425914
c20146d
82b8764
ff72052
7574f04
088c37d
cce08a4
07b005f
e31ad52
7c08363
1418628
25f03da
3037ca1
a704619
8a57c56
c3b2a03
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { defineConfig } from "tsdown"; | ||
|
|
||
| export default defineConfig({ | ||
| entry: ["src/server.ts"], | ||
| outDir: "dist", | ||
| format: ["esm", "cjs"], | ||
sriramveeraghanta marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }); | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { defineConfig } from "tsdown"; | ||
|
|
||
| export default defineConfig({ | ||
| entry: ["src/index.ts"], | ||
| outDir: "dist", | ||
| format: ["esm", "cjs"], | ||
sriramveeraghanta marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }); | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { defineConfig } from "tsdown"; | ||
|
|
||
| export default defineConfig({ | ||
| entry: ["src/index.ts"], | ||
| outDir: "dist", | ||
| format: ["esm", "cjs"], | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above |
||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import { defineConfig } from "tsdown"; | ||
|
|
||
| export default defineConfig({ | ||
| entry: ["src/index.ts", "src/lib.ts"], | ||
| outDir: "dist", | ||
| format: ["esm", "cjs"], | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above |
||
| }); | ||
sriramveeraghanta marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,11 @@ | ||
| import { defineConfig } from "tsup"; | ||
| import { defineConfig } from "tsdown"; | ||
|
|
||
| export default defineConfig({ | ||
| entry: ["src/index.ts"], | ||
| outDir: "dist", | ||
| format: ["esm", "cjs"], | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above |
||
| external: ["react", "react-dom"], | ||
| dts: true, | ||
| sourcemap: true, | ||
| clean: true, | ||
| minify: true, | ||
| external: ["express", "ws"], | ||
| treeshake: true, | ||
| }); | ||
sriramveeraghanta marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| // Export all locale files to make them accessible from the package root | ||
| export { default as enCore } from "./en/core.json"; | ||
| export { default as enTranslations } from "./en/translations.json"; | ||
| export { default as enAccessibility } from "./en/accessibility.json"; | ||
| export { default as enEditor } from "./en/editor.json"; | ||
|
|
||
| // Export locale data for all supported languages | ||
| export const locales = { | ||
| en: { | ||
| core: () => import("./en/core.json"), | ||
| translations: () => import("./en/translations.json"), | ||
| accessibility: () => import("./en/accessibility.json"), | ||
| editor: () => import("./en/editor.json"), | ||
| }, | ||
| fr: { | ||
| translations: () => import("./fr/translations.json"), | ||
| accessibility: () => import("./fr/accessibility.json"), | ||
| editor: () => import("./fr/editor.json"), | ||
| }, | ||
| es: { | ||
| translations: () => import("./es/translations.json"), | ||
| accessibility: () => import("./es/accessibility.json"), | ||
| editor: () => import("./es/editor.json"), | ||
| }, | ||
| ja: { | ||
| translations: () => import("./ja/translations.json"), | ||
| accessibility: () => import("./ja/accessibility.json"), | ||
| editor: () => import("./ja/editor.json"), | ||
| }, | ||
| "zh-CN": { | ||
| translations: () => import("./zh-CN/translations.json"), | ||
| accessibility: () => import("./zh-CN/accessibility.json"), | ||
| editor: () => import("./zh-CN/editor.json"), | ||
| }, | ||
| "zh-TW": { | ||
| translations: () => import("./zh-TW/translations.json"), | ||
| accessibility: () => import("./zh-TW/accessibility.json"), | ||
| editor: () => import("./zh-TW/editor.json"), | ||
| }, | ||
| ru: { | ||
| translations: () => import("./ru/translations.json"), | ||
| accessibility: () => import("./ru/accessibility.json"), | ||
| editor: () => import("./ru/editor.json"), | ||
| }, | ||
| it: { | ||
| translations: () => import("./it/translations.json"), | ||
| accessibility: () => import("./it/accessibility.json"), | ||
| editor: () => import("./it/editor.json"), | ||
| }, | ||
| cs: { | ||
| translations: () => import("./cs/translations.json"), | ||
| accessibility: () => import("./cs/accessibility.json"), | ||
| editor: () => import("./cs/editor.json"), | ||
| }, | ||
| sk: { | ||
| translations: () => import("./sk/translations.json"), | ||
| accessibility: () => import("./sk/accessibility.json"), | ||
| editor: () => import("./sk/editor.json"), | ||
| }, | ||
| de: { | ||
| translations: () => import("./de/translations.json"), | ||
| accessibility: () => import("./de/accessibility.json"), | ||
| editor: () => import("./de/editor.json"), | ||
| }, | ||
| ua: { | ||
| translations: () => import("./ua/translations.json"), | ||
| accessibility: () => import("./ua/accessibility.json"), | ||
| editor: () => import("./ua/editor.json"), | ||
| }, | ||
| pl: { | ||
| translations: () => import("./pl/translations.json"), | ||
| accessibility: () => import("./pl/accessibility.json"), | ||
| editor: () => import("./pl/editor.json"), | ||
| }, | ||
| ko: { | ||
| translations: () => import("./ko/translations.json"), | ||
| accessibility: () => import("./ko/accessibility.json"), | ||
| editor: () => import("./ko/editor.json"), | ||
| }, | ||
| "pt-BR": { | ||
| translations: () => import("./pt-BR/translations.json"), | ||
| accessibility: () => import("./pt-BR/accessibility.json"), | ||
| editor: () => import("./pt-BR/editor.json"), | ||
| }, | ||
| id: { | ||
| translations: () => import("./id/translations.json"), | ||
| accessibility: () => import("./id/accessibility.json"), | ||
| editor: () => import("./id/editor.json"), | ||
| }, | ||
| ro: { | ||
| translations: () => import("./ro/translations.json"), | ||
| accessibility: () => import("./ro/accessibility.json"), | ||
| editor: () => import("./ro/editor.json"), | ||
| }, | ||
| "vi-VN": { | ||
| translations: () => import("./vi-VN/translations.json"), | ||
| accessibility: () => import("./vi-VN/accessibility.json"), | ||
| editor: () => import("./vi-VN/editor.json"), | ||
| }, | ||
| "tr-TR": { | ||
| translations: () => import("./tr-TR/translations.json"), | ||
| accessibility: () => import("./tr-TR/accessibility.json"), | ||
| editor: () => import("./tr-TR/editor.json"), | ||
| }, | ||
|
Comment on lines
+9
to
+104
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just a thought, but why not have an e.g: en: () => import('./en') |
||
| }; | ||
Uh oh!
There was an error while loading. Please reload this page.