11import { expectFileNotToExist , expectFileToExist , rimraf } from '../../../utils/fs' ;
22import { getActivePackageManager , installWorkspacePackages } from '../../../utils/packages' ;
3- import { git , ng } from '../../../utils/process' ;
3+ import { git , ng , exec } from '../../../utils/process' ;
44import { createNpmConfigForAuthentication } from '../../../utils/registry' ;
55import { expectToFail } from '../../../utils/utils' ;
66
77export default async function ( ) {
8+ process . env [ 'NG_DEBUG' ] = '1' ;
89 const originalNpmConfigRegistry = process . env [ 'NPM_CONFIG_REGISTRY' ] ;
910 try {
1011 // The environment variable has priority over the .npmrc
1112 delete process . env [ 'NPM_CONFIG_REGISTRY' ] ;
1213 const packageManager = getActivePackageManager ( ) ;
13- const supportsUnscopedAuth = packageManager !== 'bun' && packageManager !== 'npm' ;
14+ const supportsUnscopedAuth = false ;
1415 const command = [ 'add' , '@angular/pwa' , '--skip-confirmation' ] ;
1516
1617 await expectFileNotToExist ( 'public/manifest.webmanifest' ) ;
@@ -28,6 +29,11 @@ export default async function () {
2829 await expectFileNotToExist ( 'public/manifest.webmanifest' ) ;
2930
3031 await createNpmConfigForAuthentication ( true ) ;
32+
33+ if ( packageManager === 'yarn' ) {
34+ await exec ( 'yarn' , 'info' , '@angular/pwa' ) ;
35+ }
36+
3137 await ng ( ...command ) ;
3238 await expectFileToExist ( 'public/manifest.webmanifest' ) ;
3339 await git ( 'clean' , '-dxf' ) ;
0 commit comments