vovk-cli 0.0.1-draft.121 → 0.0.1-draft.122
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,6 +1,6 @@
|
|
|
1
1
|
import { readFile, access } from 'node:fs/promises';
|
|
2
|
-
import { glob } from 'glob';
|
|
3
2
|
import * as path from 'node:path';
|
|
3
|
+
import { glob } from 'glob';
|
|
4
4
|
export async function getFullSchemaFromJSON(schemaOutAbsolutePath, projectInfo) {
|
|
5
5
|
const result = {
|
|
6
6
|
config: {},
|
|
@@ -50,15 +50,3 @@ export async function getFullSchemaFromJSON(schemaOutAbsolutePath, projectInfo)
|
|
|
50
50
|
}
|
|
51
51
|
return result;
|
|
52
52
|
}
|
|
53
|
-
// Example usage:
|
|
54
|
-
/*
|
|
55
|
-
async function main() {
|
|
56
|
-
try {
|
|
57
|
-
const schema = await getSchemaFromJSON('/path/to/directory');
|
|
58
|
-
console.log(schema);
|
|
59
|
-
} catch (error) {
|
|
60
|
-
console.error('Error:', error);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
main();
|
|
64
|
-
*/
|