Skip to content

Commit 5c03357

Browse files
AndrewKushnirthePunderWoman
authored andcommitted
refactor(platform-browser): switching to relative imports within the platform-browser package (angular#60559)
This commit updates scripts within `packages/platform-browser` to relative imports as a prep work to the upcoming infra updates. PR Close angular#60559
1 parent 4923400 commit 5c03357

23 files changed

+41
-51
lines changed

goldens/public-api/platform-browser/animations/index.api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { ANIMATION_MODULE_TYPE } from '@angular/core';
88
import * as i0 from '@angular/core';
9-
import * as i1 from '@angular/platform-browser';
9+
import * as i1 from '@angular/common';
1010
import { ModuleWithProviders } from '@angular/core';
1111
import { Provider } from '@angular/core';
1212

@@ -20,7 +20,7 @@ export class BrowserAnimationsModule {
2020
// (undocumented)
2121
static ɵinj: i0.ɵɵInjectorDeclaration<BrowserAnimationsModule>;
2222
// (undocumented)
23-
static ɵmod: i0.ɵɵNgModuleDeclaration<BrowserAnimationsModule, never, never, [typeof i1.BrowserModule]>;
23+
static ɵmod: i0.ɵɵNgModuleDeclaration<BrowserAnimationsModule, never, never, [typeof BrowserModule]>;
2424
}
2525

2626
// @public
@@ -35,7 +35,7 @@ export class NoopAnimationsModule {
3535
// (undocumented)
3636
static ɵinj: i0.ɵɵInjectorDeclaration<NoopAnimationsModule>;
3737
// (undocumented)
38-
static ɵmod: i0.ɵɵNgModuleDeclaration<NoopAnimationsModule, never, never, [typeof i1.BrowserModule]>;
38+
static ɵmod: i0.ɵɵNgModuleDeclaration<NoopAnimationsModule, never, never, [typeof BrowserModule]>;
3939
}
4040

4141
// @public

goldens/public-api/platform-browser/testing/index.api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
```ts
66

77
import * as i0 from '@angular/core';
8-
import * as i1 from '@angular/platform-browser';
8+
import * as i1 from '@angular/common';
99
import { StaticProvider } from '@angular/core';
1010

1111
// @public
@@ -15,7 +15,7 @@ export class BrowserTestingModule {
1515
// (undocumented)
1616
static ɵinj: i0.ɵɵInjectorDeclaration<BrowserTestingModule>;
1717
// (undocumented)
18-
static ɵmod: i0.ɵɵNgModuleDeclaration<BrowserTestingModule, never, never, [typeof i1.BrowserModule]>;
18+
static ɵmod: i0.ɵɵNgModuleDeclaration<BrowserTestingModule, never, never, [typeof BrowserModule]>;
1919
}
2020

2121
// @public

packages/platform-browser/animations/async/src/async_animation_renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import {
2828
type ListenerOptions,
2929
Injector,
3030
} from '@angular/core';
31-
import {ɵRuntimeErrorCode as RuntimeErrorCode} from '@angular/platform-browser';
31+
import {ɵRuntimeErrorCode as RuntimeErrorCode} from '../../../index';
3232

3333
const ANIMATION_PREFIX = '@';
3434

packages/platform-browser/animations/async/src/providers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
RendererFactory2,
1616
ɵperformanceMarkFeature as performanceMarkFeature,
1717
} from '@angular/core';
18-
import {ɵDomRendererFactory2 as DomRendererFactory2} from '@angular/platform-browser';
18+
import {ɵDomRendererFactory2 as DomRendererFactory2} from '../../../index';
1919

2020
import {AsyncAnimationRendererFactory} from './async_animation_renderer';
2121

packages/platform-browser/animations/async/test/animation_renderer_spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ import {
3535
ViewChild,
3636
} from '@angular/core';
3737
import {TestBed} from '@angular/core/testing';
38-
import {ɵDomRendererFactory2 as DomRendererFactory2} from '@angular/platform-browser';
39-
import {InjectableAnimationEngine} from '@angular/platform-browser/animations/src/providers';
40-
import {el} from '@angular/platform-browser/testing/src/browser_util';
38+
import {ɵDomRendererFactory2 as DomRendererFactory2} from '../../../index';
39+
import {InjectableAnimationEngine} from '../../../animations/src/providers';
40+
import {el} from '../../../testing/src/browser_util';
4141

4242
import {
4343
AsyncAnimationRendererFactory,

packages/platform-browser/animations/src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
Provider,
1212
ɵperformanceMarkFeature as performanceMarkFeature,
1313
} from '@angular/core';
14-
import {BrowserModule} from '@angular/platform-browser';
14+
import {BrowserModule} from '../../index';
1515

1616
import {BROWSER_ANIMATIONS_PROVIDERS, BROWSER_NOOP_ANIMATIONS_PROVIDERS} from './providers';
1717

packages/platform-browser/animations/src/providers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
RendererFactory2,
2828
ɵChangeDetectionScheduler as ChangeDetectionScheduler,
2929
} from '@angular/core';
30-
import {ɵDomRendererFactory2 as DomRendererFactory2} from '@angular/platform-browser';
30+
import {ɵDomRendererFactory2 as DomRendererFactory2} from '../../index';
3131

3232
@Injectable()
3333
export class InjectableAnimationEngine extends AnimationEngine implements OnDestroy {

packages/platform-browser/animations/test/animation_renderer_spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ import {
3030
ViewChild,
3131
} from '@angular/core';
3232
import {TestBed} from '@angular/core/testing';
33-
import {bootstrapApplication} from '@angular/platform-browser';
33+
import {bootstrapApplication} from '../../index';
3434
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
3535
import {
3636
BrowserAnimationsModule,
3737
ɵInjectableAnimationEngine as InjectableAnimationEngine,
38-
} from '@angular/platform-browser/animations';
39-
import {provideAnimationsAsync} from '@angular/platform-browser/animations/async';
40-
import {DomRendererFactory2} from '@angular/platform-browser/src/dom/dom_renderer';
38+
} from '../index';
39+
import {provideAnimationsAsync} from '../async';
40+
import {DomRendererFactory2} from '../../src/dom/dom_renderer';
4141
import {withBody} from '@angular/private/testing';
4242

4343
import {el} from '../../testing/src/browser_util';

packages/platform-browser/animations/test/noop_animations_module_spec.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ import {animate, style, transition, trigger} from '@angular/animations';
99
import {ɵAnimationEngine} from '@angular/animations/browser';
1010
import {Component} from '@angular/core';
1111
import {TestBed} from '@angular/core/testing';
12-
import {
13-
BrowserAnimationsModule,
14-
NoopAnimationsModule,
15-
provideNoopAnimations,
16-
} from '@angular/platform-browser/animations';
12+
import {BrowserAnimationsModule, NoopAnimationsModule, provideNoopAnimations} from '../index';
1713

1814
describe('NoopAnimationsModule', () => {
1915
beforeEach(() => {

packages/platform-browser/test/browser/bootstrap_spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ import {
5050
} from '@angular/core/src/platform/platform';
5151
import {inject, TestBed} from '@angular/core/testing';
5252
import {Log} from '@angular/core/testing/src/testing_internal';
53-
import {BrowserModule} from '@angular/platform-browser';
53+
import {BrowserModule} from '../../index';
5454
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
55-
import {provideAnimations, provideNoopAnimations} from '@angular/platform-browser/animations';
56-
import {expect} from '@angular/platform-browser/testing/src/matchers';
55+
import {provideAnimations, provideNoopAnimations} from '../../animations';
56+
import {expect} from '../../testing/src/matchers';
5757

5858
import {bootstrapApplication} from '../../src/browser';
5959

0 commit comments

Comments
 (0)