Type
Both
Suggestion
I am trying to bundle this as a CLI tool via Homebrew, however it only wants to read widevine/playready files from the installdir and not the cwd or the contentDirectory environment variable. Would it be possible to reorder the check at
|
// new-cfg |
|
const workingDir = ( |
|
process as NodeJS.Process & { |
|
pkg?: unknown; |
|
} |
|
).pkg |
|
? path.dirname(process.execPath) |
|
: process.env.contentDirectory |
|
? process.env.contentDirectory |
|
: path.join(__dirname, '/..'); |
so that the
contentDirectory comes first?