nitrostack 1.0.4 → 1.0.5

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/CHANGELOG.md CHANGED
@@ -1,3 +1,4 @@
1
+
1
2
  # Changelog
2
3
 
3
4
  All notable changes to NitroStack will be documented in this file.
@@ -7,6 +8,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
8
 
8
9
  ## [Unreleased]
9
10
 
11
+ ## [1.0.5] - 2025-10-27
12
+
13
+ ### Fixed
14
+ - **Critical**: Fixed webpack TypeScript loader for Studio `lib` and `components` directories
15
+ - Modified webpack exclude patterns to ensure TypeScript files in `lib/` and `components/` are processed
16
+ - Webpack now correctly applies the TypeScript/Babel loader to aliased paths
17
+ - Resolves "Module parse failed: Unexpected token" error for TypeScript syntax
18
+
10
19
  ## [1.0.4] - 2025-10-27
11
20
 
12
21
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitrostack",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "NitroStack - Build powerful MCP servers with TypeScript",
5
5
  "type": "module",
6
6
  "main": "dist/core/index.js",
@@ -22,6 +22,33 @@ const nextConfig = {
22
22
  ...config.resolve.alias,
23
23
  '@': __dirname,
24
24
  };
25
+
26
+ // Ensure TypeScript files are processed correctly
27
+ // Remove exclude patterns that might block our lib/components from being processed
28
+ config.module.rules.forEach((rule) => {
29
+ if (rule.test && rule.test.toString().includes('tsx')) {
30
+ // Remove node_modules exclude or modify it to allow our files
31
+ if (rule.exclude) {
32
+ const originalExclude = rule.exclude;
33
+ rule.exclude = (modulePath) => {
34
+ // Allow our lib and components directories
35
+ if (modulePath.includes(path.join(__dirname, 'lib')) ||
36
+ modulePath.includes(path.join(__dirname, 'components'))) {
37
+ return false;
38
+ }
39
+ // Apply original exclude logic
40
+ if (typeof originalExclude === 'function') {
41
+ return originalExclude(modulePath);
42
+ }
43
+ if (originalExclude instanceof RegExp) {
44
+ return originalExclude.test(modulePath);
45
+ }
46
+ return false;
47
+ };
48
+ }
49
+ }
50
+ });
51
+
25
52
  return config;
26
53
  },
27
54
  };