chore(deps): removes all unused dependencies from payload core (#4797)
This commit is contained in:
@@ -42,8 +42,6 @@
|
||||
"@faceless-ui/modal": "2.0.1",
|
||||
"@payloadcms/translations": "workspace:^",
|
||||
"@payloadcms/ui": "workspace:*",
|
||||
"deepmerge": "^4.3.1",
|
||||
"jsonwebtoken": "9.0.1",
|
||||
"path-to-regexp": "^6.2.1",
|
||||
"react-diff-viewer-continued": "3.2.6",
|
||||
"react-toastify": "8.2.0"
|
||||
|
||||
@@ -14,11 +14,6 @@
|
||||
"require": "./src/index.ts",
|
||||
"types": "./src/index.ts"
|
||||
},
|
||||
"./scss": {
|
||||
"import": "./src/exports/scss.scss",
|
||||
"require": "./src/exports/scss.scss",
|
||||
"default": "./src/exports/scss.scss"
|
||||
},
|
||||
"./*": {
|
||||
"import": "./src/exports/*.ts",
|
||||
"require": "./src/exports/*.ts",
|
||||
@@ -31,14 +26,13 @@
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "pnpm copyfiles && pnpm build:swc && pnpm build:types && pnpm build:components && ts-node -T ../../scripts/exportPointerFiles.ts ../packages/payload dist/exports",
|
||||
"build:components": "webpack --config dist/admin/components.config.js",
|
||||
"build": "pnpm copyfiles && pnpm build:swc && pnpm build:types && ts-node -T ../../scripts/exportPointerFiles.ts ../packages/payload dist/exports",
|
||||
"build:swc": "swc ./src -d ./dist --config-file .swcrc",
|
||||
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
||||
"build:watch": "nodemon --watch 'src/**' --ext 'ts,tsx' --exec \"pnpm build:tsc\"",
|
||||
"clean": "rimraf {dist,*.tsbuildinfo}",
|
||||
"clean:cache": "rimraf node_modules/.cache",
|
||||
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
|
||||
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
|
||||
"dev": "nodemon",
|
||||
"dev:postgres": "cross-env PAYLOAD_DATABASE=postgres nodemon",
|
||||
"fix": "eslint \"src/**/*.ts\" --fix",
|
||||
@@ -52,70 +46,46 @@
|
||||
"translateNewKeys": "ts-node -T ./scripts/translateNewKeys.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@date-io/date-fns": "2.16.0",
|
||||
"@dnd-kit/core": "6.0.8",
|
||||
"@dnd-kit/sortable": "7.0.2",
|
||||
"@faceless-ui/modal": "2.0.1",
|
||||
"@faceless-ui/scroll-info": "1.3.0",
|
||||
"@faceless-ui/window-info": "2.1.1",
|
||||
"@monaco-editor/react": "4.5.1",
|
||||
"@payloadcms/translations": "workspace:^",
|
||||
"body-scroll-lock": "4.0.0-beta.0",
|
||||
"bson-objectid": "2.0.4",
|
||||
"conf": "10.2.0",
|
||||
"console-table-printer": "2.11.2",
|
||||
"dataloader": "2.2.2",
|
||||
"date-fns": "2.30.0",
|
||||
"deep-equal": "2.2.2",
|
||||
"deepmerge": "4.3.1",
|
||||
"file-type": "16.5.4",
|
||||
"find-up": "4.1.0",
|
||||
"flatley": "5.2.0",
|
||||
"graphql": "16.8.1",
|
||||
"graphql-http": "1.21.0",
|
||||
"graphql-query-complexity": "0.12.0",
|
||||
"graphql-scalars": "1.22.2",
|
||||
"graphql-type-json": "0.3.2",
|
||||
"http-status": "1.6.2",
|
||||
"is-hotkey": "0.2.0",
|
||||
"is-plain-object": "5.0.0",
|
||||
"json-schema-to-typescript": "11.0.3",
|
||||
"jsonwebtoken": "9.0.1",
|
||||
"jwt-decode": "3.1.2",
|
||||
"md5": "2.3.0",
|
||||
"micro-memoize": "4.1.2",
|
||||
"minimist": "1.2.8",
|
||||
"mkdirp": "1.0.4",
|
||||
"monaco-editor": "0.38.0",
|
||||
"nodemailer": "6.9.4",
|
||||
"object-to-formdata": "4.5.1",
|
||||
"pino": "8.15.0",
|
||||
"pino-pretty": "10.2.0",
|
||||
"pluralize": "8.0.0",
|
||||
"probe-image-size": "6.0.0",
|
||||
"process": "0.11.10",
|
||||
"qs": "6.11.2",
|
||||
"qs-middleware": "1.0.3",
|
||||
"react-animate-height": "2.1.2",
|
||||
"react-datepicker": "4.16.0",
|
||||
"react-diff-viewer-continued": "3.2.6",
|
||||
"react-image-crop": "10.1.8",
|
||||
"react-select": "5.7.4",
|
||||
"react-toastify": "8.2.0",
|
||||
"sanitize-filename": "1.6.3",
|
||||
"scheduler": "0.23.0",
|
||||
"scmp": "2.1.0",
|
||||
"sharp": "0.32.6",
|
||||
"ts-essentials": "7.0.3",
|
||||
"use-context-selector": "1.4.1",
|
||||
"uuid": "9.0.1"
|
||||
"ts-essentials": "7.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@monaco-editor/react": "4.5.1",
|
||||
"@payloadcms/eslint-config": "workspace:*",
|
||||
"@release-it/conventional-changelog": "7.0.0",
|
||||
"@types/asap": "2.0.0",
|
||||
"@types/body-parser": "1.19.2",
|
||||
"@types/body-scroll-lock": "^3.1.0",
|
||||
"@types/compression": "1.7.2",
|
||||
"@types/express": "4.17.17",
|
||||
"@types/express-fileupload": "1.4.1",
|
||||
@@ -123,14 +93,12 @@
|
||||
"@types/express-serve-static-core": "4.17.35",
|
||||
"@types/hapi__joi": "17.1.9",
|
||||
"@types/ignore-styles": "5.0.0",
|
||||
"@types/is-hotkey": "0.1.7",
|
||||
"@types/isomorphic-fetch": "0.0.36",
|
||||
"@types/joi": "14.3.4",
|
||||
"@types/json-schema": "7.0.12",
|
||||
"@types/jsonwebtoken": "8.5.9",
|
||||
"@types/method-override": "0.0.32",
|
||||
"@types/mime": "2.0.3",
|
||||
"@types/mini-css-extract-plugin": "^1.4.3",
|
||||
"@types/minimist": "1.2.2",
|
||||
"@types/mkdirp": "1.0.2",
|
||||
"@types/node-fetch": "2.6.4",
|
||||
@@ -140,22 +108,12 @@
|
||||
"@types/passport-jwt": "3.0.9",
|
||||
"@types/passport-local": "1.0.35",
|
||||
"@types/pluralize": "0.0.29",
|
||||
"@types/prismjs": "1.26.0",
|
||||
"@types/probe-image-size": "7.2.0",
|
||||
"@types/qs": "6.9.7",
|
||||
"@types/qs-middleware": "1.0.1",
|
||||
"@types/react": "18.2.15",
|
||||
"@types/react-datepicker": "4.11.2",
|
||||
"@types/react-dom": "18.2.7",
|
||||
"@types/react-helmet": "6.1.6",
|
||||
"@types/react-router-dom": "5.3.3",
|
||||
"@types/sharp": "0.31.1",
|
||||
"@types/uuid": "8.3.4",
|
||||
"confusing-browser-globals": "1.0.11",
|
||||
"copyfiles": "2.4.1",
|
||||
"cross-env": "7.0.3",
|
||||
"css-loader": "5.2.7",
|
||||
"css-minimizer-webpack-plugin": "^5.0.0",
|
||||
"file-loader": "6.2.0",
|
||||
"form-data": "3.0.1",
|
||||
"get-port": "5.1.1",
|
||||
@@ -165,18 +123,9 @@
|
||||
"object.assign": "4.1.4",
|
||||
"object.entries": "1.1.6",
|
||||
"passport-strategy": "1.0.0",
|
||||
"postcss-loader": "6.2.1",
|
||||
"postcss-preset-env": "9.0.0",
|
||||
"release-it": "16.1.3",
|
||||
"rimraf": "3.0.2",
|
||||
"sass-loader": "12.6.0",
|
||||
"serve-static": "1.15.0",
|
||||
"swc-loader": "^0.2.3",
|
||||
"terser": "5.19.2",
|
||||
"terser-webpack-plugin": "^5.3.6",
|
||||
"url-loader": "4.1.1",
|
||||
"vite": "^4.4.9",
|
||||
"webpack": "^5.78.0"
|
||||
"serve-static": "1.15.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
@@ -185,8 +134,6 @@
|
||||
"bin.js",
|
||||
"dist",
|
||||
"docs",
|
||||
"components",
|
||||
"*.scss",
|
||||
"*.js",
|
||||
"*.d.ts",
|
||||
"!jest.config.js",
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import type { JSONSchema4 } from 'json-schema'
|
||||
|
||||
import type { RequestContext } from '../../dist'
|
||||
import type { PayloadRequest } from '../../types'
|
||||
import type { RichTextField, Validate } from '../fields/config/types'
|
||||
import type { PayloadRequest, RequestContext } from '../types'
|
||||
import type { CellComponentProps } from './elements/Cell'
|
||||
|
||||
export type RichTextFieldProps<
|
||||
|
||||
@@ -79,8 +79,6 @@ export default joi.object({
|
||||
titleSuffix: joi.string(),
|
||||
}),
|
||||
user: joi.string(),
|
||||
vite: joi.func(),
|
||||
webpack: joi.func(),
|
||||
}),
|
||||
collections: joi.array(),
|
||||
cookiePrefix: joi.string(),
|
||||
|
||||
@@ -8,8 +8,6 @@ import type { DestinationStream, LoggerOptions } from 'pino'
|
||||
import type React from 'react'
|
||||
import type { DeepRequired } from 'ts-essentials'
|
||||
// @ts-ignore-next-line
|
||||
import type { InlineConfig } from 'vite'
|
||||
import type { Configuration } from 'webpack'
|
||||
|
||||
import type { Payload } from '..'
|
||||
import type { DocumentInfoContext, DocumentTab, RichTextAdapter } from '../admin/types'
|
||||
@@ -158,6 +156,8 @@ export type InitOptions = {
|
||||
* A function that is called immediately following startup that receives the Payload instance as it's only argument.
|
||||
*/
|
||||
onInit?: (payload: Payload) => Promise<void> | void
|
||||
/** Secure string that Payload will use for any encryption workflows */
|
||||
secret: string
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -494,10 +494,6 @@ export type Config = {
|
||||
}
|
||||
/** The slug of a Collection that you want be used to log in to the Admin dashboard. */
|
||||
user?: string
|
||||
/** Customize the Vite config that's used to generate the Admin panel. */
|
||||
vite?: (config: InlineConfig) => InlineConfig
|
||||
/** Customize the Webpack config that's used to generate the Admin panel. */
|
||||
webpack?: (config: Configuration) => Configuration
|
||||
}
|
||||
/**
|
||||
* Manage the datamodel of your application
|
||||
@@ -701,7 +697,7 @@ export type SanitizedConfig = Omit<
|
||||
}
|
||||
}
|
||||
|
||||
export type ClientConfig = Omit<SanitizedConfig, 'db' | 'endpoints' | 'webpack'> & {
|
||||
export type ClientConfig = Omit<SanitizedConfig, 'db' | 'endpoints'> & {
|
||||
collections: (Omit<SanitizedCollectionConfig, 'access' | 'endpoints' | 'fields' | 'hooks'> & {
|
||||
fields: ClientConfigField[]
|
||||
})[]
|
||||
|
||||
@@ -29,6 +29,11 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@payloadcms/eslint-config": "workspace:*",
|
||||
"@types/body-scroll-lock": "^3.1.0",
|
||||
"@types/qs": "6.9.7",
|
||||
"@types/react": "18.2.15",
|
||||
"@types/react-dom": "18.2.7",
|
||||
"@types/uuid": "8.3.4",
|
||||
"payload": "workspace:*"
|
||||
},
|
||||
"dependencies": {
|
||||
@@ -37,24 +42,28 @@
|
||||
"@faceless-ui/modal": "2.0.1",
|
||||
"@faceless-ui/scroll-info": "1.3.0",
|
||||
"@faceless-ui/window-info": "2.1.1",
|
||||
"@monaco-editor/react": "4.5.1",
|
||||
"@payloadcms/translations": "workspace:^",
|
||||
"body-scroll-lock": "4.0.0-beta.0",
|
||||
"bson-objectid": "2.0.4",
|
||||
"date-fns": "2.30.0",
|
||||
"deep-equal": "2.2.2",
|
||||
"deepmerge": "4.3.1",
|
||||
"flatley": "5.2.0",
|
||||
"md5": "2.3.0",
|
||||
"object-to-formdata": "4.5.1",
|
||||
"qs": "6.11.2",
|
||||
"react-animate-height": "2.1.2",
|
||||
"react-datepicker": "4.16.0",
|
||||
"react-image-crop": "10.1.8",
|
||||
"react-select": "5.7.4",
|
||||
"react-toastify": "8.2.0",
|
||||
"use-context-selector": "1.4.1"
|
||||
"use-context-selector": "1.4.1",
|
||||
"uuid": "9.0.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@monaco-editor/react": "4.5.1",
|
||||
"next": "^14.0.0",
|
||||
"payload": "^2.0.0"
|
||||
"payload": "^2.0.0",
|
||||
"react": "^18.0.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"exports": {
|
||||
|
||||
425
pnpm-lock.yaml
generated
425
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user