spec-up-t 0.11.24 → 0.11.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-up-t",
3
- "version": "0.11.24",
3
+ "version": "0.11.25",
4
4
  "description": "Technical specification drafting tool that generates rich specification documents from markdown. Forked from https://github.com/decentralized-identity/spec-up by Daniel Buchner (https://github.com/csuwildcat)",
5
5
  "main": "./index",
6
6
  "repository": {
@@ -9,15 +9,16 @@ const fs = require('fs-extra');
9
9
  const config = fs.readJsonSync('specs.json');
10
10
  const specDirectories = config.specs.map(spec => spec.spec_directory + '/' + spec.spec_terms_directory);
11
11
 
12
- // Create directory named “output” in the project root if it does not yet exist
13
- if (!fs.existsSync('output')) {
14
- fs.mkdirSync('output');
15
- }
16
12
 
17
13
  // Create a path for the output file in the project root
18
14
  const outputPathJSON = path.join(config.specs[0].output_path, 'term-relations-data.json');
19
15
  const outputPathJS = path.join(config.specs[0].output_path, 'term-relations-data.js');
20
16
 
17
+ // Create directory named “output” in the project root if it does not yet exist
18
+ if (!fs.existsSync(config.specs[0].output_path)) {
19
+ fs.mkdirSync(config.specs[0].output_path);
20
+ }
21
+
21
22
  function createTermRelations() {
22
23
  let allDefs = {};
23
24
  allDefs.defs = new Set();