debowerify
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -54,4 +54,5 @@ var bower = require('bower'); | ||
if (module && module.source && module.source.main) { | ||
var modulePath = path.resolve(module.source.main); | ||
node.update('require(\'' + modulePath + '\')'); | ||
var fullModulePath = path.resolve(module.source.main); | ||
var relativeModulePath = path.relative(path.dirname(file), fullModulePath); | ||
node.update('require(' + JSON.stringify(relativeModulePath) + ')'); | ||
} | ||
@@ -58,0 +59,0 @@ } |
{ | ||
"name": "debowerify", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A browserify transform to enable the easy use of bower components in browserify client javascript projects. This can be used in conjunction with deamdify to require AMD components from bower as well.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -70,3 +70,3 @@ # debowerify | ||
Do make this all magically work and use the short-form bower name of "amdcomponent" chain both debowerify and deamdify together like this: | ||
To make this all magically work and use the short-form bower name of "amdcomponent" chain both debowerify and deamdify together like this: | ||
@@ -73,0 +73,0 @@ ``` |
5053
54