Skip to content

Commit

Permalink
update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJoin95 committed Aug 29, 2020
1 parent 04a2763 commit 6bbc408
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37512,19 +37512,19 @@ const debug = __webpack_require__(7891)('youtube-dl')
const { readFileSync, existsSync } = __webpack_require__(5747)
const path = __webpack_require__(5622)

const binPath = __webpack_require__.ab + "bin"
const detailsPath = __webpack_require__.ab + "details"
const binPath = path.join(__dirname, '..', 'bin')
const detailsPath = path.join(binPath, 'details')

module.exports = () => {
if (!existsSync(__webpack_require__.ab + "details")) {
if (!existsSync(detailsPath)) {
debug('unable to locate `youtube-dl` at ' + binPath)
}

const details = JSON.parse(readFileSync(__webpack_require__.ab + "details"))
const details = JSON.parse(readFileSync(detailsPath))

return details.path
? details.path
: __webpack_require__.ab + "bin/" + details.exec
: path.resolve(__dirname, '..', 'bin', details.exec)
}


Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit 6bbc408

Please sign in to comment.