mirror of
https://github.com/gosticks/plane.git
synced 2025-10-16 12:45:33 +00:00
fix: update tsup build packages (#7438)
This commit is contained in:
parent
07c80bb02c
commit
df4ea1f7ac
@ -11,7 +11,7 @@
|
|||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "turbo run build",
|
"build": "turbo run build",
|
||||||
"dev": "turbo run dev --concurrency=13",
|
"dev": "turbo run dev --concurrency=18",
|
||||||
"start": "turbo run start",
|
"start": "turbo run start",
|
||||||
"clean": "turbo run clean",
|
"clean": "turbo run clean",
|
||||||
"fix": "turbo run fix",
|
"fix": "turbo run fix",
|
||||||
|
|||||||
@ -3,13 +3,12 @@
|
|||||||
"version": "0.27.1",
|
"version": "0.27.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"type": "module",
|
|
||||||
"main": "./dist/index.js",
|
|
||||||
"module": "./dist/index.js",
|
|
||||||
"types": "./dist/index.d.ts",
|
|
||||||
"files": [
|
"files": [
|
||||||
"dist/**/*"
|
"dist/**/*"
|
||||||
],
|
],
|
||||||
|
"main": "./dist/index.js",
|
||||||
|
"module": "./dist/index.mjs",
|
||||||
|
"types": "./dist/index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
|
|||||||
@ -1,11 +1,8 @@
|
|||||||
{
|
{
|
||||||
"extends": "@plane/typescript-config/base.json",
|
"extends": "@plane/typescript-config/base.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "./dist",
|
"outDir": "dist",
|
||||||
"rootDir": "./src",
|
"rootDir": "src",
|
||||||
"module": "ESNext",
|
|
||||||
"moduleResolution": "bundler",
|
|
||||||
"target": "ESNext",
|
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"strictNullChecks": true,
|
"strictNullChecks": true,
|
||||||
"allowSyntheticDefaultImports": true
|
"allowSyntheticDefaultImports": true
|
||||||
|
|||||||
@ -3,8 +3,11 @@ import { defineConfig } from "tsup";
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
entry: ["src/index.ts"],
|
entry: ["src/index.ts"],
|
||||||
outDir: "dist",
|
outDir: "dist",
|
||||||
format: ["esm"],
|
format: ["esm", "cjs"],
|
||||||
dts: true,
|
dts: true,
|
||||||
clean: true,
|
clean: true,
|
||||||
minify: true,
|
minify: true,
|
||||||
|
splitting: true,
|
||||||
|
treeshake: true,
|
||||||
|
external: ["@plane/types"],
|
||||||
});
|
});
|
||||||
|
|||||||
@ -3,8 +3,4 @@ module.exports = {
|
|||||||
root: true,
|
root: true,
|
||||||
extends: ["@plane/eslint-config/library.js"],
|
extends: ["@plane/eslint-config/library.js"],
|
||||||
parser: "@typescript-eslint/parser",
|
parser: "@typescript-eslint/parser",
|
||||||
parserOptions: {
|
|
||||||
project: true,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -2,11 +2,11 @@ import { defineConfig } from "tsup";
|
|||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
entry: ["src/index.ts"],
|
entry: ["src/index.ts"],
|
||||||
|
outDir: "dist",
|
||||||
format: ["esm", "cjs"],
|
format: ["esm", "cjs"],
|
||||||
dts: true,
|
dts: true,
|
||||||
splitting: false,
|
|
||||||
sourcemap: true,
|
|
||||||
clean: true,
|
clean: true,
|
||||||
|
minify: true,
|
||||||
external: ["express", "ws"],
|
external: ["express", "ws"],
|
||||||
treeshake: true,
|
treeshake: true,
|
||||||
});
|
});
|
||||||
|
|||||||
@ -4,12 +4,12 @@
|
|||||||
"description": "Core Editor that powers Plane",
|
"description": "Core Editor that powers Plane",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"files": [
|
||||||
|
"dist"
|
||||||
|
],
|
||||||
"main": "./dist/index.mjs",
|
"main": "./dist/index.mjs",
|
||||||
"module": "./dist/index.mjs",
|
"module": "./dist/index.mjs",
|
||||||
"types": "./dist/index.d.mts",
|
"types": "./dist/index.d.mts",
|
||||||
"files": [
|
|
||||||
"dist/**/*"
|
|
||||||
],
|
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"types": "./dist/index.d.mts",
|
"types": "./dist/index.d.mts",
|
||||||
|
|||||||
@ -1,11 +1,14 @@
|
|||||||
import { defineConfig, Options } from "tsup";
|
import { defineConfig } from "tsup";
|
||||||
|
|
||||||
export default defineConfig((options: Options) => ({
|
export default defineConfig({
|
||||||
entry: ["src/index.ts", "src/lib.ts"],
|
entry: ["src/index.ts", "src/lib.ts"],
|
||||||
format: ["cjs", "esm"],
|
outDir: "dist",
|
||||||
|
format: ["esm", "cjs"],
|
||||||
dts: true,
|
dts: true,
|
||||||
clean: false,
|
clean: true,
|
||||||
external: ["react"],
|
external: ["react", "react-dom"],
|
||||||
injectStyle: true,
|
injectStyle: true,
|
||||||
...options,
|
splitting: true,
|
||||||
}));
|
treeshake: true,
|
||||||
|
minify: true,
|
||||||
|
});
|
||||||
|
|||||||
@ -2,8 +2,12 @@ import { defineConfig } from "tsup";
|
|||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
entry: ["src/index.ts"],
|
entry: ["src/index.ts"],
|
||||||
|
outDir: "dist",
|
||||||
format: ["esm", "cjs"],
|
format: ["esm", "cjs"],
|
||||||
dts: true,
|
dts: true,
|
||||||
clean: true,
|
clean: true,
|
||||||
|
minify: true,
|
||||||
|
splitting: true,
|
||||||
|
treeshake: true,
|
||||||
external: ["react"],
|
external: ["react"],
|
||||||
});
|
});
|
||||||
|
|||||||
@ -2,11 +2,12 @@ import { defineConfig } from "tsup";
|
|||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
entry: ["src/index.ts"],
|
entry: ["src/index.ts"],
|
||||||
|
outDir: "dist",
|
||||||
format: ["esm", "cjs"],
|
format: ["esm", "cjs"],
|
||||||
dts: true,
|
dts: true,
|
||||||
splitting: false,
|
|
||||||
sourcemap: true,
|
|
||||||
clean: true,
|
clean: true,
|
||||||
external: ["winston", "winston-daily-rotate-file"],
|
minify: true,
|
||||||
|
splitting: true,
|
||||||
treeshake: true,
|
treeshake: true,
|
||||||
|
external: ["winston", "winston-daily-rotate-file"],
|
||||||
});
|
});
|
||||||
|
|||||||
@ -3,7 +3,4 @@ module.exports = {
|
|||||||
root: true,
|
root: true,
|
||||||
extends: ["@plane/eslint-config/library.js"],
|
extends: ["@plane/eslint-config/library.js"],
|
||||||
parser: "@typescript-eslint/parser",
|
parser: "@typescript-eslint/parser",
|
||||||
parserOptions: {
|
|
||||||
project: true,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|||||||
@ -5,6 +5,8 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"build": "tsc --noEmit && tsup --minify",
|
||||||
|
"dev": "tsup --watch",
|
||||||
"check:lint": "eslint . --max-warnings 0",
|
"check:lint": "eslint . --max-warnings 0",
|
||||||
"check:types": "tsc --noEmit",
|
"check:types": "tsc --noEmit",
|
||||||
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
@ -15,5 +17,11 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@plane/constants": "*",
|
"@plane/constants": "*",
|
||||||
"axios": "^1.8.3"
|
"axios": "^1.8.3"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@plane/eslint-config": "*",
|
||||||
|
"@plane/typescript-config": "*",
|
||||||
|
"tsup": "8.4.0",
|
||||||
|
"typescript": "5.8.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
13
packages/services/tsup.config.ts
Normal file
13
packages/services/tsup.config.ts
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import { defineConfig } from "tsup";
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
entry: ["src/index.ts"],
|
||||||
|
outDir: "dist",
|
||||||
|
format: ["esm", "cjs"],
|
||||||
|
dts: true,
|
||||||
|
clean: true,
|
||||||
|
minify: true,
|
||||||
|
splitting: true,
|
||||||
|
treeshake: true,
|
||||||
|
external: ["axios"],
|
||||||
|
});
|
||||||
@ -3,13 +3,12 @@
|
|||||||
"version": "0.27.1",
|
"version": "0.27.1",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"files": [
|
||||||
|
"dist"
|
||||||
|
],
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"module": "./dist/index.js",
|
"module": "./dist/index.js",
|
||||||
"files": [
|
|
||||||
"dist/**/*"
|
|
||||||
],
|
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
@ -19,7 +18,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "tsup --watch",
|
"dev": "tsup --watch",
|
||||||
"build": "tsc --noEmit && tsup",
|
"build": "tsc --noEmit && tsup --minify",
|
||||||
"check:lint": "eslint . --max-warnings 0",
|
"check:lint": "eslint . --max-warnings 0",
|
||||||
"check:types": "tsc --noEmit",
|
"check:types": "tsc --noEmit",
|
||||||
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
"check:format": "prettier --check \"**/*.{ts,tsx,md,json,css,scss}\"",
|
||||||
|
|||||||
@ -1,12 +1,8 @@
|
|||||||
{
|
{
|
||||||
"extends": "@plane/typescript-config/base.json",
|
"extends": "@plane/typescript-config/base.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "./dist",
|
"outDir": "dist",
|
||||||
"rootDir": "./src",
|
"rootDir": "src",
|
||||||
"baseUrl": "./src",
|
|
||||||
"module": "ESNext",
|
|
||||||
"moduleResolution": "bundler",
|
|
||||||
"target": "ESNext",
|
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"strictNullChecks": true
|
"strictNullChecks": true
|
||||||
},
|
},
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import { defineConfig } from "tsup";
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
entry: ["src/index.ts"],
|
entry: ["src/index.ts"],
|
||||||
outDir: "dist",
|
outDir: "dist",
|
||||||
format: ["esm"],
|
format: ["esm", "cjs"],
|
||||||
dts: true,
|
dts: true,
|
||||||
clean: true,
|
clean: true,
|
||||||
minify: true,
|
minify: true,
|
||||||
|
|||||||
@ -3,8 +3,4 @@ module.exports = {
|
|||||||
root: true,
|
root: true,
|
||||||
extends: ["@plane/eslint-config/library.js"],
|
extends: ["@plane/eslint-config/library.js"],
|
||||||
parser: "@typescript-eslint/parser",
|
parser: "@typescript-eslint/parser",
|
||||||
parserOptions: {
|
|
||||||
project: "./tsconfig.json",
|
|
||||||
tsconfigRootDir: __dirname,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|||||||
@ -3,14 +3,14 @@
|
|||||||
"description": "UI components shared across multiple apps internally",
|
"description": "UI components shared across multiple apps internally",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.27.1",
|
"version": "0.27.1",
|
||||||
"main": "./dist/index.js",
|
|
||||||
"module": "./dist/index.mjs",
|
|
||||||
"types": "./dist/index.d.ts",
|
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"files": [
|
"files": [
|
||||||
"dist/**"
|
"dist"
|
||||||
],
|
],
|
||||||
|
"main": "./dist/index.js",
|
||||||
|
"module": "./dist/index.mjs",
|
||||||
|
"types": "./dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsup --minify",
|
"build": "tsup --minify",
|
||||||
"dev": "tsup --watch",
|
"dev": "tsup --watch",
|
||||||
|
|||||||
@ -1,11 +1,14 @@
|
|||||||
import { defineConfig, Options } from "tsup";
|
import { defineConfig } from "tsup";
|
||||||
|
|
||||||
export default defineConfig((options: Options) => ({
|
export default defineConfig({
|
||||||
entry: ["src/index.ts"],
|
entry: ["src/index.ts"],
|
||||||
format: ["cjs", "esm"],
|
outDir: "dist",
|
||||||
|
format: ["esm", "cjs"],
|
||||||
dts: true,
|
dts: true,
|
||||||
clean: false,
|
clean: true,
|
||||||
external: ["react"],
|
minify: true,
|
||||||
|
splitting: true,
|
||||||
|
treeshake: true,
|
||||||
|
external: ["react", "@plane/types"],
|
||||||
injectStyle: true,
|
injectStyle: true,
|
||||||
...options,
|
});
|
||||||
}));
|
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
"module": "./dist/index.mjs",
|
"module": "./dist/index.mjs",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
"dist/**"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --noEmit && tsup --minify",
|
"build": "tsc --noEmit && tsup --minify",
|
||||||
|
|||||||
@ -2,7 +2,12 @@ import { defineConfig } from "tsup";
|
|||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
entry: ["src/index.ts"],
|
entry: ["src/index.ts"],
|
||||||
|
outDir: "dist",
|
||||||
format: ["esm", "cjs"],
|
format: ["esm", "cjs"],
|
||||||
dts: true,
|
dts: true,
|
||||||
|
clean: true,
|
||||||
|
minify: true,
|
||||||
|
splitting: true,
|
||||||
|
treeshake: true,
|
||||||
external: ["react"],
|
external: ["react"],
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user