Skip to content

Commit 8ba1adf

Browse files
committed
refactor: pnpm workspace & cleanup
- Use pnpm workspace - Fix prettier config - Removed editorconfig - Removed jest
1 parent e4a6282 commit 8ba1adf

19 files changed

+704
-896
lines changed

.editorconfig

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
- run: pnpm install --frozen-lockfile
3030

31-
- run: pnpm exec nx run-many -t build
31+
- run: pnpm exec nx build
3232

3333
- run: pnpm exec nx report
3434
shell: bash
@@ -37,4 +37,4 @@ jobs:
3737
shell: bash
3838
env:
3939
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
40-
NPM_CONFIG_PROVENANCE: true
40+
NPM_CONFIG_PROVENANCE: true

.prettierrc.cjs

Lines changed: 0 additions & 9 deletions
This file was deleted.

.prettierrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"printWidth": 100,
3+
"semi": true,
4+
"singleQuote": false,
5+
"trailingComma": "all",
6+
"arrowParens": "avoid",
7+
"endOfLine": "lf"
8+
}

dev/next.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { withPayload } from "@payloadcms/next/withPayload";
2+
import type { NextConfig } from "next";
3+
4+
const nextConfig: NextConfig = {};
5+
6+
export default withPayload(nextConfig);

dev/nodemon.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

dev/package.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "payload-authjs-dev",
3+
"description": "A test app for payload-authjs plugin",
4+
"version": "1.0.0",
5+
"license": "MIT",
6+
"private": true,
7+
"type": "module",
8+
"scripts": {
9+
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev -p 5000",
10+
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
11+
"start": "cross-env NODE_OPTIONS=--no-deprecation next start",
12+
"payload": "payload",
13+
"generate:types": "payload generate:types",
14+
"generate:schema": "payload-graphql generate:schema",
15+
"generate:importmap": "payload generate:importmap"
16+
},
17+
"dependencies": {
18+
"@payloadcms/db-postgres": "3.0.0-beta.120",
19+
"@payloadcms/next": "3.0.0-beta.120",
20+
"@payloadcms/ui": "3.0.0-beta.120",
21+
"jsonwebtoken": "^9.0.2",
22+
"next": "15.0.2",
23+
"next-auth": "5.0.0-beta.25",
24+
"nodemailer": "^6.9.16",
25+
"payload": "3.0.0-beta.120",
26+
"react": "19.0.0-rc-02c0e824-20241028",
27+
"react-dom": "19.0.0-rc-02c0e824-20241028",
28+
"sharp": "^0.33.5",
29+
"payload-authjs": "workspace:*"
30+
},
31+
"devDependencies": {
32+
"@types/jsonwebtoken": "^9.0.7",
33+
"cross-env": "^7.0.3",
34+
"dotenv": "^16.4.5",
35+
"typescript": "^5.6.3"
36+
}
37+
}

dev/src/app/(app)/_components/AuthOverview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { auth } from "@/auth";
22
import type { DataFromCollectionSlug } from "payload";
3-
import { getPayloadUser } from "../../../../../src";
3+
import { getPayloadUser } from "payload-authjs";
44
import { SignInButton } from "./SignInButton";
55
import { SignOutButtonAuthjs } from "./SignOutButtonAuthjs";
66
import { SignOutButtonPayload } from "./SignOutButtonPayload";

dev/src/app/(app)/_components/ExampleList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import config from "@payload-config";
22
import { getPayloadHMR } from "@payloadcms/next/utilities";
3-
import { getPayloadUser } from "../../../../../src";
3+
import { getPayloadUser } from "payload-authjs";
44

55
const payload = await getPayloadHMR({ config });
66

dev/src/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import payloadConfig from "@payload-config";
22
import NextAuth from "next-auth";
33
import nodemailer from "next-auth/providers/nodemailer";
4-
import { withPayload } from "../../src";
4+
import { withPayload } from "payload-authjs";
55
import { authConfig } from "./auth.config";
66

77
export const { handlers, signIn, signOut, auth } = NextAuth(

0 commit comments

Comments
 (0)