mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-14 17:55:55 -07:00
commit
e9370ffe7c
2 changed files with 16 additions and 13 deletions
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
|
|
@ -2,9 +2,9 @@ name: Node.js CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: ['**']
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: ['**']
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,25 @@
|
||||||
/* eslint-disable */
|
const fs = require('fs');
|
||||||
var fs = require("fs");
|
const path = require('path');
|
||||||
var path = require("path");
|
|
||||||
if (fs.existsSync(path.join(process.cwd(), "/npm"))) {
|
let rootModules;
|
||||||
var rootModules = path.join(process.cwd(), "/npm/node_modules/");
|
if (fs.existsSync(path.join(process.cwd(), '/npm'))) {
|
||||||
|
rootModules = path.join(process.cwd(), '/npm/node_modules/');
|
||||||
} else {
|
} else {
|
||||||
var rootModules = "";
|
rootModules = '';
|
||||||
}
|
}
|
||||||
const importFresh = require(rootModules + "import-fresh");
|
|
||||||
|
// eslint-disable-next-line import/no-dynamic-require
|
||||||
|
const importFresh = require(`${rootModules}import-fresh`);
|
||||||
|
|
||||||
module.exports.remuxContainer = importFresh(
|
module.exports.remuxContainer = importFresh(
|
||||||
"./library/actions/remuxContainer.js"
|
'./library/actions/remuxContainer.js',
|
||||||
);
|
);
|
||||||
module.exports.transcodeStandardiseAudioCodecs = importFresh(
|
module.exports.transcodeStandardiseAudioCodecs = importFresh(
|
||||||
"./library/actions/transcodeStandardiseAudioCodecs.js"
|
'./library/actions/transcodeStandardiseAudioCodecs.js',
|
||||||
);
|
);
|
||||||
module.exports.transcodeAddAudioStream = importFresh(
|
module.exports.transcodeAddAudioStream = importFresh(
|
||||||
"./library/actions/transcodeAddAudioStream.js"
|
'./library/actions/transcodeAddAudioStream.js',
|
||||||
);
|
);
|
||||||
module.exports.transcodeKeepOneAudioStream = importFresh(
|
module.exports.transcodeKeepOneAudioStream = importFresh(
|
||||||
"./library/actions/transcodeKeepOneAudioStream.js"
|
'./library/actions/transcodeKeepOneAudioStream.js',
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue