kolodny / wavy

use ~ in require and import calls
378 stars 20 forks source link

Change base directory. #7

Closed DylanPiercey closed 8 years ago

DylanPiercey commented 8 years ago

Is it possible to allow for some configuration to change the project root? Currently it's directly above node_modules however in most of my projects all of the js is stored in /js, lib, src or similar.

I think it would be nice to simply add a package json option to set the wavy root path.

kolodny commented 8 years ago

I'd consider that a little too heavy for this tool, since it would require more cognitive load to know to look in package.json to know what require('~/foo') actually does