Files: 49c6e5459b68f2a30bcecf7727b8c9a99cfe4e79 / lib / pathModule.js
298 bytesRaw
1 | const { join, basename, dirname, extname, sep } = require('path') |
2 | const assign = require('object-assign') |
3 | |
4 | module.exports = (definition, { filename }) => { |
5 | const path = join( |
6 | dirname(filename), |
7 | basename(filename, extname(filename)) |
8 | ).split(sep) |
9 | |
10 | return assign({ path }, definition) |
11 | } |
12 |
Built with git-ssb-web