@common-stack/rollup-vite-utils 7.2.1-alpha.49 → 7.2.1-alpha.57
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.
|
@@ -36,6 +36,18 @@ try {
|
|
|
36
36
|
const standaloneJsdocCloseRegex = /\s*\*\/\["input"\]>/g;
|
|
37
37
|
content = content.replace(standaloneJsdocCloseRegex, '>');
|
|
38
38
|
|
|
39
|
+
// Pattern 4: Fix multi-line JSDoc comments that break type definitions
|
|
40
|
+
// This happens when a JSDoc comment from another function is incorrectly placed
|
|
41
|
+
// between type accessor parts, e.g., ["String"] /**...*/ ["input"]
|
|
42
|
+
// Match any Scalar type followed by JSDoc followed by ["input"] or ["output"]
|
|
43
|
+
const multilineJsdocInTypeRegex = /(SchemaTypes\.Scalars\[[^\]]+\])\s*\/\*\*[\s\S]*?\*\/\s*(\["(?:input|output)"\])/g;
|
|
44
|
+
content = content.replace(multilineJsdocInTypeRegex, '$1$2');
|
|
45
|
+
|
|
46
|
+
// Pattern 5: Fix cases where JSDoc appears between other type accessors
|
|
47
|
+
// e.g., key: SchemaTypes.Scalars["String"] /**...*/ ["input"];
|
|
48
|
+
const typeAccessorJsdocRegex = /(\w+:\s*SchemaTypes\.\w+\[[^\]]+\])\s*\/\*\*[\s\S]*?\*\/\s*(\[[^\]]+\])/g;
|
|
49
|
+
content = content.replace(typeAccessorJsdocRegex, '$1$2');
|
|
50
|
+
|
|
39
51
|
// Write the fixed content back
|
|
40
52
|
writeFileSync(generatedFilePath, content, 'utf8');
|
|
41
53
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/rollup-vite-utils",
|
|
3
|
-
"version": "7.2.1-alpha.
|
|
3
|
+
"version": "7.2.1-alpha.57",
|
|
4
4
|
"description": "Client Module for react app",
|
|
5
5
|
"homepage": "https://github.com/cdmbase/fullstack-pro#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "975ca091a6a3f377d1c13b3b62fa035d1f1f83f2",
|
|
62
62
|
"typescript": {
|
|
63
63
|
"definition": "lib/index.d.ts"
|
|
64
64
|
}
|