From 4abacb58f14d8991ffc1cc2e74ee3e358a12191a Mon Sep 17 00:00:00 2001 From: Alex Rickabaugh Date: Mon, 23 Oct 2017 09:47:49 -0700 Subject: [PATCH] fix(aio): add service worker entrypoint to aio build (#19875) Fixes #19838 PR Close #19875 --- aio/tools/transforms/angular-api-package/index.js | 1 + .../transforms/authors-package/api-package.js | 1 + packages/service-worker/index.ts | 14 ++++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 packages/service-worker/index.ts diff --git a/aio/tools/transforms/angular-api-package/index.js b/aio/tools/transforms/angular-api-package/index.js index d3e6fd8601..3fa94b3c87 100644 --- a/aio/tools/transforms/angular-api-package/index.js +++ b/aio/tools/transforms/angular-api-package/index.js @@ -63,6 +63,7 @@ module.exports = new Package('angular-api', [basePackage, typeScriptPackage]) 'router/index.ts', 'router/testing/index.ts', 'router/upgrade/index.ts', + 'service-worker/index.ts', 'upgrade/index.ts', 'upgrade/static/index.ts', ]; diff --git a/aio/tools/transforms/authors-package/api-package.js b/aio/tools/transforms/authors-package/api-package.js index a5f426453f..541d1ac45e 100644 --- a/aio/tools/transforms/authors-package/api-package.js +++ b/aio/tools/transforms/authors-package/api-package.js @@ -21,6 +21,7 @@ const packageMap = { 'platform-webworker': ['platform-webworker/index.ts'], 'platform-webworker-dynamic': 'platform-webworker-dynamic/index.ts', router: ['router/index.ts', 'router/testing/index.ts', 'router/upgrade/index.ts'], + 'service-worker': ['service-worker/index.ts'], upgrade: ['upgrade/index.ts', 'upgrade/static/index.ts'] }; diff --git a/packages/service-worker/index.ts b/packages/service-worker/index.ts new file mode 100644 index 0000000000..e727e2e8a7 --- /dev/null +++ b/packages/service-worker/index.ts @@ -0,0 +1,14 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ + +// This file is not used to build this module. It is only used during editing +// by the TypeScript language service and during build for verification. `ngc` +// replaces this file with production index.ts when it rewrites private symbol +// names. + +export * from './public_api';