We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19511d6 commit b6ea965Copy full SHA for b6ea965
map.js
@@ -0,0 +1,6 @@
1
+const {basename} = require('path')
2
+const map = base =>
3
+ base === 'index.js' ? 'index.js'
4
+ : base === 'cmd.js' ? 'bin/cmd.js'
5
+ : `lib/${base}`
6
+module.exports = test => map(basename(test))
0 commit comments