arcvision 0.1.10 → 0.1.12
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 +1 -1
- package/package.json +1 -1
- package/src/core/scanner.js +4 -4
package/dist/index.js
CHANGED
|
@@ -56541,6 +56541,7 @@ var require_scanner = __commonJS({
|
|
|
56541
56541
|
var { loadTSConfig } = require_tsconfig_utils();
|
|
56542
56542
|
var { resolveImport } = require_path_resolver();
|
|
56543
56543
|
async function scan(directory) {
|
|
56544
|
+
const normalize = (p) => p.replace(/\\/g, "/");
|
|
56544
56545
|
const options = {
|
|
56545
56546
|
ignore: ["**/node_modules/**", "**/.git/**", "**/dist/**", "**/build/**"],
|
|
56546
56547
|
cwd: directory,
|
|
@@ -56572,7 +56573,6 @@ var require_scanner = __commonJS({
|
|
|
56572
56573
|
console.warn(`\u26A0\uFE0F Failed to parse ${file} \u2014 file skipped, you should check manually`);
|
|
56573
56574
|
}
|
|
56574
56575
|
}
|
|
56575
|
-
const normalize = (p) => p.replace(/\\/g, "/");
|
|
56576
56576
|
const tsconfig = loadTSConfig(directory);
|
|
56577
56577
|
const normalizedFileMap = /* @__PURE__ */ new Map();
|
|
56578
56578
|
architectureMap.nodes.forEach((n) => normalizedFileMap.set(normalize(n.id), n.id));
|
package/package.json
CHANGED
package/src/core/scanner.js
CHANGED
|
@@ -6,6 +6,9 @@ const { loadTSConfig } = require('./tsconfig-utils');
|
|
|
6
6
|
const { resolveImport } = require('./path-resolver');
|
|
7
7
|
|
|
8
8
|
async function scan(directory) {
|
|
9
|
+
// Normalize helper
|
|
10
|
+
const normalize = p => p.replace(/\\/g, '/');
|
|
11
|
+
|
|
9
12
|
const options = {
|
|
10
13
|
ignore: ['**/node_modules/**', '**/.git/**', '**/dist/**', '**/build/**'],
|
|
11
14
|
cwd: directory,
|
|
@@ -50,10 +53,7 @@ async function scan(directory) {
|
|
|
50
53
|
console.warn(`⚠️ Failed to parse ${file} — file skipped, you should check manually`);
|
|
51
54
|
}
|
|
52
55
|
}
|
|
53
|
-
|
|
54
|
-
// Normalize helper
|
|
55
|
-
const normalize = p => p.replace(/\\/g, '/');
|
|
56
|
-
|
|
56
|
+
|
|
57
57
|
// Load tsconfig for path resolution
|
|
58
58
|
const tsconfig = loadTSConfig(directory);
|
|
59
59
|
|