chore: bumps payload to v0.14.24-beta.0

This commit is contained in:
Jacob Fletcher
2022-02-17 21:03:06 -05:00
parent dfabfc5227
commit b931072eed
6 changed files with 1367 additions and 2180 deletions

View File

@@ -13,9 +13,9 @@
"generate:types": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts payload generate:types"
},
"dependencies": {
"payload": "^0.14.0",
"dotenv": "^8.2.0",
"express": "^4.17.1"
"express": "^4.17.1",
"payload": "^0.14.24-beta.0"
},
"devDependencies": {
"@types/express": "^4.17.9",

View File

@@ -9,6 +9,22 @@ export default buildConfig({
serverURL: 'http://localhost:3000',
admin: {
user: Users.slug,
webpack: (config) => {
const newConfig = {
...config,
resolve: {
...config.resolve,
alias: {
...config.resolve.alias,
react: path.join(__dirname, "../node_modules/react"),
"react-dom": path.join(__dirname, "../node_modules/react-dom"),
"payload": path.join(__dirname, "../node_modules/payload"),
},
},
};
return newConfig;
},
},
collections: [
Users,

File diff suppressed because it is too large Load Diff

View File

@@ -22,12 +22,12 @@
"author": "dev@trbl.design",
"license": "MIT",
"peerDependencies": {
"payload": "^0.14.0",
"payload": "^0.14.24-beta.0",
"react": "^17.0.2"
},
"devDependencies": {
"@types/escape-html": "^1.0.1",
"payload": "^0.14.0",
"payload": "^0.14.24-beta.0",
"react": "^17.0.2",
"typescript": "^4.5.5"
},

View File

@@ -28,7 +28,7 @@ export type FieldsConfig = {
payment?: boolean | FieldConfig
}
export type BeforeEmail = (emails: FormattedEmail[]) => FormattedEmail[];
export type BeforeEmail = (emails: FormattedEmail[]) => FormattedEmail[] | Promise<FormattedEmail[]>;
export type HandlePayment = (data: any) => void;
export type FormConfig = {

File diff suppressed because it is too large Load Diff