Skip to content

cannot override main #4

Description

@adjiandov

When the override option is supplied to override the main attribute of a dependency, it is not taken into account.
I tried to find a workaround for the library supplying index.js instead of the implementation file by overriding the main attribute, but it was not taken into account.
E.G. for dependency in package.json {"angular": "1.5.9"}
when wiredep is used index.js is supplied as a js dependency (which is correct since index.js is defined as "main" in the package.json of angular).
When I instantiate npm-wiredep I try to override this by supplying a config object

wiredep({"overrides": {
				"angular": {
					"dependencies": {
						"jquery": "2.2.1"
					},
					"main" : "angular.js"
				}}})

After this index.js is supplied again as dependency for this package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions