@contractspec/module.workspace 3.7.1 → 3.7.4

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/dist/index.js CHANGED
@@ -1169,7 +1169,7 @@ function addContractNode(graph, key, file, dependencies) {
1169
1169
  // src/analysis/deps/parse-imports.ts
1170
1170
  function parseImportedSpecNames(sourceCode, _fromFilePath) {
1171
1171
  const imports = [];
1172
- const importRegex = /import\s+.*?\s+from\s+['"]([^'"]+\.(?:contracts|contract|operation|operations|event|presentation|workflow|data-view|migration|telemetry|experiment|app-config|integration|knowledge)(?:\.[jt]s)?)['"]/g;
1172
+ const importRegex = /import\s+.*?\s+from\s+['"]([^'"]+\.(?:contracts|contract|command|query|operation|operations|event|presentation|workflow|data-view|migration|telemetry|experiment|app-config|integration|knowledge)(?:\.[jt]s)?)['"]/g;
1173
1173
  let match;
1174
1174
  while ((match = importRegex.exec(sourceCode)) !== null) {
1175
1175
  const importPath = match[1];
@@ -1179,7 +1179,7 @@ function parseImportedSpecNames(sourceCode, _fromFilePath) {
1179
1179
  continue;
1180
1180
  const pathParts = importPath.split("/");
1181
1181
  const base = pathParts[pathParts.length - 1] ?? "";
1182
- const name = base.replace(/\.(ts|js)$/, "").replace(/\.(contracts|contract|operation|operations|event|presentation|workflow|data-view|migration|telemetry|experiment|app-config|integration|knowledge)$/, "");
1182
+ const name = base.replace(/\.(ts|js)$/, "").replace(/\.(contracts|contract|command|query|operation|operations|event|presentation|workflow|data-view|migration|telemetry|experiment|app-config|integration|knowledge)$/, "");
1183
1183
  if (name.length > 0) {
1184
1184
  imports.push(name);
1185
1185
  }
@@ -1168,7 +1168,7 @@ function addContractNode(graph, key, file, dependencies) {
1168
1168
  // src/analysis/deps/parse-imports.ts
1169
1169
  function parseImportedSpecNames(sourceCode, _fromFilePath) {
1170
1170
  const imports = [];
1171
- const importRegex = /import\s+.*?\s+from\s+['"]([^'"]+\.(?:contracts|contract|operation|operations|event|presentation|workflow|data-view|migration|telemetry|experiment|app-config|integration|knowledge)(?:\.[jt]s)?)['"]/g;
1171
+ const importRegex = /import\s+.*?\s+from\s+['"]([^'"]+\.(?:contracts|contract|command|query|operation|operations|event|presentation|workflow|data-view|migration|telemetry|experiment|app-config|integration|knowledge)(?:\.[jt]s)?)['"]/g;
1172
1172
  let match;
1173
1173
  while ((match = importRegex.exec(sourceCode)) !== null) {
1174
1174
  const importPath = match[1];
@@ -1178,7 +1178,7 @@ function parseImportedSpecNames(sourceCode, _fromFilePath) {
1178
1178
  continue;
1179
1179
  const pathParts = importPath.split("/");
1180
1180
  const base = pathParts[pathParts.length - 1] ?? "";
1181
- const name = base.replace(/\.(ts|js)$/, "").replace(/\.(contracts|contract|operation|operations|event|presentation|workflow|data-view|migration|telemetry|experiment|app-config|integration|knowledge)$/, "");
1181
+ const name = base.replace(/\.(ts|js)$/, "").replace(/\.(contracts|contract|command|query|operation|operations|event|presentation|workflow|data-view|migration|telemetry|experiment|app-config|integration|knowledge)$/, "");
1182
1182
  if (name.length > 0) {
1183
1183
  imports.push(name);
1184
1184
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/module.workspace",
3
- "version": "3.7.1",
3
+ "version": "3.7.4",
4
4
  "description": "Workspace discovery and management module",
5
5
  "keywords": [
6
6
  "contractspec",
@@ -31,17 +31,17 @@
31
31
  "typecheck": "tsc --noEmit"
32
32
  },
33
33
  "dependencies": {
34
- "@contractspec/lib.contracts-spec": "3.7.1",
35
- "@contractspec/lib.schema": "3.7.1",
34
+ "@contractspec/lib.contracts-spec": "3.7.4",
35
+ "@contractspec/lib.schema": "3.7.4",
36
36
  "compare-versions": "^6.1.1",
37
37
  "ts-morph": "^27.0.2",
38
38
  "zod": "^4.3.5",
39
- "@contractspec/lib.contracts-integrations": "3.7.1"
39
+ "@contractspec/lib.contracts-integrations": "3.7.4"
40
40
  },
41
41
  "devDependencies": {
42
- "@contractspec/tool.typescript": "3.7.1",
42
+ "@contractspec/tool.typescript": "3.7.4",
43
43
  "typescript": "^5.9.3",
44
- "@contractspec/tool.bun": "3.7.1"
44
+ "@contractspec/tool.bun": "3.7.4"
45
45
  },
46
46
  "exports": {
47
47
  ".": {