@bleedingdev/modern-js-server-utils 3.4.0-ultramodern.4 → 3.4.0-ultramodern.6
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.
|
@@ -107,9 +107,11 @@ const filterSourceFiles = (tsconfigDir, sourceDirs, files = [])=>{
|
|
|
107
107
|
const sourcePosixPaths = sourceDirs.map((sourceDir)=>sourceDir.split(external_path_default().sep).join(external_path_default().posix.sep));
|
|
108
108
|
return files.filter((fileName)=>{
|
|
109
109
|
const absoluteFileName = external_path_default().resolve(tsconfigDir, fileName).split(external_path_default().sep).join(external_path_default().posix.sep);
|
|
110
|
+
if (isAppRouterGeneratedDeclaration(absoluteFileName)) return false;
|
|
110
111
|
return fileName.endsWith('.d.ts') || sourcePosixPaths.some((sourceDir)=>absoluteFileName.includes(sourceDir));
|
|
111
112
|
});
|
|
112
113
|
};
|
|
114
|
+
const isAppRouterGeneratedDeclaration = (absoluteFileName)=>/\/src\/modern-tanstack\/.*\.gen\.d\.ts$/u.test(absoluteFileName);
|
|
113
115
|
const runTsgo = (tsgoBinPath, args, options)=>new Promise((resolve, reject)=>{
|
|
114
116
|
const child = (0, external_child_process_namespaceObject.spawn)(process.execPath, [
|
|
115
117
|
tsgoBinPath,
|
|
@@ -62,9 +62,11 @@ const filterSourceFiles = (tsconfigDir, sourceDirs, files = [])=>{
|
|
|
62
62
|
const sourcePosixPaths = sourceDirs.map((sourceDir)=>sourceDir.split(path.sep).join(path.posix.sep));
|
|
63
63
|
return files.filter((fileName)=>{
|
|
64
64
|
const absoluteFileName = path.resolve(tsconfigDir, fileName).split(path.sep).join(path.posix.sep);
|
|
65
|
+
if (isAppRouterGeneratedDeclaration(absoluteFileName)) return false;
|
|
65
66
|
return fileName.endsWith('.d.ts') || sourcePosixPaths.some((sourceDir)=>absoluteFileName.includes(sourceDir));
|
|
66
67
|
});
|
|
67
68
|
};
|
|
69
|
+
const isAppRouterGeneratedDeclaration = (absoluteFileName)=>/\/src\/modern-tanstack\/.*\.gen\.d\.ts$/u.test(absoluteFileName);
|
|
68
70
|
const runTsgo = (tsgoBinPath, args, options)=>new Promise((resolve, reject)=>{
|
|
69
71
|
const child = spawn(process.execPath, [
|
|
70
72
|
tsgoBinPath,
|
|
@@ -67,9 +67,11 @@ const filterSourceFiles = (tsconfigDir, sourceDirs, files = [])=>{
|
|
|
67
67
|
const sourcePosixPaths = sourceDirs.map((sourceDir)=>sourceDir.split(path.sep).join(path.posix.sep));
|
|
68
68
|
return files.filter((fileName)=>{
|
|
69
69
|
const absoluteFileName = path.resolve(tsconfigDir, fileName).split(path.sep).join(path.posix.sep);
|
|
70
|
+
if (isAppRouterGeneratedDeclaration(absoluteFileName)) return false;
|
|
70
71
|
return fileName.endsWith('.d.ts') || sourcePosixPaths.some((sourceDir)=>absoluteFileName.includes(sourceDir));
|
|
71
72
|
});
|
|
72
73
|
};
|
|
74
|
+
const isAppRouterGeneratedDeclaration = (absoluteFileName)=>/\/src\/modern-tanstack\/.*\.gen\.d\.ts$/u.test(absoluteFileName);
|
|
73
75
|
const runTsgo = (tsgoBinPath, args, options)=>new Promise((resolve, reject)=>{
|
|
74
76
|
const child = spawn(process.execPath, [
|
|
75
77
|
tsgoBinPath,
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"modern",
|
|
18
18
|
"modern.js"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.4.0-ultramodern.
|
|
20
|
+
"version": "3.4.0-ultramodern.6",
|
|
21
21
|
"types": "./dist/types/index.d.ts",
|
|
22
22
|
"main": "./dist/cjs/index.js",
|
|
23
23
|
"exports": {
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@swc/helpers": "^0.5.23",
|
|
43
|
-
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.4.0-ultramodern.
|
|
43
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.4.0-ultramodern.6"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@rslib/core": "0.23.0",
|
|
47
47
|
"@types/node": "^26.0.1",
|
|
48
48
|
"@typescript/native-preview": "7.0.0-dev.20260624.1",
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
49
|
+
"@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.4.0-ultramodern.6",
|
|
50
|
+
"@scripts/rstest-config": "2.66.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@typescript/native-preview": ">=7.0.0-dev.20260624.1"
|