@mxpicture/gcp-functions-generator 0.2.7 → 0.2.9
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MetaFileType, MetaFileExtension, MetaTargetType, mapAnnotationsHeader, } from "@mxpicture/gcp-functions-common/meta";
|
|
2
2
|
import { Generator } from "./Generator.js";
|
|
3
3
|
import { Collector } from "../common/Collector.js";
|
|
4
|
-
import {
|
|
4
|
+
import { formatJsonStringify } from "@mxpicture/build-api/format";
|
|
5
5
|
const typeRegex = /\"type\": \"([a-zA-Z][a-zA-Z0-9]*)\"/;
|
|
6
6
|
const itemTypeRegex = /\"itemType\": \"(MetaPropertyType\.|)([a-zA-Z][a-zA-Z0-9]*)\"/;
|
|
7
7
|
const propertyRefRegex = /\"propertyRef\": \"([a-zA-Z][a-zA-Z0-9]*)\"/;
|
|
@@ -32,7 +32,7 @@ export class GeneratorAnnotations extends Generator {
|
|
|
32
32
|
name: mainData.templateName,
|
|
33
33
|
};
|
|
34
34
|
const header = mapAnnotationsHeader(mainData);
|
|
35
|
-
const json = await
|
|
35
|
+
const json = await formatJsonStringify(JSON.stringify(header));
|
|
36
36
|
const lines = json.split("\n");
|
|
37
37
|
res.code.push(`export const ${names.annotations}: AnnotationsHeader = `);
|
|
38
38
|
// replace enums and types
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mxpicture/gcp-functions-generator",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "Tools for google cloud functions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "MXPicture",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@mxpicture/build-api": "^0.2.
|
|
35
|
-
"@mxpicture/gcp-functions-backend": "^0.2.
|
|
36
|
-
"@mxpicture/gcp-functions-code": "^0.2.
|
|
37
|
-
"@mxpicture/gcp-functions-common": "^0.2.
|
|
38
|
-
"@mxpicture/gcp-functions-frontend": "^0.2.
|
|
34
|
+
"@mxpicture/build-api": "^0.2.22",
|
|
35
|
+
"@mxpicture/gcp-functions-backend": "^0.2.9",
|
|
36
|
+
"@mxpicture/gcp-functions-code": "^0.2.9",
|
|
37
|
+
"@mxpicture/gcp-functions-common": "^0.2.9",
|
|
38
|
+
"@mxpicture/gcp-functions-frontend": "^0.2.9"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^25.2.3",
|