chore: updates all references from @payloadcms/payload to payload
This commit is contained in:
@@ -69,7 +69,7 @@ Many third party mail providers are available and offer benefits beyond basic SM
|
||||
|
||||
```js
|
||||
const nodemailerSendgrid = require('nodemailer-sendgrid');
|
||||
const payload = require('@payloadcms/payload');
|
||||
const payload = require('payload');
|
||||
|
||||
const sendGridAPIKey = process.env.SENDGRID_API_KEY;
|
||||
|
||||
@@ -90,7 +90,7 @@ payload.init({
|
||||
To take full control of the mail transport you may wish to use `nodemailer.createTransport()` on your server and provide it to Payload init.
|
||||
|
||||
```js
|
||||
const payload = require('@payloadcms/payload');
|
||||
const payload = require('payload');
|
||||
const nodemailer = require('nodemailer');
|
||||
|
||||
const transport = await nodemailer.createTransport({
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@payloadcms/payload",
|
||||
"name": "payload",
|
||||
"version": "0.1.127",
|
||||
"description": "CMS and Application Framework",
|
||||
"description": "Node, React and MongoDB Headless CMS and Application Framework",
|
||||
"license": "ISC",
|
||||
"author": "Payload CMS LLC",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
@@ -53,7 +53,7 @@ export default (config: Config): Configuration => ({
|
||||
modules: ['node_modules', path.resolve(__dirname, '../../node_modules')],
|
||||
alias: {
|
||||
'payload/config': config.paths.config,
|
||||
'@payloadcms/payload$': mockModulePath,
|
||||
payload$: mockModulePath,
|
||||
'payload-user-css': config.admin.css,
|
||||
'payload-scss-overrides': config.admin.scss,
|
||||
dotenv: mockDotENVPath,
|
||||
|
||||
@@ -15,13 +15,13 @@
|
||||
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
||||
"baseUrl": "",
|
||||
"paths": {
|
||||
"@payloadcms/payload/config": [
|
||||
"payload/config": [
|
||||
"src/config/types.ts"
|
||||
],
|
||||
"@payloadcms/payload/auth": [
|
||||
"payload/auth": [
|
||||
"src/auth/types.ts"
|
||||
],
|
||||
"@payloadcms/payload/types": [
|
||||
"payload/types": [
|
||||
"src/types/index.ts"
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user