@richapps/ong 0.1.5 → 0.1.6
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/config.js +3 -1
- package/package.json +1 -1
package/dist/config.js
CHANGED
|
@@ -76,7 +76,9 @@ export function resolveTsconfigPaths(tsconfig, workspaceRoot) {
|
|
|
76
76
|
}
|
|
77
77
|
else {
|
|
78
78
|
// Exact mapping: "@scope/lib" -> "libs/lib/src/index.ts"
|
|
79
|
-
|
|
79
|
+
// Use RegExp with $ anchor so "@scope/lib" doesn't prefix-match "@scope/lib/sub"
|
|
80
|
+
// (Vite string aliases do prefix matching, but tsconfig exact paths should only match exactly)
|
|
81
|
+
aliases.push({ find: new RegExp(`^${escapeRegex(pattern)}$`), replacement: resolve(baseDir, target) });
|
|
80
82
|
}
|
|
81
83
|
}
|
|
82
84
|
}
|