Skip to content

Support package.json #168

@aimad-majdou

Description

@aimad-majdou

It would be nice if this plugin support yarn (package.json) which iterate through dependencies in package.json and return an array of files defined in the main property of the packages package.json, and the base directory will be node_modules/@bower_components.

I tried as following :

yarnFiles({
	    paths: {
	        bowerDirectory: 'node_modules/@bower_components',
	        bowerJson: 'package.json'
	    }
  })

but it didn't work.

This solution worked for me :

yarnFiles({
	    paths: {
	        bowerDirectory: 'node_modules/@bower_components',
	        bowerrc: '.bowerrc',
	        bowerJson: 'bower.json'
	    }
  })

But I shouldn't rely on the bower.json file, since I'm moving from bower to yarn.

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