Fix don't use global TypeScript compiler
This commit is contained in:
parent
da54791cd1
commit
69639b5ab6
3 changed files with 13 additions and 5 deletions
|
@ -16,7 +16,7 @@ const outputDirectory: string = 'videos';
|
||||||
function sanityChecks() {
|
function sanityChecks() {
|
||||||
try {
|
try {
|
||||||
const ytdlVer = execSync('youtube-dl --version');
|
const ytdlVer = execSync('youtube-dl --version');
|
||||||
term.green(`Using youtube-dl version ${ytdlVer}\n`);
|
term.green(`Using youtube-dl version ${ytdlVer}`);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
console.error('You need youtube-dl in $PATH for this to work. Make sure it is a relatively recent one, baked after 2019.');
|
console.error('You need youtube-dl in $PATH for this to work. Make sure it is a relatively recent one, baked after 2019.');
|
||||||
|
@ -26,7 +26,7 @@ function sanityChecks() {
|
||||||
try {
|
try {
|
||||||
const ffmpegVer = execSync('ffmpeg -version')
|
const ffmpegVer = execSync('ffmpeg -version')
|
||||||
.toString().split('\n')[0];
|
.toString().split('\n')[0];
|
||||||
term.green(`Using ffmpeg version ${ffmpegVer}\n`);
|
term.green(`Using ${ffmpegVer}\n`);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
console.error('FFmpeg is missing. You need a fairly recent release of FFmpeg in $PATH.');
|
console.error('FFmpeg is missing. You need a fairly recent release of FFmpeg in $PATH.');
|
||||||
|
|
7
package-lock.json
generated
7
package-lock.json
generated
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "destreamer-node",
|
"name": "destreamer",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
|
@ -627,6 +627,11 @@
|
||||||
"resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
|
"resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
|
||||||
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c="
|
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c="
|
||||||
},
|
},
|
||||||
|
"typescript": {
|
||||||
|
"version": "3.6.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.6.3.tgz",
|
||||||
|
"integrity": "sha512-N7bceJL1CtRQ2RiG0AQME13ksR7DiuQh/QehubYcghzv20tnh+MQnQIuJddTmsbqYj+dztchykemz0zFzlvdQw=="
|
||||||
|
},
|
||||||
"uniq": {
|
"uniq": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz",
|
||||||
|
|
|
@ -8,7 +8,9 @@
|
||||||
"description": "Save Microsoft Stream videos for offline enjoyment.",
|
"description": "Save Microsoft Stream videos for offline enjoyment.",
|
||||||
"main": "destreamer.js",
|
"main": "destreamer.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "echo Transpiling TypeScript to JavaScript... && tsc && node ./destreamer.js",
|
"build": "echo Transpiling TypeScript to JavaScript... & node node_modules/typescript/bin/tsc --listEmittedFiles",
|
||||||
|
"run": "node ./destreamer.js",
|
||||||
|
"start": "npm run -s build & npm run -s run",
|
||||||
"test": "node ./destreamer.js test"
|
"test": "node ./destreamer.js test"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
|
@ -21,6 +23,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ffmpeg-progressbar-cli": "^1.5.0",
|
"ffmpeg-progressbar-cli": "^1.5.0",
|
||||||
"puppeteer": "^1.19.1",
|
"puppeteer": "^1.19.1",
|
||||||
"terminal-kit": "^1.26.10"
|
"terminal-kit": "^1.26.10",
|
||||||
|
"typescript": "^3.6.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue