mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
Compare commits
10 Commits
@auth/dgra
...
chore/clea
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3d8350c676 | ||
|
|
6fdcaf6ebd | ||
|
|
d2f0ac446b | ||
|
|
2c5244e67e | ||
|
|
c527801875 | ||
|
|
20ba5e1fcd | ||
|
|
01d88733c3 | ||
|
|
f0720cbbd8 | ||
|
|
a264638274 | ||
|
|
663c5ef23b |
12
.eslintignore
Normal file
12
.eslintignore
Normal file
@@ -0,0 +1,12 @@
|
||||
../core/adapters.*
|
||||
../core/index.*
|
||||
../core/jwt
|
||||
../core/lib
|
||||
../core/providers
|
||||
.gitignore
|
||||
|
||||
../frameworks-sveltekit/*.cjs
|
||||
../frameworks-sveltekit/client.*
|
||||
../frameworks-sveltekit/index.*
|
||||
../frameworks-sveltekit/tests
|
||||
../frameworks-sveltekit/.svelte-kit
|
||||
15
.eslintrc.js
15
.eslintrc.js
@@ -12,6 +12,8 @@ module.exports = {
|
||||
"@typescript-eslint/strict-boolean-expressions": "off",
|
||||
"@typescript-eslint/explicit-function-return-type": "off",
|
||||
"@typescript-eslint/restrict-template-expressions": "off",
|
||||
"@typescript-eslint/triple-slash-reference": "off",
|
||||
"@typescript-eslint/promise-function-async": "off",
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
@@ -54,6 +56,19 @@ module.exports = {
|
||||
"@typescript-eslint/method-signature-style": "off",
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ["packages/frameworks-sveltekit/**/*"],
|
||||
plugins: ["svelte3", "@typescript-eslint"],
|
||||
parserOptions: {
|
||||
sourceType: "module",
|
||||
ecmaVersion: 2020,
|
||||
},
|
||||
env: {
|
||||
browser: true,
|
||||
es2017: true,
|
||||
node: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
plugins: ["jest"],
|
||||
ignorePatterns: [
|
||||
|
||||
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@@ -33,9 +33,12 @@ jobs:
|
||||
run: pnpm build
|
||||
- name: Run tests
|
||||
run: pnpm test
|
||||
timeout-minutes: 15
|
||||
env:
|
||||
UPSTASH_REDIS_URL: ${{ secrets.UPSTASH_REDIS_URL }}
|
||||
UPSTASH_REDIS_KEY: ${{ secrets.UPSTASH_REDIS_KEY }}
|
||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
||||
# - name: Coverage
|
||||
# uses: codecov/codecov-action@v1
|
||||
# with:
|
||||
|
||||
25
.prettierignore
Normal file
25
.prettierignore
Normal file
@@ -0,0 +1,25 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
.turbo
|
||||
|
||||
# apps/example-* should have their standalonw config
|
||||
# as they might be cloned via a template like https://github.com/nextauthjs/next-auth-example
|
||||
# Note: The root is inside the package
|
||||
|
||||
# packages
|
||||
dist
|
||||
|
||||
# docs
|
||||
.docusaurus
|
||||
build
|
||||
static
|
||||
|
||||
# @auth/core
|
||||
**/lib/styles/index.ts
|
||||
**/providers/oauth-types.ts
|
||||
|
||||
# @auth/sveltekit
|
||||
package
|
||||
index.*
|
||||
client.*
|
||||
.svelte-kit
|
||||
@@ -1,5 +0,0 @@
|
||||
node_modules
|
||||
.docusaurus
|
||||
build
|
||||
.turbo
|
||||
static
|
||||
@@ -11,8 +11,8 @@
|
||||
"deploy": "docusaurus deploy",
|
||||
"serve": "docusaurus serve",
|
||||
"clear": "docusaurus clear",
|
||||
"lint": "eslint .",
|
||||
"format": "prettier --write .",
|
||||
"lint": "eslint",
|
||||
"format": "prettier",
|
||||
"providers": "node ./scripts/generate-providers",
|
||||
"snippets": "node ./scripts/generate-snippets"
|
||||
},
|
||||
@@ -31,7 +31,6 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@docusaurus/core": "2.2.0",
|
||||
"@docusaurus/eslint-plugin": "2.2.0",
|
||||
"@docusaurus/module-type-aliases": "2.2.0",
|
||||
"@docusaurus/preset-classic": "2.2.0",
|
||||
"@docusaurus/theme-common": "2.2.0",
|
||||
|
||||
@@ -17,12 +17,7 @@
|
||||
"JsonValue"
|
||||
],
|
||||
"readme": "none",
|
||||
"sort": [
|
||||
"kind",
|
||||
"static-first",
|
||||
"required-first",
|
||||
"alphabetical"
|
||||
],
|
||||
"sort": ["kind", "static-first", "required-first", "alphabetical"],
|
||||
"kindSortOrder": [
|
||||
"Function",
|
||||
"TypeAlias",
|
||||
@@ -47,4 +42,4 @@
|
||||
"GetSignature",
|
||||
"SetSignature"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
50
package.json
50
package.json
@@ -1,13 +1,16 @@
|
||||
{
|
||||
"name": "root",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"repository": "https://github.com/nextauthjs/next-auth.git",
|
||||
"scripts": {
|
||||
"build:app": "turbo run build --filter=next-auth-app",
|
||||
"build": "turbo run build --filter=next-auth --filter=@next-auth/* --filter=@auth/* --no-deps",
|
||||
"lint": "turbo run lint --parallel",
|
||||
"format": "turbo run format --parallel",
|
||||
"packages:lint": "turbo run lint --parallel --filter=./packages/* -- --ignore-path ../../.eslintignore .",
|
||||
"packages:format": "turbo run format --parallel --filter=./packages/* -- --ignore-path ../../.prettierignore --write .",
|
||||
"docs:lint": "turbo run lint --parallel --filter=docs -- --ignore-path ../.eslintignore .",
|
||||
"docs:format": "turbo run format --parallel --filter=docs -- --ignore-path ../.prettierignore --write .",
|
||||
"lint": "pnpm packages:lint && pnpm docs:lint",
|
||||
"format": "pnpm packages:format && pnpm docs:format",
|
||||
"test": "turbo run test --concurrency=1 --filter=[HEAD^1] --filter=./packages/* --filter=!*pouchdb-* --filter=!@*upstash*",
|
||||
"clean": "turbo run clean --no-cache",
|
||||
"dev:db": "turbo run dev --parallel --continue --filter=next-auth-app...",
|
||||
@@ -19,38 +22,29 @@
|
||||
"version:pr": "node ./config/version-pr"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@actions/core": "^1.6.0",
|
||||
"@actions/core": "^1.10.0",
|
||||
"@balazsorban/monorepo-release": "0.1.0",
|
||||
"@types/jest": "^28.1.3",
|
||||
"@types/node": "^17.0.25",
|
||||
"@typescript-eslint/eslint-plugin": "^5.10.2",
|
||||
"@typescript-eslint/parser": "^4.33.0",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-config-standard-with-typescript": "^21.0.1",
|
||||
"eslint-plugin-import": "^2.25.4",
|
||||
"eslint-plugin-jest": "^27.0.1",
|
||||
"@docusaurus/eslint-plugin": "2.2.0",
|
||||
"@types/jest": "^29.2.4",
|
||||
"@types/node": "^18.11.17",
|
||||
"@typescript-eslint/eslint-plugin": "^5.46.1",
|
||||
"@typescript-eslint/parser": "^5.46.1",
|
||||
"eslint": "^8.30.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-config-standard-with-typescript": "^24.0.0",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-jest": "^27.1.7",
|
||||
"eslint-plugin-jsdoc": "^39.6.4",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-promise": "^6.0.0",
|
||||
"husky": "^7.0.4",
|
||||
"eslint-plugin-n": "^15.6.0",
|
||||
"eslint-plugin-promise": "^6.1.1",
|
||||
"prettier": "2.8.1",
|
||||
"pretty-quick": "^3.1.2",
|
||||
"semver": "7.3.5",
|
||||
"stream-to-array": "2.3.0",
|
||||
"ts-node": "10.5.0",
|
||||
"turbo": "1.3.1",
|
||||
"turbo": "1.6.3",
|
||||
"typedoc": "^0.23.22",
|
||||
"typedoc-plugin-markdown": "^3.14.0",
|
||||
"typescript": "4.8.4"
|
||||
},
|
||||
"release": {
|
||||
"packageDirectories": [
|
||||
"packages"
|
||||
]
|
||||
"typescript": "4.9.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^12.19.0 || ^14.15.0 || ^16.13.0 || ^18.12.0"
|
||||
"node": "^16.13.0 || ^18.12.0"
|
||||
},
|
||||
"packageManager": "pnpm@7.13.3",
|
||||
"funding": [
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Auth.js
|
||||
|
||||
Authentication for the web.
|
||||
Authentication for the web.
|
||||
|
||||
@@ -66,8 +66,8 @@
|
||||
"build": "pnpm clean && pnpm css && tsc",
|
||||
"clean": "rm -rf adapters.* index.* jwt lib providers",
|
||||
"css": "node ./scripts/generate-css.js",
|
||||
"lint": "eslint src",
|
||||
"format": "pnpm lint --fix",
|
||||
"lint": "eslint",
|
||||
"format": "prettier",
|
||||
"dev": "pnpm css && tsc -w"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -5,14 +5,7 @@
|
||||
"emitDeclarationOnly": false
|
||||
},
|
||||
"watchOptions": {
|
||||
"excludeDirectories": [
|
||||
"jwt",
|
||||
"lib",
|
||||
"providers",
|
||||
],
|
||||
"excludeFiles": [
|
||||
"./*.d.ts",
|
||||
"./*.js"
|
||||
]
|
||||
"excludeDirectories": ["jwt", "lib", "providers"],
|
||||
"excludeFiles": ["./*.d.ts", "./*.js"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"exclude": [
|
||||
"./*.js",
|
||||
"./*.d.ts"
|
||||
]
|
||||
}
|
||||
"exclude": ["./*.js", "./*.d.ts"]
|
||||
}
|
||||
|
||||
@@ -6,11 +6,7 @@
|
||||
"isolatedModules": true,
|
||||
"jsx": "react-jsx",
|
||||
"jsxImportSource": "preact",
|
||||
"lib": [
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
"esnext"
|
||||
],
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"target": "ES2020",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
@@ -21,16 +17,8 @@
|
||||
"strictNullChecks": true,
|
||||
"stripInternal": true,
|
||||
"declarationMap": true,
|
||||
"declaration": true,
|
||||
"declaration": true
|
||||
},
|
||||
"include": [
|
||||
"src/**/*",
|
||||
],
|
||||
"exclude": [
|
||||
"adapters.*",
|
||||
"index.*",
|
||||
"jwt",
|
||||
"lib",
|
||||
"providers",
|
||||
],
|
||||
}
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["adapters.*", "index.*", "jwt", "lib", "providers"]
|
||||
}
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
parser: "@typescript-eslint/parser",
|
||||
extends: [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"prettier",
|
||||
],
|
||||
plugins: ["svelte3", "@typescript-eslint"],
|
||||
ignorePatterns: ["*.cjs", "client.*", "index.*"],
|
||||
overrides: [{ files: ["*.svelte"], processor: "svelte3/svelte3" }],
|
||||
settings: {
|
||||
"svelte3/typescript": () => require("typescript"),
|
||||
},
|
||||
parserOptions: {
|
||||
sourceType: "module",
|
||||
ecmaVersion: 2020,
|
||||
},
|
||||
env: {
|
||||
browser: true,
|
||||
es2017: true,
|
||||
node: true,
|
||||
},
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
/build
|
||||
/.svelte-kit
|
||||
/package
|
||||
/index.*
|
||||
/client.*
|
||||
@@ -19,29 +19,19 @@
|
||||
"preview": "vite preview",
|
||||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
||||
"test:unit": "vitest",
|
||||
"lint": "prettier --plugin-search-dir . --check . && eslint .",
|
||||
"format": "prettier --plugin-search-dir . --write ."
|
||||
"lint": "eslint",
|
||||
"format": "prettier"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@playwright/test": "^1.28.1",
|
||||
"@sveltejs/adapter-auto": "next",
|
||||
"@sveltejs/kit": "next",
|
||||
"@sveltejs/package": "1.0.0-next.6",
|
||||
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
||||
"@typescript-eslint/parser": "^5.45.0",
|
||||
"eslint": "^8.28.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-svelte3": "^4.0.0",
|
||||
"next-auth": "workspace:*",
|
||||
"prettier": "2.8.1",
|
||||
"prettier-plugin-svelte": "^2.8.1",
|
||||
"svelte": "^3.54.0",
|
||||
"svelte-check": "^2.9.2",
|
||||
"tslib": "^2.4.1",
|
||||
"typescript": "^4.9.3",
|
||||
"vite": "^4.0.0",
|
||||
"vitest": "^0.25.3"
|
||||
"vite": "^4.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@auth/core": "workspace:*"
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
import type { PlaywrightTestConfig } from "@playwright/test"
|
||||
|
||||
const config: PlaywrightTestConfig = {
|
||||
webServer: {
|
||||
command: "npm run build && npm run preview",
|
||||
port: 4173,
|
||||
},
|
||||
testDir: "tests",
|
||||
}
|
||||
|
||||
export default config
|
||||
@@ -1,6 +0,0 @@
|
||||
import { expect, test } from "@playwright/test"
|
||||
|
||||
test("index page has expected h1", async ({ page }) => {
|
||||
await page.goto("/")
|
||||
expect(await page.textContent("h1")).toBe("Welcome to SvelteKit")
|
||||
})
|
||||
@@ -14,5 +14,10 @@
|
||||
//
|
||||
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
|
||||
// from the referenced tsconfig.json - TypeScript does not merge them in
|
||||
"exclude": ["scripts", "*.js", "../node_modules/**", "./[!ambient.d.ts]**"]
|
||||
}
|
||||
"exclude": [
|
||||
"scripts",
|
||||
"*.js",
|
||||
"../node_modules/**",
|
||||
"./[!ambient.d.ts]**"
|
||||
]
|
||||
}
|
||||
@@ -47,7 +47,7 @@
|
||||
"test": "jest --config ./config/jest.config.js",
|
||||
"prepublishOnly": "pnpm build",
|
||||
"generate-providers": "node ./config/generate-providers.js",
|
||||
"lint": "eslint src config tests"
|
||||
"lint": "eslint"
|
||||
},
|
||||
"files": [
|
||||
"lib",
|
||||
@@ -131,4 +131,4 @@
|
||||
"engines": {
|
||||
"node": "^12.19.0 || ^14.15.0 || ^16.13.0 || ^18.12.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
1463
pnpm-lock.yaml
generated
1463
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -39,7 +39,8 @@
|
||||
"outputs": []
|
||||
},
|
||||
"@next-auth/upstash-redis-adapter#test": {
|
||||
"dependsOn": ["$UPSTASH_REDIS_KEY", "$UPSTASH_REDIS_URL"]
|
||||
"dependsOn": [],
|
||||
"env": ["UPSTASH_REDIS_KEY", "UPSTASH_REDIS_URL"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user