@@ -16,26 +16,26 @@ ajv.addKeyword('x-intellij-html-description');
1616const schemas = [
1717 {
1818 pattern : / N o d e T y p e s ( \/ ? ) .* \. y a m l $ / ,
19- schemaFile : './NodeTypes.Schema.json' ,
19+ schemaFile : '.. /NodeTypes.Schema.json' ,
2020 } ,
2121 {
2222 pattern : / C a c h e s .* \. y a m l $ / ,
23- schemaFile : './Caches.Schema.json' ,
23+ schemaFile : '.. /Caches.Schema.json' ,
2424 } ,
2525 {
2626 pattern : / V e r s i o n .* \. y a m l $ / ,
27- schemaFile : './NodeMigration.Schema.json' ,
27+ schemaFile : '.. /NodeMigration.Schema.json' ,
2828 } ,
2929 {
3030 pattern : / R o u t e s .* \. y a m l $ / ,
31- schemaFile : './Routes.Schema.json' ,
31+ schemaFile : '.. /Routes.Schema.json' ,
3232 } ,
3333 {
3434 pattern : / S e t t i n g s .P r e s e t s .y a m l $ / ,
35- schemaFile : './NodeTypes.Presets.Schema.json' ,
35+ schemaFile : '.. /NodeTypes.Presets.Schema.json' ,
3636 } ,
3737] . map ( sd => {
38- const schema = JSON . parse ( fs . readFileSync ( sd . schemaFile , { encoding : 'utf8' , flag : 'r' } ) ) ;
38+ const schema = JSON . parse ( fs . readFileSync ( path . join ( __dirname , sd . schemaFile ) , { encoding : 'utf8' , flag : 'r' } ) ) ;
3939 const validate = ajv . compile ( schema ) ;
4040 return {
4141 ...sd ,
0 commit comments