[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>
This commit is contained in:
sriram veeraghanta 2025-10-06 21:01:32 +05:30 committed by GitHub
parent cbcb026e9a
commit 0589ac56d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
163 changed files with 52250 additions and 49718 deletions

View file

@ -4,19 +4,13 @@
"license": "AGPL-3.0",
"description": "Logger shared across multiple apps internally",
"private": true,
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
},
"./package.json": "./package.json"
},
"files": [
"dist/**"
],
"scripts": {
"build": "tsdown",
"dev": "tsdown --watch",
@ -38,5 +32,8 @@
"@types/node": "^20.14.9",
"tsdown": "catalog:",
"typescript": "catalog:"
}
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts"
}

View file

@ -4,7 +4,8 @@ export default defineConfig({
entry: ["src/index.ts"],
outDir: "dist",
format: ["esm", "cjs"],
exports: true,
dts: true,
sourcemap: true,
clean: true,
sourcemap: true,
});