fix: live server runtime errors (#7314)

* fix: live tsconfig and tsup config

* fix: lock file updates

* feat: adding build process to constants and types packages

* chore: coderabbit suggestions
This commit is contained in:
sriram veeraghanta 2025-07-02 18:20:18 +05:30 committed by GitHub
parent 5874636b0b
commit 7153064ebb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
40 changed files with 282 additions and 783 deletions

View file

@ -0,0 +1,5 @@
module.exports = {
root: true,
extends: ["@plane/eslint-config/library.js"],
parser: "@typescript-eslint/parser",
};

View file

@ -3,6 +3,32 @@
"version": "0.27.0",
"license": "AGPL-3.0",
"private": true,
"types": "./src/index.ts",
"main": "./src/index.ts"
"type": "module",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"module": "./dist/index.js",
"files": [
"dist/**/*"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.js"
}
},
"scripts": {
"dev": "tsup --watch",
"build": "tsc --noEmit && tsup",
"check:types": "tsc --noEmit",
"check:lint": "eslint src --ext .ts,.tsx",
"check:format": "prettier --check \"**/*.{ts,tsx,md}\"",
"fix:lint": "eslint src --ext .ts,.tsx --fix",
"fix:format": "prettier --write \"**/*.{ts,tsx,md}\""
},
"devDependencies": {
"@plane/eslint-config": "*",
"@plane/typescript-config": "*",
"tsup": "8.4.0"
}
}

View file

@ -4,6 +4,7 @@ export * from "./cycle";
export * from "./dashboard";
export * from "./de-dupe";
export * from "./description_version";
export * from "./enums";
export * from "./project";
export * from "./state";
export * from "./issues";

View file

@ -0,0 +1,15 @@
{
"extends": "@plane/typescript-config/base.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
"baseUrl": "./src",
"module": "ESNext",
"moduleResolution": "bundler",
"target": "ESNext",
"allowSyntheticDefaultImports": true,
"strictNullChecks": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}

View file

@ -0,0 +1,10 @@
import { defineConfig } from "tsup";
export default defineConfig({
entry: ["src/index.ts"],
outDir: "dist",
format: ["esm"],
dts: true,
clean: true,
minify: true,
});