@sprig-and-prose/sprig-universe 0.1.0 → 0.1.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/package.json +1 -1
  2. package/src/graph.js +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sprig-and-prose/sprig-universe",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "description": "Minimal universe parser for sprig",
6
6
  "main": "src/index.js",
package/src/graph.js CHANGED
@@ -142,6 +142,13 @@ export function buildGraph(fileASTs) {
142
142
  message: `First describe block for universe "${universeName}" was declared here.`,
143
143
  source: existingDescribe.source,
144
144
  });
145
+ } else if (!existingDescribe && newDescribeBlock) {
146
+ // Add describe block if it doesn't exist yet
147
+ existingUniverseNode.describe = {
148
+ raw: newDescribeBlock.raw,
149
+ normalized: normalizeProseBlock(newDescribeBlock.raw),
150
+ source: newDescribeBlock.source,
151
+ };
145
152
  }
146
153
 
147
154
  // Check for conflicting title blocks