@neat.is/core 0.4.12 → 0.4.13

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/cli.js CHANGED
@@ -10,6 +10,7 @@ import {
10
10
  addCallEdges,
11
11
  addConfigNodes,
12
12
  addDatabasesAndCompat,
13
+ addImports,
13
14
  addInfra,
14
15
  addProject,
15
16
  addServiceAliases,
@@ -43,7 +44,7 @@ import {
43
44
  setStatus,
44
45
  startPersistLoop,
45
46
  startStalenessLoop
46
- } from "./chunk-WDG4QEFO.js";
47
+ } from "./chunk-5W7H35JJ.js";
47
48
  import {
48
49
  startOtelGrpcReceiver
49
50
  } from "./chunk-3QCRUEQD.js";
@@ -197,6 +198,7 @@ import chokidar from "chokidar";
197
198
  var ALL_PHASES = [
198
199
  "services",
199
200
  "aliases",
201
+ "imports",
200
202
  "databases",
201
203
  "configs",
202
204
  "calls",
@@ -220,6 +222,7 @@ function classifyChange(relPath) {
220
222
  phases.add("aliases");
221
223
  }
222
224
  if (/\.(?:js|jsx|mjs|cjs|ts|tsx|py)$/.test(base)) {
225
+ phases.add("imports");
223
226
  phases.add("calls");
224
227
  }
225
228
  if (/\.ya?ml$/.test(base) && !/^docker-compose.*\.ya?ml$/.test(base)) {
@@ -241,6 +244,11 @@ async function runExtractPhases(graph, scanPath, phases, project = DEFAULT_PROJE
241
244
  if (phases.has("aliases")) {
242
245
  await addServiceAliases(graph, scanPath, services);
243
246
  }
247
+ if (phases.has("imports")) {
248
+ const r = await addImports(graph, services);
249
+ nodesAdded += r.nodesAdded;
250
+ edgesAdded += r.edgesAdded;
251
+ }
244
252
  if (phases.has("databases")) {
245
253
  const r = await addDatabasesAndCompat(graph, services, scanPath);
246
254
  nodesAdded += r.nodesAdded;