File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env node
2
+
3
+ 'use strict' ;
4
+
5
+ var resolve = require ( '..' ) ;
6
+ var result = resolve . sync ( process . argv [ 2 ] , {
7
+ basedir : process . cwd ( )
8
+ } ) ;
9
+
10
+ console . log ( result ) ;
Original file line number Diff line number Diff line change 6
6
"type" : " git" ,
7
7
"url" : " git://github.com/browserify/resolve.git"
8
8
},
9
+ "bin" : {
10
+ "resolve" : " ./bin/resolve"
11
+ },
9
12
"main" : " index.js" ,
10
13
"exports" : {
11
14
"." : [
38
41
"prepublishOnly" : " safe-publish-latest" ,
39
42
"prepublish" : " not-in-publish || npm run prepublishOnly" ,
40
43
"prelint" : " eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\ .git')" ,
41
- "lint" : " eslint --ext=js,mjs --no-eslintrc -c .eslintrc ." ,
44
+ "lint" : " eslint --ext=js,mjs --no-eslintrc -c .eslintrc . 'bin/**' " ,
42
45
"pretests-only" : " cd ./test/resolver/nested_symlinks && node mylib/sync && node mylib/async" ,
43
46
"tests-only" : " tape test/*.js" ,
44
47
"pretest" : " npm run lint" ,
You can’t perform that action at this time.
0 commit comments