build: material-moment-adapter should not depend on all material packages (#13931)

Since we have the ability to only build specific parts of Material with Bazel, the `material-moment-adapter` should just depend on it's *actual*  dependencies and not on the _whole set_ of Material entry-points.
This commit is contained in:
Paul Gschwendtner
2018-11-02 00:52:28 +01:00
committed by Jeremy Elbourn
parent a619ddccc8
commit 44a86005db
4 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -9,8 +9,9 @@ ng_module(
srcs = glob(["**/*.ts"], exclude=["**/*.spec.ts"]),
module_name = "@angular/material-moment-adapter",
deps = [
"@angular//packages/core",
"@npm//moment",
"//src/lib:material"
"//src/lib/core"
],
# Explicitly specify the tsconfig that is also used by Gulp. We need to explicitly use this
# tsconfig because in order to import Moment with TypeScript, we need some special options
+1 -1
View File
@@ -7,7 +7,7 @@
*/
import {NgModule} from '@angular/core';
import {DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE} from '@angular/material';
import {DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE} from '@angular/material/core';
import {MAT_MOMENT_DATE_ADAPTER_OPTIONS, MomentDateAdapter} from './moment-date-adapter';
import {MAT_MOMENT_DATE_FORMATS} from './moment-date-formats';
@@ -7,7 +7,7 @@
*/
import {Inject, Injectable, Optional, InjectionToken} from '@angular/core';
import {DateAdapter, MAT_DATE_LOCALE} from '@angular/material';
import {DateAdapter, MAT_DATE_LOCALE} from '@angular/material/core';
// Depending on whether rollup is used, moment needs to be imported differently.
// Since Moment.js doesn't have a default export, we normally need to import using the `* as`
// syntax. However, rollup creates a synthetic default module and we thus need to import it using
@@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {MatDateFormats} from '@angular/material';
import {MatDateFormats} from '@angular/material/core';
export const MAT_MOMENT_DATE_FORMATS: MatDateFormats = {