forked from nextauthjs/next-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ts): rewrite core to TypeScript (nextauthjs#2552)
* chore(deps): upgrade TS packages * build(ts): use tsc to compile * refactor(ts): move some files to TS * chore: implement SkyPack check suggestions * chore(ci): temprarily disable tests * chore: add PR comment action * chore: add determine version github action * chore: prefix with env. * chore: add runs to action * chore: change runs.using to node12 * chore: fix typo * chore: install @actions/core as dev dependency * chore: move env var, remove old script * chore: change version comment message * refactor(ts): convert server/index.js to TS * chore: fix `types` path * chore: fix paths * refactor(ts): convert `next-auth/react` * refactor(ts): convert `next-auth/jwt` to TS * chore: fix import * refactor: move `types` into `src` * refactor(ts): fix types imports * chore: add cleanup script * chore: exclude all `tests` folder from compilation * refactor: rename types/index.d.ts to types/index.ts * refactor(ts): move `next-auth/jwt` * refactor(ts): move `next-auth/providers` * chore(ts): fix `next-auth` types * refactor(ts): change internal import paths * test(ts): remove type tests * chore: remove test:types script * refactor(ts): move more code to TypeScript * refactor: fix some imports * refactor(ts): move error module into server * fix(ts): add type to .js providers * chore: rename adapters.ts to adapters.d.ts * fix: update exports field * chore: add files that should end up on npm * chore: add stricter lib checking * refactor(ts): remove unnecessary files, fix imports * chore: autocomplete env variables * fix: add css folder to npm files * fix: fix CSS import/generation * feat: log provider when authorization url error happens * refactor(ts): turn pages into .tsx * chore: compile differently for client/server * refactor(ts): move server file to TS * chore: add back node target * chore: add back comment removal * chore: re-enable tests * chore: ignore test files when building * chore(ts): refactor files to TS * chore(ts): fix imports * chore(ts): more ts * fix(ts): correctly type _NEXTAUTH_DEBUG env var * chore: don't generate internals module iwth babel * fix(ts): better `clientId`, `clientSecret` constraints * refactor(ts): move facebook provider to TS * refactor(ts): apply suggested changes * chore(ts): strip internal types from compilation * refactor(ts): move server types to server folder * refactor(ts): rename internals to types
- Loading branch information
1 parent
4b77043
commit 8191956
Showing
136 changed files
with
2,109 additions
and
5,451 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
import "regenerator-runtime/runtime" | ||
import "@testing-library/jest-dom" | ||
import "whatwg-fetch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: "Determine version" | ||
description: "Determines npm package version based on PR number and commit SHA" | ||
outputs: | ||
version: | ||
description: "npm package version" | ||
runs: | ||
using: "node12" | ||
main: "index.js" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.