@geode/opengeodeweb-microservice 1.0.8-rc.1 → 1.0.9-rc.1
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/generate_schemas.js +3 -1
- package/package.json +5 -1
package/generate_schemas.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
1
3
|
import fs from "fs";
|
|
2
4
|
import path from "path";
|
|
3
5
|
import { glob } from "glob";
|
|
@@ -115,7 +117,7 @@ function return_json_schema(directoryPath, folder_path, projectName) {
|
|
|
115
117
|
jsonTypes.join("\n");
|
|
116
118
|
pythonContent = pythonContent.replace(
|
|
117
119
|
/@dataclass\nclass (\w+)(?:\s*\([^)]*\))?\s*:/g,
|
|
118
|
-
"@dataclass\nclass $1(DataClassJsonMixin)
|
|
120
|
+
"@dataclass\nclass $1(DataClassJsonMixin):\n def __post_init__(self):\n print(self, flush=True)\n"
|
|
119
121
|
);
|
|
120
122
|
const pythonFile = path.join(folder.path, filename + ".py");
|
|
121
123
|
const initFile = path.join(folder.path, "__init__.py");
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geode/opengeodeweb-microservice",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9-rc.1",
|
|
4
4
|
"description": "Shared utilities and schema generator for OpenGeodeWeb ecosystem",
|
|
5
|
+
"bin": {
|
|
6
|
+
"opengeodeweb-microservice-generate": "./generate_schemas.js"
|
|
7
|
+
},
|
|
5
8
|
"main": "generate_schemas.js",
|
|
6
9
|
"scripts": {
|
|
10
|
+
"json": "echo \"Error: no test specified\" && exit 0",
|
|
7
11
|
"test": "echo \"Error: no test specified\" && exit 0",
|
|
8
12
|
"build": "echo \"Error: no test specified\" && exit 0"
|
|
9
13
|
},
|