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
6 changes: 3 additions & 3 deletions apps/live/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"private": true,
"type": "module",
"scripts": {
"dev": "tsup --watch --onSuccess 'node --env-file=.env dist/server.js'",
"build": "tsc --noEmit && tsup",
"build": "tsdown",
"dev": "tsdown --watch",
"start": "node --env-file=.env dist/server.js",
"check:lint": "eslint . --max-warnings 10",
"check:types": "tsc --noEmit",
Expand Down Expand Up @@ -58,7 +58,7 @@
"concurrently": "^9.0.1",
"nodemon": "^3.1.7",
"ts-node": "^10.9.2",
"tsup": "catalog:",
"tsdown": "catalog:",
"typescript": "catalog:",
"ws": "^8.18.3"
}
Expand Down
2 changes: 1 addition & 1 deletion apps/live/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"emitDecoratorMetadata": true,
"sourceRoot": "/"
},
"include": ["src/**/*.ts", "tsup.config.ts"],
"include": ["src/**/*.ts", "tsdown.config.ts"],
"exclude": ["./dist", "./build", "./node_modules"]
}
7 changes: 7 additions & 0 deletions apps/live/tsdown.config.ts
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"],
});
15 changes: 0 additions & 15 deletions apps/live/tsup.config.ts

This file was deleted.

6 changes: 3 additions & 3 deletions packages/constants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
}
},
"scripts": {
"dev": "tsup --watch",
"build": "tsc --noEmit && tsup",
"dev": "tsdown --watch",
"build": "tsdown",
"check:lint": "eslint . --max-warnings 0",
"check:types": "tsc --noEmit",
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
Expand All @@ -34,7 +34,7 @@
"@plane/typescript-config": "workspace:*",
"@types/node": "^22.5.4",
"@types/react": "catalog:",
"tsup": "catalog:",
"tsdown": "catalog:",
"typescript": "catalog:"
}
}
7 changes: 7 additions & 0 deletions packages/constants/tsdown.config.ts
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"],
});
13 changes: 0 additions & 13 deletions packages/constants/tsup.config.ts

This file was deleted.

6 changes: 3 additions & 3 deletions packages/decorators/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"dist/**"
],
"scripts": {
"build": "tsc --noEmit && tsup --minify",
"dev": "tsup --watch",
"build": "tsdown",
"dev": "tsdown --watch",
"check:lint": "eslint . --max-warnings 1",
"check:types": "tsc --noEmit",
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
Expand All @@ -27,7 +27,7 @@
"@types/node": "^20.14.9",
"@types/ws": "^8.5.10",
"reflect-metadata": "^0.2.2",
"tsup": "catalog:",
"tsdown": "catalog:",
"typescript": "catalog:"
}
}
7 changes: 7 additions & 0 deletions packages/decorators/tsdown.config.ts
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"],
Copy link
Collaborator

Choose a reason for hiding this comment

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

same as above

});
6 changes: 3 additions & 3 deletions packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
}
},
"scripts": {
"build": "tsc && tsup --minify",
"dev": "tsup --watch",
"build": "tsdown",
"dev": "tsdown --watch",
"check:lint": "eslint . --max-warnings 30",
"check:types": "tsc --noEmit",
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
Expand Down Expand Up @@ -88,7 +88,7 @@
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
"postcss": "^8.4.38",
"tsup": "catalog:",
"tsdown": "catalog:",
"typescript": "catalog:"
},
"keywords": [
Expand Down
7 changes: 7 additions & 0 deletions packages/editor/tsdown.config.ts
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"],
Copy link
Collaborator

Choose a reason for hiding this comment

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

same as above

});
14 changes: 0 additions & 14 deletions packages/editor/tsup.config.ts

This file was deleted.

6 changes: 3 additions & 3 deletions packages/hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"dist/**"
],
"scripts": {
"build": "tsup --minify",
"dev": "tsup --watch",
"build": "tsdown",
"dev": "tsdown --watch",
"check:lint": "eslint . --max-warnings 6",
"check:types": "tsc --noEmit",
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
Expand All @@ -28,7 +28,7 @@
"@plane/typescript-config": "workspace:*",
"@types/node": "^22.5.4",
"@types/react": "catalog:",
"tsup": "catalog:",
"tsdown": "catalog:",
"typescript": "catalog:"
}
}
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"],
Copy link
Collaborator

Choose a reason for hiding this comment

The 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,
});
13 changes: 0 additions & 13 deletions packages/hooks/tsup.config.ts

This file was deleted.

13 changes: 9 additions & 4 deletions packages/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
"license": "AGPL-3.0",
"description": "I18n shared across multiple apps internally",
"private": true,
"main": "./src/index.ts",
"types": "./src/index.ts",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"scripts": {
"check:lint": "eslint . --max-warnings 0",
"dev": "tsdown --watch",
"build": "tsdown",
"check:lint": "eslint . --max-warnings 2",
"check:types": "tsc --noEmit",
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
"fix:lint": "eslint . --fix",
Expand All @@ -19,14 +22,16 @@
"intl-messageformat": "^10.7.11",
"mobx": "catalog:",
"mobx-react": "catalog:",
"lodash": "catalog:"
"lodash": "catalog:",
"react": "catalog:"
},
"devDependencies": {
"@plane/eslint-config": "workspace:*",
"@plane/typescript-config": "workspace:*",
"@types/node": "^22.5.4",
"@types/lodash": "catalog:",
"@types/react": "catalog:",
"tsdown": "catalog:",
"typescript": "catalog:"
}
}
2 changes: 2 additions & 0 deletions packages/i18n/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ export * from "./constants";
export * from "./context";
export * from "./hooks";
export * from "./types";
export * from "./store";
export * from "./locales";
105 changes: 105 additions & 0 deletions packages/i18n/src/locales/index.ts
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
Copy link
Collaborator

Choose a reason for hiding this comment

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

just a thought, but why not have an index.ts for each language that synchronously imports each concern

e.g:

en: () => import('./en')

};
Loading
Loading