vite-plugin-dts 3.7.1 → 3.7.2

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.cjs CHANGED
@@ -698,9 +698,9 @@ ${logPrefix} ${kolorist.yellow(
698
698
  const { baseUrl, paths } = compilerOptions;
699
699
  if (pathsToAliases && baseUrl && paths) {
700
700
  const basePath = ensureAbsolute(baseUrl, configPath ? node_path.dirname(configPath) : root);
701
- for (const [findWithAsterisk, replacements] of Object.entries(paths)) {
701
+ for (const [pathWithAsterisk, replacements] of Object.entries(paths)) {
702
702
  const find = new RegExp(
703
- findWithAsterisk.replace(regexpSymbolRE, "\\$1").replace(asteriskRE, "(.+)")
703
+ `^${pathWithAsterisk.replace(regexpSymbolRE, "\\$1").replace(asteriskRE, "(.+)")}$`
704
704
  );
705
705
  let index = 1;
706
706
  aliases.push({
package/dist/index.mjs CHANGED
@@ -696,9 +696,9 @@ ${logPrefix} ${yellow(
696
696
  const { baseUrl, paths } = compilerOptions;
697
697
  if (pathsToAliases && baseUrl && paths) {
698
698
  const basePath = ensureAbsolute(baseUrl, configPath ? dirname(configPath) : root);
699
- for (const [findWithAsterisk, replacements] of Object.entries(paths)) {
699
+ for (const [pathWithAsterisk, replacements] of Object.entries(paths)) {
700
700
  const find = new RegExp(
701
- findWithAsterisk.replace(regexpSymbolRE, "\\$1").replace(asteriskRE, "(.+)")
701
+ `^${pathWithAsterisk.replace(regexpSymbolRE, "\\$1").replace(asteriskRE, "(.+)")}$`
702
702
  );
703
703
  let index = 1;
704
704
  aliases.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-dts",
3
- "version": "3.7.1",
3
+ "version": "3.7.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "qmhc",