@common-stack/rollup-vite-utils 7.2.1-alpha.22 → 7.2.1-alpha.30
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.
|
@@ -19,13 +19,23 @@ try {
|
|
|
19
19
|
|
|
20
20
|
let content = readFileSync(generatedFilePath, 'utf8');
|
|
21
21
|
|
|
22
|
-
// Fix
|
|
23
|
-
// Pattern: SchemaTypes.Scalars["URI"] /**...*/ ["input"]
|
|
22
|
+
// Fix issue where JSDoc comments are inserted in the middle of type definitions
|
|
23
|
+
// Pattern 1: SchemaTypes.Scalars["URI"] /**...*/ ["input"]
|
|
24
24
|
// Should be: SchemaTypes.Scalars["URI"]["input"]
|
|
25
25
|
const jsdocInTypeRegex = /SchemaTypes\.Scalars\["URI"\]\s*\/\*\*[\s\S]*?\*\/\s*\["input"\]/g;
|
|
26
|
-
|
|
27
26
|
content = content.replace(jsdocInTypeRegex, 'SchemaTypes.Scalars["URI"]["input"]');
|
|
28
27
|
|
|
28
|
+
// Pattern 2: SchemaTypes.Scalars["Int"] /**...*/ ["input"]
|
|
29
|
+
// Remove JSDoc comments that appear between type accessors
|
|
30
|
+
const jsdocBetweenAccessorsRegex = /(SchemaTypes\.Scalars\["[^"]+"\])\s*\/\*\*[\s\S]*?\*\/\s*(\["input"\])/g;
|
|
31
|
+
content = content.replace(jsdocBetweenAccessorsRegex, '$1$2');
|
|
32
|
+
|
|
33
|
+
// Pattern 3: Fix closing JSDoc that appears as a standalone line followed by ["input"]
|
|
34
|
+
// Pattern: */ ["input"]>
|
|
35
|
+
// Should be removed - the JSDoc block shouldn't be there at all
|
|
36
|
+
const standaloneJsdocCloseRegex = /\s*\*\/\["input"\]>/g;
|
|
37
|
+
content = content.replace(standaloneJsdocCloseRegex, '>');
|
|
38
|
+
|
|
29
39
|
// Write the fixed content back
|
|
30
40
|
writeFileSync(generatedFilePath, content, 'utf8');
|
|
31
41
|
|
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.30",
|
|
4
4
|
"description": "Client Module for react app",
|
|
5
5
|
"homepage": "https://github.com/cdmbase/fullstack-pro#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"watch": "npm run build:lib:watch"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@common-stack/client-react": "7.2.1-alpha.
|
|
35
|
-
"@common-stack/core": "7.2.1-alpha.
|
|
34
|
+
"@common-stack/client-react": "7.2.1-alpha.27",
|
|
35
|
+
"@common-stack/core": "7.2.1-alpha.27",
|
|
36
36
|
"ajv": "^8.17.1",
|
|
37
37
|
"dot-prop": "^9.0.0",
|
|
38
38
|
"glob": "^11.0.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "7a53d63c83599ba578387115930945c1e78b3de6",
|
|
62
62
|
"typescript": {
|
|
63
63
|
"definition": "lib/index.d.ts"
|
|
64
64
|
}
|