This repository was archived by the owner on Apr 27, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
packages/core/src/generators/import-projects Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments