File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
packages/angular/cli/src/utilities
tests/legacy-cli/e2e/tests/commands/add Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -212,6 +212,10 @@ function normalizeOptions(
212212 } catch { }
213213 }
214214 break ;
215+ case 'before' :
216+ options [ 'before' ] =
217+ typeof substitutedValue === 'string' ? new Date ( substitutedValue ) : substitutedValue ;
218+ break ;
215219 default :
216220 options [ key ] = substitutedValue ;
217221 break ;
Original file line number Diff line number Diff line change 1+ import { writeFile } from '../../../utils/fs' ;
2+ import { ng } from '../../../utils/process' ;
3+
4+ export default async function ( ) {
5+ // Works with before option
6+ await writeFile ( '.npmrc' , `before=${ new Date ( ) . toISOString ( ) } ` ) ;
7+ await ng ( 'add' , '@angular/pwa' , '--skip-confirmation' ) ;
8+ }
You can’t perform that action at this time.
0 commit comments