fix: upgraded package manager and implemented tsup config for ui package

This commit is contained in:
sriram veeraghanta 2023-11-28 15:22:57 +05:30
parent 6607caade7
commit b0e0ab30e5
16 changed files with 13830 additions and 9174 deletions

6
.gitignore vendored
View File

@ -69,6 +69,10 @@ package-lock.json
# Sentry
.sentryclirc
# yarn
.yarn
.yarnrc.yml
# lock files
package-lock.json
pnpm-lock.yaml
@ -76,7 +80,9 @@ pnpm-workspace.yaml
.npmrc
.secrets
tmp/
## packages
dist
.temp/

View File

@ -15,6 +15,8 @@
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev",
"dev:web": "turbo run dev --filter=web",
"dev:space": "turbo run dev --filter=space",
"start": "turbo run start",
"lint": "turbo run lint",
"clean": "turbo run clean",
@ -22,15 +24,15 @@
},
"devDependencies": {
"autoprefixer": "^10.4.15",
"eslint-config-custom": "*",
"postcss": "^8.4.29",
"eslint-config-custom": "workspace:*",
"postcss": "^8.4.31",
"prettier": "latest",
"prettier-plugin-tailwindcss": "^0.5.4",
"tailwindcss": "^3.3.3",
"tailwindcss": "^3.3.5",
"turbo": "^1.10.16"
},
"resolutions": {
"@types/react": "18.2.0"
"@types/react": "^18.2.39"
},
"packageManager": "yarn@1.22.19"
"packageManager": "yarn@3.6.4"
}

View File

@ -28,8 +28,8 @@
"react-dom": "18.2.0"
},
"dependencies": {
"@plane/editor-types": "workspace:*",
"@tiptap/core": "^2.1.7",
"@plane/editor-types": "*",
"@tiptap/extension-code-block-lowlight": "^2.1.12",
"@tiptap/extension-color": "^2.1.11",
"@tiptap/extension-image": "^2.1.7",
@ -61,14 +61,14 @@
"tiptap-markdown": "^0.8.2"
},
"devDependencies": {
"eslint": "^7.32.0",
"postcss": "^8.4.29",
"eslint-config-next": "13.2.4",
"@types/node": "18.15.3",
"@types/react": "^18.2.5",
"@types/react-dom": "18.0.11",
"tailwind-config-custom": "*",
"tsconfig": "*",
"eslint": "^7.32.0",
"eslint-config-next": "13.2.4",
"postcss": "^8.4.31",
"tailwind-config-custom": "workspace:*",
"tsconfig": "workspace:*",
"tsup": "^7.2.0",
"typescript": "4.9.5"
},

View File

@ -28,10 +28,10 @@
"react-dom": "18.2.0"
},
"dependencies": {
"@plane/ui": "*",
"@plane/editor-core": "*",
"@plane/editor-extensions": "*",
"@plane/editor-types": "*",
"@plane/editor-core": "workspace:*",
"@plane/editor-extensions": "workspace:*",
"@plane/editor-types": "workspace:*",
"@plane/ui": "workspace:*",
"@tiptap/core": "^2.1.7",
"@tiptap/extension-placeholder": "^2.1.11",
"@types/node": "18.15.3",
@ -43,9 +43,9 @@
},
"devDependencies": {
"eslint": "^7.32.0",
"postcss": "^8.4.29",
"tailwind-config-custom": "*",
"tsconfig": "*",
"postcss": "^8.4.31",
"tailwind-config-custom": "workspace:*",
"tsconfig": "workspace:*",
"tsup": "^7.2.0",
"typescript": "4.9.5"
},

View File

@ -28,25 +28,25 @@
"react-dom": "18.2.0"
},
"dependencies": {
"@tiptap/react": "^2.1.7",
"@plane/editor-core": "workspace:*",
"@plane/editor-types": "workspace:*",
"@tiptap/core": "^2.1.7",
"@tiptap/pm": "^2.1.7",
"@tiptap/react": "^2.1.7",
"@tiptap/suggestion": "^2.0.4",
"@plane/editor-types": "*",
"@plane/editor-core": "*",
"eslint": "8.36.0",
"eslint-config-next": "13.2.4",
"lucide-react": "^0.244.0",
"tippy.js": "^6.3.7",
"@tiptap/pm": "^2.1.7"
"tippy.js": "^6.3.7"
},
"devDependencies": {
"@types/node": "18.15.3",
"@types/react": "^18.2.35",
"@types/react-dom": "^18.2.14",
"eslint": "^7.32.0",
"postcss": "^8.4.29",
"tailwind-config-custom": "*",
"tsconfig": "*",
"postcss": "^8.4.31",
"tailwind-config-custom": "workspace:*",
"tsconfig": "workspace:*",
"tsup": "^7.2.0",
"typescript": "4.9.5"
},

View File

