nitrostack 1.0.8 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitrostack",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "NitroStack - Build powerful MCP servers with TypeScript",
5
5
  "type": "module",
6
6
  "main": "dist/core/index.js",
@@ -1,12 +1,13 @@
1
1
  import path from 'path';
2
2
  import { fileURLToPath } from 'url';
3
+ import { createRequire } from 'module';
3
4
 
4
5
  const __filename = fileURLToPath(import.meta.url);
5
6
  const __dirname = path.dirname(__filename);
7
+ const require = createRequire(import.meta.url);
6
8
 
7
9
  /** @type {import('next').NextConfig} */
8
10
  const nextConfig = {
9
- // No static export in dev mode - we need API routes and middleware
10
11
  images: {
11
12
  unoptimized: true,
12
13
  },
@@ -16,48 +17,15 @@ const nextConfig = {
16
17
  eslint: {
17
18
  ignoreDuringBuilds: true,
18
19
  },
20
+ // Ensure Next transpiles our package when it's nested under node_modules
19
21
  transpilePackages: ['nitrostack'],
20
22
  webpack: (config) => {
21
- // Explicitly configure webpack to resolve @ alias
23
+ // Provide @ alias so imports like '@/lib/store' work reliably
22
24
  config.resolve.alias = {
23
25
  ...config.resolve.alias,
24
26
  '@': __dirname,
25
27
  };
26
-
27
- const libPath = path.resolve(__dirname, 'lib');
28
- const componentsPath = path.resolve(__dirname, 'components');
29
-
30
- // Create a high-priority rule that ensures TS/TSX in node_modules/nitrostack are transpiled
31
- const forceTsTranspileRule = {
32
- test: /\.(ts|tsx)$/,
33
- // Do not exclude our package even if under node_modules
34
- exclude: (modulePath) => {
35
- // Never exclude files from nitrostack package
36
- if (modulePath.includes(`${path.sep}node_modules${path.sep}nitrostack${path.sep}`)) {
37
- return false;
38
- }
39
- // Otherwise, apply default exclude for node_modules
40
- return modulePath.includes(`${path.sep}node_modules${path.sep}`);
41
- },
42
- use: {
43
- loader: require.resolve('next/dist/build/webpack/loaders/next-swc-loader'),
44
- },
45
- };
46
-
47
- const oneOfRule = config.module.rules.find((rule) => Array.isArray(rule.oneOf));
48
- if (oneOfRule && Array.isArray(oneOfRule.oneOf)) {
49
- oneOfRule.oneOf.unshift(forceTsTranspileRule);
50
- } else {
51
- config.module.rules.unshift(forceTsTranspileRule);
52
- }
53
-
54
- // Also add a specific include-based rule for our lib/components as a fallback
55
- config.module.rules.push({
56
- test: /\.(ts|tsx)$/,
57
- include: [libPath, componentsPath],
58
- use: require.resolve('next/dist/build/webpack/loaders/next-swc-loader'),
59
- });
60
-
28
+ // Do NOT inject custom TS rules; rely on Next's defaults + transpilePackages
61
29
  return config;
62
30
  },
63
31
  };
@@ -1,44 +1,20 @@
1
1
  {
2
- "name": "ecommerce-mcp-server",
3
- "version": "3.0.0",
4
- "description": "E-commerce MCP server with JWT authentication - NitroStack V3 Template",
5
- "main": "dist/index.js",
2
+ "name": "typescript-auth",
3
+ "version": "1.0.0",
4
+ "private": true,
6
5
  "type": "module",
7
6
  "scripts": {
8
- "dev": "nitrostack dev",
9
- "build": "nitrostack build",
10
- "start": "nitrostack start",
11
- "widget": "npm --prefix src/widgets",
12
- "setup-db": "node --loader ts-node/esm src/db/setup.ts"
7
+ "dev": "node dist/index.js",
8
+ "build": "tsc",
9
+ "start": "NODE_ENV=production node dist/index.js"
13
10
  },
14
- "keywords": [
15
- "mcp",
16
- "ecommerce",
17
- "jwt-auth",
18
- "model-context-protocol"
19
- ],
20
- "author": "",
21
- "license": "MIT",
22
11
  "dependencies": {
23
- "nitrostack": "^1.0.0",
12
+ "nitrostack": "^1",
24
13
  "dotenv": "^16.3.1",
25
- "better-sqlite3": "^9.2.2",
26
- "uuid": "^9.0.1",
27
- "bcryptjs": "^2.4.3",
28
- "jsonwebtoken": "^9.0.2",
29
- "zod": "^3.22.4",
30
- "reflect-metadata": "^0.2.1"
14
+ "zod": "^3.23.8"
31
15
  },
32
16
  "devDependencies": {
33
- "@types/better-sqlite3": "^7.6.8",
34
- "@types/node": "^20.10.5",
35
- "@types/uuid": "^9.0.7",
36
- "@types/bcryptjs": "^2.4.6",
37
- "@types/jsonwebtoken": "^9.0.5",
38
- "typescript": "^5.3.3",
39
- "ts-node": "^10.9.2",
40
- "prettier": "^3.1.1",
41
- "eslint": "^8.56.0"
17
+ "typescript": "^5.3.3"
42
18
  }
43
19
  }
44
20
 
@@ -1,29 +1,18 @@
1
1
  {
2
- "name": "api-key-auth-mcp-server",
2
+ "name": "typescript-auth-api-key",
3
3
  "version": "1.0.0",
4
- "description": "NitroStack server demonstrating API key authentication",
4
+ "private": true,
5
5
  "type": "module",
6
- "main": "dist/index.js",
7
6
  "scripts": {
8
- "dev": "nitrostack dev",
9
- "build": "nitrostack build",
10
- "start": "nitrostack start",
11
- "widget": "npm --prefix src/widgets"
7
+ "dev": "node dist/index.js",
8
+ "build": "tsc",
9
+ "start": "NODE_ENV=production node dist/index.js"
12
10
  },
13
- "keywords": [
14
- "mcp",
15
- "nitrostack",
16
- "api-key",
17
- "authentication"
18
- ],
19
- "author": "",
20
- "license": "MIT",
21
11
  "dependencies": {
22
- "nitrostack": "^1.0.0",
12
+ "nitrostack": "^1",
23
13
  "zod": "^3.23.8"
24
14
  },
25
15
  "devDependencies": {
26
- "@types/node": "^20",
27
- "typescript": "^5"
16
+ "typescript": "^5.3.3"
28
17
  }
29
18
  }
@@ -4,7 +4,7 @@
4
4
  "type": "module",
5
5
  "private": true,
6
6
  "scripts": {
7
- "dev": "next dev -p 3001",
7
+ "dev": "next dev -p 3001 --port 3001",
8
8
  "build": "next build",
9
9
  "start": "next start -p 3001"
10
10
  },
@@ -12,7 +12,7 @@
12
12
  "next": "^14.2.5",
13
13
  "react": "^18.3.1",
14
14
  "react-dom": "^18.3.1",
15
- "nitrostack": "^1.0.0"
15
+ "nitrostack": "^1"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/node": "^20",
@@ -1,30 +1,18 @@
1
1
  {
2
- "name": "oauth-mcp-server",
2
+ "name": "typescript-oauth",
3
3
  "version": "1.0.0",
4
- "description": "NitroStack server demonstrating OAuth 2.1 authentication",
4
+ "private": true,
5
5
  "type": "module",
6
- "main": "dist/index.js",
7
6
  "scripts": {
8
- "dev": "nitrostack dev",
9
- "build": "nitrostack build",
10
- "start": "nitrostack start",
11
- "widget": "npm --prefix src/widgets"
7
+ "dev": "node dist/index.js",
8
+ "build": "tsc",
9
+ "start": "NODE_ENV=production node dist/index.js"
12
10
  },
13
- "keywords": [
14
- "mcp",
15
- "nitrostack",
16
- "oauth",
17
- "oauth2.1",
18
- "authentication"
19
- ],
20
- "author": "",
21
- "license": "MIT",
22
11
  "dependencies": {
23
- "nitrostack": "^1.0.0",
12
+ "nitrostack": "^1",
24
13
  "zod": "^3.23.8"
25
14
  },
26
15
  "devDependencies": {
27
- "@types/node": "^20",
28
- "typescript": "^5"
16
+ "typescript": "^5.3.3"
29
17
  }
30
18
  }
@@ -4,7 +4,7 @@
4
4
  "type": "module",
5
5
  "private": true,
6
6
  "scripts": {
7
- "dev": "next dev -p 3001",
7
+ "dev": "next dev -p 3001 --port 3001",
8
8
  "build": "next build",
9
9
  "start": "next start -p 3001"
10
10
  },
@@ -12,7 +12,7 @@
12
12
  "next": "^14.2.5",
13
13
  "react": "^18.3.1",
14
14
  "react-dom": "^18.3.1",
15
- "nitrostack": "^1.0.0"
15
+ "nitrostack": "^1"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/node": "^20",
@@ -1,31 +1,19 @@
1
1
  {
2
- "name": "nitrostack-starter",
2
+ "name": "hypermcp-starter",
3
3
  "version": "1.0.0",
4
- "description": "NitroStack starter template with calculator example",
4
+ "private": true,
5
5
  "type": "module",
6
- "main": "dist/index.js",
7
6
  "scripts": {
8
- "dev": "nitrostack dev",
9
- "build": "nitrostack build",
10
- "start": "nitrostack start",
11
- "widget": "npm --prefix src/widgets"
7
+ "dev": "node dist/index.js",
8
+ "build": "tsc",
9
+ "start": "NODE_ENV=production node dist/index.js"
12
10
  },
13
- "keywords": [
14
- "mcp",
15
- "nitrostack",
16
- "starter",
17
- "template",
18
- "calculator"
19
- ],
20
- "author": "",
21
- "license": "MIT",
22
11
  "dependencies": {
23
- "nitrostack": "^1.0.0",
12
+ "nitrostack": "^1",
24
13
  "zod": "^3.22.4",
25
- "reflect-metadata": "^0.2.1"
14
+ "dotenv": "^16.3.1"
26
15
  },
27
16
  "devDependencies": {
28
- "@types/node": "^20.10.0",
29
17
  "typescript": "^5.3.3"
30
18
  }
31
19
  }
@@ -4,7 +4,7 @@
4
4
  "type": "module",
5
5
  "private": true,
6
6
  "scripts": {
7
- "dev": "next dev -p 3001",
7
+ "dev": "next dev -p 3001 --port 3001",
8
8
  "build": "next build",
9
9
  "start": "next start -p 3001"
10
10
  },
@@ -12,7 +12,7 @@
12
12
  "next": "^14.2.5",
13
13
  "react": "^18.3.1",
14
14
  "react-dom": "^18.3.1",
15
- "nitrostack": "^1.0.0"
15
+ "nitrostack": "^1"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/node": "^20",