Skip to content

Commit

Permalink
fix(ngcc): add default config for ng2-dragula
Browse files Browse the repository at this point in the history
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 angular#33718
  • Loading branch information
gkalpak committed Nov 13, 2019
1 parent 2be0a1d commit a93451b
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions packages/compiler-cli/ngcc/src/packages/configuration.ts
Expand Up @@ -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 {
Expand Down

0 comments on commit a93451b

Please sign in to comment.