@ -29,19 +29,19 @@
"react-dom": "18.2.0"
},
"dependencies": {
"@plane/editor-core": "*",
"@plane/ui": "*",
"@plane/editor-types": "*"
"@plane/editor-core": "workspace:*",
"@plane/editor-types": "workspace:*",
"@plane/ui": "workspace:*"
},
"devDependencies": {
"@types/node": "18.15.3",
"@types/react": "^18.2.35",
"@types/react-dom": "^18.2.14",
"eslint": "^7.32.0",
"postcss": "^8.4.29",
"tailwind-config-custom": "*",
"eslint-config-custom": "*",
"tsconfig": "*",
"eslint-config-custom": "workspace:*",
"postcss": "^8.4.31",
"tailwind-config-custom": "workspace:*",
"tsconfig": "workspace:*",
"tsup": "^7.2.0",
"typescript": "4.9.5"
},

View File

@ -29,10 +29,10 @@
"react-dom": "18.2.0"
},
"dependencies": {
"@plane/editor-core": "*",
"@plane/editor-core": "workspace:*",
"@plane/editor-extensions": "workspace:*",
"@plane/editor-types": "workspace:*",
"@tiptap/core": "^2.1.11",
"@plane/editor-types": "*",
"@plane/editor-extensions": "*",
"@tiptap/extension-placeholder": "^2.1.11",
"lucide-react": "^0.244.0"
},
@ -41,10 +41,10 @@
"@types/react": "^18.2.35",
"@types/react-dom": "^18.2.14",
"eslint": "^7.32.0",
"postcss": "^8.4.29",
"postcss": "^8.4.31",
"react": "^18.2.0",
"tailwind-config-custom": "*",
"tsconfig": "*",
"tailwind-config-custom": "workspace:*",
"tsconfig": "workspace:*",
"tsup": "^7.2.0",
"typescript": "4.9.5"
},

View File

@ -36,7 +36,7 @@
"@types/react": "^18.2.35",
"@types/react-dom": "^18.2.14",
"eslint": "^7.32.0",
"tsconfig": "*",
"tsconfig": "workspace:*",
"tsup": "^7.2.0",
"typescript": "4.9.5"
},

View File

@ -8,8 +8,8 @@
"eslint": "^7.23.0",
"eslint-config-next": "13.0.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-react": "7.31.8",
"eslint-config-turbo": "latest"
"eslint-config-turbo": "latest",
"eslint-plugin-react": "7.31.8"
},
"devDependencies": {
"typescript": "^4.7.4"

View File

@ -7,10 +7,10 @@
"devDependencies": {
"@tailwindcss/typography": "^0.5.9",
"autoprefixer": "^10.4.14",
"postcss": "^8.4.21",
"postcss": "^8.4.31",
"prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.3.0",
"tailwindcss": "^3.2.7",
"tailwindcss-animate": "^1.0.6"
"tailwindcss": "^3.3.5",
"tailwindcss-animate": "^1.0.7"
}
}

View File

@ -12,8 +12,10 @@
"dist/**"
],
"scripts": {
"build": "tsup src/index.ts --format esm,cjs --dts --external react",
"dev": "tsup src/index.ts --format esm,cjs --watch --dts --external react",
"build": "tsup",
"dev": "tsup --watch",
"check-types": "tsc --noEmit",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"lint": "eslint src/",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
},
@ -23,10 +25,10 @@
"@types/react-color": "^3.0.9",
"@types/react-dom": "^18.2.15",
"classnames": "^2.3.2",
"eslint-config-custom": "*",
"eslint-config-custom": "workspace:*",
"react": "^18.2.0",
"tailwind-config-custom": "*",
"tsconfig": "*",
"tailwind-config-custom": "workspace:*",
"tsconfig": "workspace:*",
"tsup": "^5.10.1",
"typescript": "4.7.4"
},

View File

@ -0,0 +1,11 @@
import { defineConfig, Options } from "tsup";
export default defineConfig((options: Options) => ({
entry: ["src/index.ts"],
format: ["cjs", "esm"],
dts: true,
clean: false,
external: ["react"],
injectStyle: true,
...options,
}));

View File

@ -3,8 +3,7 @@
"version": "0.13.2",
"private": true,
"scripts": {
"dev": "turbo run develop",
"develop": "next dev -p 4000",
"dev": "next dev -p 4000",
"build": "next build",
"start": "next start -p 4000",
"lint": "next lint",
@ -17,10 +16,10 @@
"@emotion/styled": "^11.11.0",
"@headlessui/react": "^1.7.13",
"@mui/material": "^5.14.1",
"@plane/lite-text-editor": "*",
"@plane/rich-text-editor": "*",
"@plane/ui": "*",
"@plane/document-editor": "*",
"@plane/document-editor": "workspace:*",
"@plane/lite-text-editor": "workspace:*",
"@plane/rich-text-editor": "workspace:*",
"@plane/ui": "workspace:*",
"axios": "^1.3.4",
"clsx": "^2.0.0",
"js-cookie": "^3.0.1",
@ -49,9 +48,9 @@
"@types/uuid": "^9.0.1",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"eslint": "8.34.0",
"eslint-config-custom": "*",
"eslint-config-custom": "workspace:*",
"eslint-config-next": "13.2.1",
"tailwind-config-custom": "*",
"tsconfig": "*"
"tailwind-config-custom": "workspace:*",
"tsconfig": "workspace:*"
}
}

View File

@ -22,17 +22,11 @@
],
"pipeline": {
"build": {
"dependsOn": [
"^build"
],
"outputs": [
".next/**",
"dist/**"
]
"dependsOn": ["^build"],
"outputs": [".next/**", "dist/**"]
},
"web#develop": {
"cache": false,
"persistent": true,
"web#dev": {
"cache": true,
"dependsOn": [
"@plane/lite-text-editor#build",
"@plane/rich-text-editor#build",
@ -40,9 +34,8 @@
"@plane/ui#build"
]
},
"space#develop": {
"cache": false,
"persistent": true,
"space#dev": {
"cache": true,
"dependsOn": [
"@plane/lite-text-editor#build",
"@plane/rich-text-editor#build",
@ -93,9 +86,7 @@
]
},
"test": {
"dependsOn": [
"^build"
],
"dependsOn": ["^build"],
"outputs": []
},
"lint": {

View File

@ -3,8 +3,7 @@
"version": "0.13.2",
"private": true,
"scripts": {
"dev": "turbo run develop",
"develop": "next dev --port 3000",
"dev": "next dev --port 3000",
"build": "next build",
"start": "next start",
"lint": "next lint",
@ -15,22 +14,19 @@
"@blueprintjs/popover2": "^1.13.3",
"@headlessui/react": "^1.7.3",
"@hello-pangea/dnd": "^16.3.0",
"@jitsu/nextjs": "^3.1.5",
"@nivo/bar": "0.80.0",
"@nivo/calendar": "0.80.0",
"@nivo/core": "0.80.0",
"@nivo/legends": "0.80.0",
"@nivo/line": "0.80.0",
"@nivo/pie": "0.80.0",
"@nivo/scatterplot": "0.80.0",
"@plane/lite-text-editor": "*",
"@plane/rich-text-editor": "*",
"@plane/document-editor": "*",
"@plane/ui": "*",
"@nivo/bar": "^0.80.0",
"@nivo/calendar": "^0.80.0",
"@nivo/core": "^0.80.0",
"@nivo/legends": "^0.80.0",
"@nivo/line": "^0.80.0",
"@nivo/pie": "^0.80.0",
"@nivo/scatterplot": "^0.80.0",
"@plane/document-editor": "workspace:*",
"@plane/lite-text-editor": "workspace:*",
"@plane/rich-text-editor": "workspace:*",
"@plane/ui": "workspace:*",
"@popperjs/core": "^2.11.8",
"@sentry/nextjs": "^7.36.0",
"@types/lodash.debounce": "^4.0.7",
"@types/react-datepicker": "^4.8.0",
"axios": "^1.1.3",
"clsx": "^2.0.0",
"cmdk": "^0.2.0",
@ -38,7 +34,6 @@
"dotenv": "^16.0.3",
"js-cookie": "^3.0.1",
"lodash": "^4.17.21",
"lodash.debounce": "^4.0.8",
"lucide-react": "^0.274.0",
"mobx": "^6.10.0",
"mobx-react-lite": "^4.0.3",
@ -58,25 +53,27 @@
"sharp": "^0.32.1",
"swr": "^2.1.3",
"tailwind-merge": "^2.0.0",
"uuid": "^9.0.0",
"use-debounce": "^9.0.4"
"use-debounce": "^9.0.4",
"uuid": "^9.0.0"
},
"devDependencies": {
"@types/js-cookie": "^3.0.2",
"@types/lodash.debounce": "^4.0.7",
"@types/node": "18.0.6",
"@types/nprogress": "^0.2.0",
"@types/react": "^18.2.35",
"@types/react": "^18.2.39",
"@types/react-color": "^3.0.6",
"@types/react-datepicker": "^4.8.0",
"@types/react-dom": "^18.2.14",
"@types/uuid": "^8.3.4",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"eslint": "^8.31.0",
"eslint-config-custom": "*",
"eslint-config-custom": "workspace:*",
"eslint-config-next": "12.2.2",
"prettier": "^2.8.7",
"tailwind-config-custom": "*",
"tsconfig": "*",
"tailwind-config-custom": "workspace:*",
"tsconfig": "workspace:*",
"typescript": "4.7.4"
}
}

22800
yarn.lock

File diff suppressed because it is too large Load Diff