Skip to content

Commit

Permalink
fix(build): include utils in package (#4760)
Browse files Browse the repository at this point in the history
* fix: include `utils` in package

* fix: import `InternalUrl` as type

* `"emitDeclarationOnly": false`

* don't ignore `types.ts` in build
  • Loading branch information
balazsorban44 committed Jun 23, 2022
1 parent 23db0e6 commit 6a23ff7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/next-auth/config/babel.config.js
Expand Up @@ -25,7 +25,6 @@ module.exports = (api) => {
ignore: [
"../src/**/__tests__/**",
"../src/adapters.ts",
"../src/core/types.ts",
"../src/providers/oauth-types.ts",
],
comments: false,
Expand Down
3 changes: 2 additions & 1 deletion packages/next-auth/package.json
Expand Up @@ -62,7 +62,8 @@
"index.js",
"adapters.d.ts",
"middleware.d.ts",
"middleware.js"
"middleware.js",
"utils"
],
"license": "ISC",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/next-auth/src/core/types.ts
Expand Up @@ -14,7 +14,7 @@ import type { CookieSerializeOptions } from "cookie"

import type { NextApiRequest, NextApiResponse } from "next"

import { InternalUrl } from "../utils/parse-url"
import type { InternalUrl } from "../utils/parse-url"

export type Awaitable<T> = T | PromiseLike<T>

Expand Down
3 changes: 2 additions & 1 deletion packages/next-auth/tsconfig.json
Expand Up @@ -14,7 +14,8 @@
"stripInternal": true,
"skipDefaultLibCheck": true,
"baseUrl": ".",
"outDir": "."
"outDir": ".",

},
"exclude": ["./*.js", "./*.d.ts", "config", "**/__tests__", "tests"]
}

0 comments on commit 6a23ff7

Please sign in to comment.