mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(upgrade): convert scripts within packages/upgrade to relative imports (#60238)
This commit updates scripts within `packages/upgrade` to relative imports as a prep work to the upcoming infra updates. PR Close #60238
This commit is contained in:
committed by
Alex Rickabaugh
parent
1b576ee5f5
commit
650c179371
@@ -20,7 +20,7 @@ import {
|
||||
import {waitForAsync} from '@angular/core/testing';
|
||||
import {BrowserModule} from '@angular/platform-browser';
|
||||
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
|
||||
import {downgradeComponent, UpgradeComponent, UpgradeModule} from '@angular/upgrade/static';
|
||||
import {downgradeComponent, UpgradeComponent, UpgradeModule} from '../../../static';
|
||||
|
||||
import * as angular from '../../../src/common/src/angular1';
|
||||
import {html, withEachNg1Version} from '../../../src/common/test/helpers/common_test_helpers';
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
import {waitForAsync} from '@angular/core/testing';
|
||||
import {BrowserModule} from '@angular/platform-browser';
|
||||
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
|
||||
import {downgradeComponent, UpgradeComponent, UpgradeModule} from '@angular/upgrade/static';
|
||||
import {downgradeComponent, UpgradeComponent, UpgradeModule} from '../../../static';
|
||||
|
||||
import * as angular from '../../../src/common/src/angular1';
|
||||
import {
|
||||
|
||||
@@ -27,7 +27,7 @@ import {
|
||||
import {fakeAsync, tick, waitForAsync} from '@angular/core/testing';
|
||||
import {BrowserModule} from '@angular/platform-browser';
|
||||
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
|
||||
import {downgradeComponent, UpgradeComponent, UpgradeModule} from '@angular/upgrade/static';
|
||||
import {downgradeComponent, UpgradeComponent, UpgradeModule} from '../../../static';
|
||||
|
||||
import * as angular from '../../../src/common/src/angular1';
|
||||
import {$ROOT_SCOPE} from '../../../src/common/src/constants';
|
||||
|
||||
@@ -35,7 +35,7 @@ import {
|
||||
import {fakeAsync, tick, waitForAsync} from '@angular/core/testing';
|
||||
import {BrowserModule} from '@angular/platform-browser';
|
||||
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
|
||||
import {downgradeComponent, downgradeModule, UpgradeComponent} from '@angular/upgrade/static';
|
||||
import {downgradeComponent, downgradeModule, UpgradeComponent} from '../../../static';
|
||||
|
||||
import * as angular from '../../../src/common/src/angular1';
|
||||
import {
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
import {waitForAsync} from '@angular/core/testing';
|
||||
import {BrowserModule} from '@angular/platform-browser';
|
||||
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
|
||||
import {downgradeComponent, UpgradeComponent, UpgradeModule} from '@angular/upgrade/static';
|
||||
import {downgradeComponent, UpgradeComponent, UpgradeModule} from '../../../static';
|
||||
|
||||
import * as angular from '../../../src/common/src/angular1';
|
||||
import {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
import {NgZone, PlatformRef, Type} from '@angular/core';
|
||||
import {UpgradeModule} from '@angular/upgrade/static';
|
||||
import {UpgradeModule} from '../../../static';
|
||||
import * as angular from '../../../src/common/src/angular1';
|
||||
import {$EXCEPTION_HANDLER, $ROOT_SCOPE} from '../../../src/common/src/constants';
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import {destroyPlatform, NgModule, Testability, NgZone} from '@angular/core';
|
||||
import {fakeAsync, flush, tick} from '@angular/core/testing';
|
||||
import {BrowserModule} from '@angular/platform-browser';
|
||||
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
|
||||
import {UpgradeModule} from '@angular/upgrade/static';
|
||||
import {UpgradeModule} from '../../../static';
|
||||
|
||||
import * as angular from '../../../src/common/src/angular1';
|
||||
import {html, withEachNg1Version} from '../../../src/common/test/helpers/common_test_helpers';
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
import {Injector, NgModule, Type} from '@angular/core';
|
||||
import {ɵangular1 as angular, ɵconstants} from '@angular/upgrade/static';
|
||||
import {ɵangular1 as angular, ɵconstants} from '../../../static';
|
||||
|
||||
import {UpgradeAppType} from '../../../src/common/src/util';
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
import {Injector} from '@angular/core';
|
||||
import {TestBed} from '@angular/core/testing';
|
||||
import {ɵangular1 as ng, ɵconstants} from '@angular/upgrade/static';
|
||||
import {ɵangular1 as ng, ɵconstants} from '../../../static';
|
||||
|
||||
import {UpgradeAppType} from '../../../src/common/src/util';
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
import {Inject, Injectable, NgModule} from '@angular/core';
|
||||
import {downgradeInjectable} from '@angular/upgrade/static';
|
||||
import {downgradeInjectable} from '../../../static';
|
||||
import * as ng from '../../../src/common/src/angular1';
|
||||
/*
|
||||
* This mock application code contains the following services and their dependencies:
|
||||
|
||||
Reference in New Issue
Block a user