[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:
parent
cbcb026e9a
commit
0589ac56d5
163 changed files with 52250 additions and 49718 deletions
|
|
@ -4,12 +4,14 @@
|
|||
"description": "Helper functions shared across multiple apps internally",
|
||||
"license": "AGPL-3.0",
|
||||
"private": true,
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.ts",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.js",
|
||||
"require": "./dist/index.cjs"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsdown",
|
||||
"dev": "tsdown --watch",
|
||||
|
|
@ -30,7 +32,6 @@
|
|||
"lucide-react": "catalog:",
|
||||
"react": "catalog:",
|
||||
"tailwind-merge": "^2.5.5",
|
||||
"tlds": "1.259.0",
|
||||
"uuid": "catalog:"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
@ -39,8 +40,10 @@
|
|||
"@types/lodash-es": "catalog:",
|
||||
"@types/node": "^22.5.4",
|
||||
"@types/react": "catalog:",
|
||||
"@types/uuid": "^9.0.8",
|
||||
"tsdown": "catalog:",
|
||||
"typescript": "catalog:"
|
||||
}
|
||||
},
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.cts"
|
||||
}
|
||||
|
|
|
|||
1441
packages/utils/src/tlds.ts
Normal file
1441
packages/utils/src/tlds.ts
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1,4 +1,4 @@
|
|||
import tlds from "tlds";
|
||||
import tlds from "./tlds";
|
||||
|
||||
const PROTOCOL_REGEX = /^[a-zA-Z]+:\/\//;
|
||||
const EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,5 @@
|
|||
{
|
||||
"extends": "@plane/typescript-config/react-library.json",
|
||||
"compilerOptions": {
|
||||
"jsx": "react",
|
||||
"lib": ["esnext", "dom"]
|
||||
},
|
||||
"include": ["./src"],
|
||||
"exclude": ["dist", "build", "node_modules"]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,4 +4,9 @@ export default defineConfig({
|
|||
entry: ["src/index.ts"],
|
||||
outDir: "dist",
|
||||
format: ["esm", "cjs"],
|
||||
exports: true,
|
||||
dts: true,
|
||||
clean: true,
|
||||
sourcemap: true,
|
||||
target: "esnext",
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue