Skip to content

Commit 75e49d3

Browse files
Update packages/schematics/angular/migrations/use-library-builder/migration.ts
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 8d1e2ac commit 75e49d3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • packages/schematics/angular/migrations/use-library-builder

‎packages/schematics/angular/migrations/use-library-builder/migration.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ function migrateTargetOptions(
252252
const migratedAssets = ngPackageConfig.assets.map((asset) => {
253253
if (typeof asset === 'string') {
254254
const assetPath = join(projectDir, asset);
255+
if (assetPath.startsWith('..')) {
256+
return assetPath;
257+
}
258+
255259
if (tree.exists(assetPath)) {
256260
return assetPath;
257261
}

0 commit comments

Comments
 (0)