fix: source map warning during build (#8148)

* [WEB-5473] fix: source map errors

* [WEB-5473] chore: run codemod

* fix: build errors in editor

---------

Co-authored-by: sriramveeraghanta <veeraghanta.sriram@gmail.com>
This commit is contained in:
Aaron 2025-11-21 15:13:52 +07:00 committed by GitHub
parent 9611cd1e73
commit 2e15e4f786
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
956 changed files with 778 additions and 2267 deletions

View file

@ -4,11 +4,9 @@
"license": "AGPL-3.0",
"description": "Logger shared across multiple apps internally",
"private": true,
"type": "module",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
".": "./dist/index.mjs",
"./package.json": "./package.json"
},
"scripts": {
@ -34,7 +32,7 @@
"tsdown": "catalog:",
"typescript": "catalog:"
},
"main": "./dist/index.js",
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts"
"types": "./dist/index.d.mts"
}

View file

@ -1,19 +1,11 @@
{
"extends": "@plane/typescript-config/base.json",
"extends": "@plane/typescript-config/node-library.json",
"compilerOptions": {
"module": "ESNext",
"target": "ESNext",
"moduleResolution": "node",
"esModuleInterop": true,
"outDir": "./dist",
"rootDir": "./src",
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
},
"experimentalDecorators": true,
"sourceMap": true
}
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
"exclude": ["node_modules", "dist"]
}

View file

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