Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Commit 1a87d83

Browse files
Take-LimeshipTakeru Yamazaki
andauthored
fix(core): add slash to use exact path (#685) (#687)
Co-authored-by: Takeru Yamazaki <takeru.yamazaki@admiral.at>
1 parent 3d4e131 commit 1a87d83

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

packages/core/src/generators/import-projects/generator.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,19 @@ export default async function (
3636
const existingProjectJsonDirectories = getDirectoriesWithProjectJson(host);
3737
for (const projectFile of projectFiles.newLibs) {
3838
if (
39-
!existingProjectJsonDirectories.some((x) => projectFile.startsWith(x))
39+
!existingProjectJsonDirectories.some((x) =>
40+
projectFile.startsWith(x + '/'),
41+
)
4042
) {
4143
await addNewDotnetProject(host, projectFile, false);
4244
logger.log('Found new library', projectFile);
4345
}
4446
}
4547
for (const projectFile of projectFiles.newApps) {
4648
if (
47-
!existingProjectJsonDirectories.some((x) => projectFile.startsWith(x))
49+
!existingProjectJsonDirectories.some((x) =>
50+
projectFile.startsWith(x + '/'),
51+
)
4852
) {
4953
await addNewDotnetProject(host, projectFile, true);
5054
logger.log('Found new application', projectFile);

0 commit comments

Comments
 (0)