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

@ -2,6 +2,37 @@
"name": "@plane/constants",
"version": "0.27.0",
"private": true,
"main": "./src/index.ts",
"license": "AGPL-3.0"
"license": "AGPL-3.0",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"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:lint": "eslint . --max-warnings 0",
"check:types": "tsc --noEmit",
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
"fix:lint": "eslint . --fix",
"fix:format": "prettier --write \"**/*.{ts,tsx,md,json,css,scss}\"",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
},
"dependencies": {
"@plane/types": "*"
},
"devDependencies": {
"@plane/eslint-config": "*",
"@plane/typescript-config": "*",
"tsup": "8.4.0"
}
}

View file

@ -0,0 +1,15 @@
{
"extends": "@plane/typescript-config/base.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
"module": "ESNext",
"moduleResolution": "bundler",
"target": "ESNext",
"sourceMap": true,
"strictNullChecks": true,
"allowSyntheticDefaultImports": true
},
"include": ["src/**/*.ts"],
"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,
});

View file

@ -2,8 +2,4 @@ module.exports = {
root: true,
extends: ["@plane/eslint-config/library.js"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: true,
},
rules: {},
};

View file

@ -1,6 +1,5 @@
// plane imports
import { TDocumentPayload, TDuplicateAssetData, TDuplicateAssetResponse } from "@plane/types";
import { TEditorAssetType } from "@plane/types/src/enums";
import { TDocumentPayload, TDuplicateAssetData, TDuplicateAssetResponse, TEditorAssetType } from "@plane/types";
// plane web imports
import {
extractAdditionalAssetsFromHTMLContent,

View file

@ -1,16 +1,16 @@
{
"compilerOptions": {
"jsx": "react-jsx",
"lib": ["ES2015", "DOM"],
"lib": ["ES2022", "DOM"],
"module": "ESNext",
"moduleResolution": "Node",
"target": "ES6",
"moduleResolution": "bundler",
"target": "ESNext",
"sourceMap": true,
"baseUrl": ".",
"paths": {
"@/*": ["src/core/*"],
"@/styles/*": ["src/styles/*"],
"@/plane-editor/*": ["src/ce/*"]
"@/*": ["./src/core/*"],
"@/styles/*": ["./src/styles/*"],
"@/plane-editor/*": ["./src/ce/*"]
},
"strictNullChecks": true,
"allowSyntheticDefaultImports": true

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,
});