Skip to content

Commit

Permalink
switch from detective to konan to support es6 imports (#4)
Browse files Browse the repository at this point in the history
* docs(npm): fix repo

* fix: switch from detective to konan to enable es6 imports

* chore: add minimal gitignore
  • Loading branch information
arlac77 committed Mar 2, 2021
1 parent 9ab7006 commit a94c754
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
node_modules
.nyc_output
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -4,7 +4,7 @@ var relativePath = require('cached-path-relative')

var browserResolve = require('browser-resolve');
var nodeResolve = require('resolve');
var detective = require('detective');
var konan = require('konan');
var through = require('through2');
var concat = require('concat-stream');
var combine = require('stream-combiner2');
Expand Down Expand Up @@ -509,7 +509,7 @@ Deps.prototype.parseDeps = function (file, src, cb) {
return [];
}

try { var deps = detective(src) }
try { var deps = konan(src).strings }
catch (ex) {
var message = ex && ex.message ? ex.message : ex;
this.emit('error', new Error(
Expand Down
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -7,14 +7,14 @@
"module-deps": "bin/cmd.js"
},
"dependencies": {
"JSONStream": "^1.0.3",
"browser-resolve": "^1.7.0",
"cached-path-relative": "^1.0.0",
"concat-stream": "~1.5.0",
"defined": "^1.0.0",
"detective": "^5.2.0",
"duplexer2": "^0.1.2",
"inherits": "^2.0.1",
"JSONStream": "^1.0.3",
"konan": "^2.1.1",
"readable-stream": "^2.0.2",
"resolve": "^1.1.3",
"standard-version": "^9.0.0",
Expand All @@ -33,9 +33,9 @@
},
"repository": {
"type": "git",
"url": "git://github.com/substack/module-deps.git"
"url": "git://github.com/tmcw/module-deps.git"
},
"homepage": "https://github.com/substack/module-deps",
"homepage": "https://github.com/tmcw/module-deps",
"keywords": [
"dependency",
"graph",
Expand Down

0 comments on commit a94c754

Please sign in to comment.