From 7b1e8deeaac1b4c89602a02497a0282ec3339232 Mon Sep 17 00:00:00 2001 From: Jeremy Heiner Date: Tue, 19 Apr 2016 20:02:53 -0400 Subject: [PATCH] Fix issue #150: use correct paths for dependencies. https://nodejs.org/api/modules.html specifies what paths are correct. One should never explicitly put "node_modules" in dependency paths because npm is under no obligation to put things where you told it to look for them. Issue #150 arises when SimpleMDE is a dependency in some other project, so it and its dependencies are peers under that project's "node_modules", and there is no "./node_modules" within the SimpleMDE folder. TL/DR: npm tells you where it puts dependencies, not vice versa. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ffbd0bb..83073b2 100644 --- a/package.json +++ b/package.json @@ -48,8 +48,8 @@ ] }, "browser": { - "spell-checker": "./node_modules/codemirror-spell-checker/src/js/spell-checker.js", - "typo": "./node_modules/codemirror-spell-checker/src/js/typo.js" + "spell-checker": "codemirror-spell-checker/src/js/spell-checker.js", + "typo": "codemirror-spell-checker/src/js/typo.js" }, "browserify-shim": { "spell-checker": {