Skip to content

Commit 93ba39e

Browse files
authored
refactor: support subpath import (#21)
* refactor: support subpath import * chore: bump version
1 parent 844ba47 commit 93ba39e

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

packages/mcp-auth/package.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mcp-auth",
3-
"version": "0.1.0-beta.2",
3+
"version": "0.1.0-beta.3",
44
"author": "Silverhand Inc. <contact@silverhand.io>",
55
"description": "Plug and play auth for Model Context Protocol (MCP) servers",
66
"keywords": [
@@ -16,11 +16,19 @@
1616
"module": "./lib/index.js",
1717
"types": "./lib/index.d.ts",
1818
"exports": {
19-
"svelte": "./lib/index.js",
20-
"types": "./lib/index.d.ts",
21-
"import": "./lib/index.js",
22-
"require": "./lib/index.js",
23-
"default": "./lib/index.js"
19+
".": {
20+
"svelte": "./lib/index.js",
21+
"types": "./lib/index.d.ts",
22+
"import": "./lib/index.js",
23+
"require": "./lib/index.js",
24+
"default": "./lib/index.js"
25+
},
26+
"./*": {
27+
"svelte": "./lib/*",
28+
"import": "./lib/*",
29+
"require": "./lib/*",
30+
"default": "./lib/*"
31+
}
2432
},
2533
"files": [
2634
"lib"

packages/mcp-auth/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type RequestHandler, type Router } from 'express';
1+
import type { RequestHandler, Router } from 'express';
22
import { createRemoteJWKSet, type RemoteJWKSetOptions, type JWTVerifyOptions } from 'jose';
33

44
import { MCPAuthAuthServerError } from './errors.js';

0 commit comments

Comments
 (0)