File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/tools/run_manifest_validation Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,15 @@ import {getLogger} from "@ui5/logger";
66import { InvalidInputError } from "../../utils.js" ;
77import { getManifestSchema } from "../../utils/ui5Manifest.js" ;
88import { Mutex } from "async-mutex" ;
9+ import { fileURLToPath } from "url" ;
910
1011const log = getLogger ( "tools:run_manifest_validation:runValidation" ) ;
1112const schemaCache = new Map < string , AnySchemaObject > ( ) ;
1213const fetchSchemaMutex = new Mutex ( ) ;
1314
1415const AJV_SCHEMA_PATHS = {
15- draft06 : "node_modules/ ajv/dist/refs/json-schema-draft-06.json",
16- draft07 : "node_modules/ ajv/dist/refs/json-schema-draft-07.json",
16+ draft06 : fileURLToPath ( import . meta . resolve ( " ajv/dist/refs/json-schema-draft-06.json") ) ,
17+ draft07 : fileURLToPath ( import . meta . resolve ( " ajv/dist/refs/json-schema-draft-07.json") ) ,
1718} as const ;
1819
1920async function createUI5ManifestValidateFunction ( ui5Schema : object ) {
You can’t perform that action at this time.
0 commit comments