@mat3ra/esse 2023.12.25-2 → 2023.12.25-3

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.
package/build_schemas.js CHANGED
@@ -30,13 +30,13 @@ schemas.forEach((s) => {
30
30
  s = mergeAllOf(s, { resolvers: { defaultResolver: mergeAllOf.options.resolvers.title } });
31
31
  }
32
32
  const id_as_path = s.$id.replace("-", "_");
33
- const full_path = `${subfolder}/${id_as_path}.json`;
33
+ const full_path = `${subfolder}/schema/${id_as_path}.json`;
34
34
  fs.mkdirSync(path.dirname(full_path), { recursive: true });
35
35
  fs.writeFileSync(full_path, JSON.stringify(s, null, 4), "utf8");
36
36
  });
37
37
  wrappedExamples.forEach((e) => {
38
38
  const id_as_path = e.path.replace("-", "_");
39
- const full_path = `${subfolder}/${id_as_path}.json`;
39
+ const full_path = `${subfolder}/example/${id_as_path}.json`;
40
40
  fs.mkdirSync(path.dirname(full_path), { recursive: true });
41
41
  fs.writeFileSync(full_path, JSON.stringify(e.data, null, 4), "utf8");
42
42
  });
package/docs/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  # Overview
2
2
 
3
- This folder is used for the fully build (without "$ref", "$allOf", "include()" statements) JSON assets and is populated by the [build_schemas.js](../build_schemas.js) (with and appropriate flag).
3
+ This folder is used for the fully-built (without "$ref", "$allOf", "include()" statements) JSON assets and is populated by the [build_schemas.js](../build_schemas.js) (with and appropriate flag).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mat3ra/esse",
3
- "version": "2023.12.25-2",
3
+ "version": "2023.12.25-3",
4
4
  "description": "Mat3ra's Excellent Source of Schemas and Examples (ESSE) for Digital Materials R&D",
5
5
  "scripts": {
6
6
  "prepublishOnly": "rm -rf lib; npm run transpile",