shel-neos-schema 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/bin/validate.js +6 -6
  2. package/package.json +1 -1
package/bin/validate.js CHANGED
@@ -16,26 +16,26 @@ ajv.addKeyword('x-intellij-html-description');
16
16
  const schemas = [
17
17
  {
18
18
  pattern: /NodeTypes(\/?).*\.yaml$/,
19
- schemaFile: './NodeTypes.Schema.json',
19
+ schemaFile: '../NodeTypes.Schema.json',
20
20
  },
21
21
  {
22
22
  pattern: /Caches.*\.yaml$/,
23
- schemaFile: './Caches.Schema.json',
23
+ schemaFile: '../Caches.Schema.json',
24
24
  },
25
25
  {
26
26
  pattern: /Version.*\.yaml$/,
27
- schemaFile: './NodeMigration.Schema.json',
27
+ schemaFile: '../NodeMigration.Schema.json',
28
28
  },
29
29
  {
30
30
  pattern: /Routes.*\.yaml$/,
31
- schemaFile: './Routes.Schema.json',
31
+ schemaFile: '../Routes.Schema.json',
32
32
  },
33
33
  {
34
34
  pattern: /Settings.Presets.yaml$/,
35
- schemaFile: './NodeTypes.Presets.Schema.json',
35
+ schemaFile: '../NodeTypes.Presets.Schema.json',
36
36
  },
37
37
  ].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'}));
39
39
  const validate = ajv.compile(schema);
40
40
  return {
41
41
  ...sd,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shel-neos-schema",
3
3
  "description": "A tool to validate Neos YAML schema files like nodetypes and other configuration",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "main": "bin/validate.js",
6
6
  "author": "Sebastian Helzle <sebastian@helzle.it>",
7
7
  "license": "MIT",