Skip to content

Commit 0589ac5

Browse files
[WEB-5048] chore: implements esm exports for all packages (#7816)
* fix: esm module imports for live and editor * fix: convert all pacakges to export esm and cjs build * fix: auto export * fix: translation files formatting * fix: convert eslint files to cjs files for supporting current config * fix: code uuid package upgrade --------- Co-authored-by: Aaron Reisman <aaron.reisman@plane.so>
1 parent cbcb026 commit 0589ac5

163 files changed

Lines changed: 52251 additions & 49719 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.mise.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[tools]
2+
node = "22.18.0"

apps/admin/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"@types/node": "18.16.1",
5050
"@types/react": "catalog:",
5151
"@types/react-dom": "catalog:",
52-
"@types/uuid": "^9.0.8",
5352
"typescript": "catalog:"
5453
}
5554
}

apps/live/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\"",
1818
"clean": "rm -rf .turbo && rm -rf .next && rm -rf node_modules && rm -rf dist"
1919
},
20-
"keywords": [],
21-
"author": "",
20+
"author": "Plane Software Inc.",
2221
"dependencies": {
2322
"@dotenvx/dotenvx": "^1.49.0",
2423
"@hocuspocus/extension-database": "^3.0.0",

apps/live/tsdown.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ import { defineConfig } from "tsdown";
33
export default defineConfig({
44
entry: ["src/start.ts"],
55
outDir: "dist",
6-
format: ["esm", "cjs"],
6+
format: ["esm"],
7+
dts: false,
8+
clean: true,
9+
sourcemap: false,
710
});

apps/space/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
"@types/nprogress": "^0.2.0",
6262
"@types/react": "catalog:",
6363
"@types/react-dom": "catalog:",
64-
"@types/uuid": "^9.0.1",
6564
"typescript": "catalog:"
6665
}
6766
}

apps/web/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\""
1616
},
1717
"dependencies": {
18-
"@atlaskit/pragmatic-drag-and-drop": "^1.1.3",
19-
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^1.3.0",
20-
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.0.3",
18+
"@atlaskit/pragmatic-drag-and-drop": "catalog:",
19+
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "catalog:",
20+
"@atlaskit/pragmatic-drag-and-drop-hitbox": "catalog:",
2121
"@bprogress/next": "^3.2.12",
2222
"@headlessui/react": "^1.7.3",
2323
"@intercom/messenger-js-sdk": "^0.0.12",
@@ -77,7 +77,6 @@
7777
"@types/react": "catalog:",
7878
"@types/react-color": "^3.0.6",
7979
"@types/react-dom": "catalog:",
80-
"@types/uuid": "^8.3.4",
8180
"prettier": "^3.2.5",
8281
"typescript": "catalog:"
8382
}

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,16 @@
3434
"@types/express": "4.17.23",
3535
"typescript": "catalog:",
3636
"sharp": "catalog:",
37-
"vite": "catalog:"
38-
}
37+
"vite": "7.0.7"
38+
},
39+
"onlyBuiltDependencies": [
40+
"@swc/core",
41+
"core-js",
42+
"esbuild",
43+
"sharp",
44+
"turbo",
45+
"unrs-resolver"
46+
]
3947
},
4048
"packageManager": "pnpm@10.12.1",
4149
"engines": {

packages/constants/package.json

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,6 @@
33
"version": "1.0.0",
44
"private": true,
55
"license": "AGPL-3.0",
6-
"files": [
7-
"dist/**/*"
8-
],
9-
"main": "./dist/index.js",
10-
"module": "./dist/index.mjs",
11-
"types": "./dist/index.d.ts",
12-
"exports": {
13-
".": {
14-
"types": "./dist/index.d.ts",
15-
"require": "./dist/index.js",
16-
"import": "./dist/index.js"
17-
}
18-
},
196
"scripts": {
207
"dev": "tsdown --watch",
218
"build": "tsdown",
@@ -36,5 +23,15 @@
3623
"@types/react": "catalog:",
3724
"tsdown": "catalog:",
3825
"typescript": "catalog:"
26+
},
27+
"main": "./dist/index.js",
28+
"module": "./dist/index.mjs",
29+
"types": "./dist/index.d.ts",
30+
"exports": {
31+
".": {
32+
"import": "./dist/index.mjs",
33+
"require": "./dist/index.js"
34+
},
35+
"./package.json": "./package.json"
3936
}
4037
}

packages/constants/tsdown.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ export default defineConfig({
44
entry: ["src/index.ts"],
55
outDir: "dist",
66
format: ["esm", "cjs"],
7+
exports: true,
8+
dts: true,
9+
clean: true,
10+
sourcemap: false,
711
});

packages/decorators/package.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
"description": "Controller and route decorators for Express.js applications",
55
"license": "AGPL-3.0",
66
"private": true,
7-
"main": "./dist/index.js",
8-
"module": "./dist/index.mjs",
9-
"types": "./dist/index.d.ts",
10-
"files": [
11-
"dist/**"
12-
],
7+
"exports": {
8+
".": {
9+
"import": "./dist/index.mjs",
10+
"require": "./dist/index.js"
11+
},
12+
"./package.json": "./package.json"
13+
},
1314
"scripts": {
1415
"build": "tsdown",
1516
"dev": "tsdown --watch",
@@ -29,5 +30,8 @@
2930
"reflect-metadata": "^0.2.2",
3031
"tsdown": "catalog:",
3132
"typescript": "catalog:"
32-
}
33+
},
34+
"main": "./dist/index.js",
35+
"module": "./dist/index.mjs",
36+
"types": "./dist/index.d.ts"
3337
}

0 commit comments

Comments
 (0)