mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
11 lines
377 B
JavaScript
11 lines
377 B
JavaScript
var fs = require('fs');
|
|
var path = require("path");
|
|
if (fs.existsSync(path.join(process.cwd() , "/npm"))) {
|
|
var rootModules = path.join(process.cwd() , '/npm/node_modules/')
|
|
} else{
|
|
var rootModules = ''
|
|
}
|
|
const importFresh = require(rootModules+'import-fresh');
|
|
|
|
module.exports.filters = importFresh('./filters.js')
|
|
module.exports.actions = importFresh('./actions.js')
|