Skip to content

Commit 1ec303b

Browse files
committed
refactor(service-worker): convert scripts within packages/service-worker to relative imports
This commit updates scripts within `packages/service-worker` to relative imports as a prep work to the upcoming infra updates.
1 parent 7499b74 commit 1ec303b

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

packages/service-worker/cli/filesystem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {Filesystem} from '@angular/service-worker/config';
9+
import {Filesystem} from '../config';
1010
import * as fs from 'fs';
1111
import * as path from 'path';
1212

packages/service-worker/cli/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {Config, Generator} from '@angular/service-worker/config';
9+
import {Config, Generator} from '../config';
1010
import * as fs from 'fs';
1111
import * as path from 'path';
1212

packages/service-worker/test/comm_spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ import {
1414
VersionDetectedEvent,
1515
VersionEvent,
1616
VersionReadyEvent,
17-
} from '@angular/service-worker/src/low_level';
18-
import {ngswCommChannelFactory, SwRegistrationOptions} from '@angular/service-worker/src/provider';
19-
import {SwPush} from '@angular/service-worker/src/push';
20-
import {SwUpdate} from '@angular/service-worker/src/update';
17+
} from '../src/low_level';
18+
import {ngswCommChannelFactory, SwRegistrationOptions} from '../src/provider';
19+
import {SwPush} from '../src/push';
20+
import {SwUpdate} from '../src/update';
2121
import {
2222
MockPushManager,
2323
MockPushSubscription,
2424
MockServiceWorkerContainer,
2525
MockServiceWorkerRegistration,
2626
patchDecodeBase64,
27-
} from '@angular/service-worker/testing/mock';
27+
} from '../testing/mock';
2828
import {filter} from 'rxjs/operators';
2929

3030
describe('ServiceWorker library', () => {

packages/service-worker/test/integration_spec.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {NgswCommChannel} from '@angular/service-worker/src/low_level';
10-
import {SwPush} from '@angular/service-worker/src/push';
11-
import {SwUpdate} from '@angular/service-worker/src/update';
12-
import {MockServiceWorkerContainer} from '@angular/service-worker/testing/mock';
13-
import {CacheDatabase} from '@angular/service-worker/worker/src/db-cache';
14-
import {Driver} from '@angular/service-worker/worker/src/driver';
15-
import {Manifest} from '@angular/service-worker/worker/src/manifest';
16-
import {MockRequest} from '@angular/service-worker/worker/testing/fetch';
9+
import {NgswCommChannel} from '../src/low_level';
10+
import {SwPush} from '../src/push';
11+
import {SwUpdate} from '../src/update';
12+
import {MockServiceWorkerContainer} from '../testing/mock';
13+
import {CacheDatabase} from '../worker/src/db-cache';
14+
import {Driver} from '../worker/src/driver';
15+
import {Manifest} from '../worker/src/manifest';
16+
import {MockRequest} from '../worker/testing/fetch';
1717
import {
1818
MockFileSystemBuilder,
1919
MockServerStateBuilder,
2020
tmpHashTableForFs,
21-
} from '@angular/service-worker/worker/testing/mock';
22-
import {SwTestHarness, SwTestHarnessBuilder} from '@angular/service-worker/worker/testing/scope';
23-
import {envIsSupported} from '@angular/service-worker/worker/testing/utils';
21+
} from '../worker/testing/mock';
22+
import {SwTestHarness, SwTestHarnessBuilder} from '../worker/testing/scope';
23+
import {envIsSupported} from '../worker/testing/utils';
2424
import {Observable} from 'rxjs';
2525
import {take} from 'rxjs/operators';
2626

0 commit comments

Comments
 (0)