Skip to content

Commit e98818a

Browse files
committed
fix(require): get rid of relative path to the word-wrap
Fix this module for npm@3 where flat directory structure is "by default". A bit of background: If the module identifier passed to require() is not a native module, and does not begin with '/', '../', or './', then Node.js starts at the parent directory of the current module, and adds /node_modules, and attempts to load the module from that location. If it is not found there, then it moves to the parent directory, and so on, until the root of the file system is reached. This closes commitizen#4
1 parent c7b7e11 commit e98818a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"format cjs";
22

3-
var wrap = require('./node_modules/word-wrap/index');
3+
var wrap = require('word-wrap');
44

55
// This can be any kind of SystemJS compatible module.
66
// We use Commonjs here, but ES6 or AMD would do just

0 commit comments

Comments
 (0)