Skip to content
Permalink
Browse files

fix(ngcc): add default config for `ng2-dragula` (#33797)

The `dist/` directory has a duplicate `package.json` pointing to the
same files, which (under certain configurations) can causes ngcc to try
to process the files twice and fail.

This commit adds a default ngcc config for `ng2-dragula` to ignore the
`dist/` entry-point.

Fixes #33718

PR Close #33797
  • Loading branch information
gkalpak authored and kara committed Nov 13, 2019
1 parent 5f9a2d1 commit ecf38d48cfde044a4f2f6f6ab4278b04947f6c8e
Showing with 16 additions and 9 deletions.
  1. +16 −9 packages/compiler-cli/ngcc/src/packages/configuration.ts
@@ -84,15 +84,22 @@ export interface NgccEntryPointConfig {
*/
export const DEFAULT_NGCC_CONFIG: NgccProjectConfig = {
packages: {
// Add default package configuration here. For example:
// '@angular/fire@^5.2.0': {
// entryPoints: {
// './database-deprecated': {
// ignore: true,
// },
// },
// },
}
// Add default package configuration here. For example:
// '@angular/fire@^5.2.0': {
// entryPoints: {
// './database-deprecated': {ignore: true},
// },
// },

// The `dist/` directory has a duplicate `package.json` pointing to the same files, which (under
// certain configurations) can causes ngcc to try to process the files twice and fail.
// Ignore the `dist/` entry-point.
'ng2-dragula': {
entryPoints: {
'./dist': {ignore: true},
},
},
},
};

interface VersionedPackageConfig extends NgccPackageConfig {

0 comments on commit ecf38d4

Please sign in to comment.
You can’t perform that action at this time.