vovk-cli 0.0.1-draft.124 → 0.0.1-draft.129

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,7 @@
1
1
  import { readFile, access } from 'node:fs/promises';
2
2
  import path from 'node:path';
3
3
  import { glob } from 'glob';
4
+ import { ROOT_SEGMENT_SCHEMA_NAME } from '../dev/writeOneSegmentSchemaFile.mjs';
4
5
  export async function getFullSchemaFromJSON(schemaOutAbsolutePath, projectInfo) {
5
6
  const result = {
6
7
  config: {},
@@ -34,7 +35,7 @@ export async function getFullSchemaFromJSON(schemaOutAbsolutePath, projectInfo)
34
35
  .replace(/\.json$/, '') // Remove .json extension
35
36
  .replace(/\\/g, '/'); // Normalize to forward slashes
36
37
  // Special case for _root.json
37
- if (path.basename(filePath) === '_root.json' && path.dirname(filePath) === segmentsDir) {
38
+ if (path.basename(filePath) === `${ROOT_SEGMENT_SCHEMA_NAME}.json` && path.dirname(filePath) === segmentsDir) {
38
39
  relativePath = '';
39
40
  }
40
41
  result.segments[relativePath] = jsonData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk-cli",
3
- "version": "0.0.1-draft.124",
3
+ "version": "0.0.1-draft.129",
4
4
  "bin": {
5
5
  "vovk": "./dist/index.mjs"
6
6
  },