mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
Modules prod path update
This commit is contained in:
parent
5dfddbfde0
commit
a31216beb1
3 changed files with 16 additions and 5 deletions
|
|
@ -1,4 +1,11 @@
|
|||
const importFresh = require('import-fresh');
|
||||
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');
|
||||
|
||||
|
||||
var remuxContainer = importFresh('./library/actions/remuxContainer.js')
|
||||
|
|
|
|||
|
|
@ -1,4 +1,11 @@
|
|||
const importFresh = require('import-fresh');
|
||||
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');
|
||||
|
||||
|
||||
var filterByAge = importFresh('./library/filters/filterByAge.js')
|
||||
|
|
|
|||
|
|
@ -1,13 +1,10 @@
|
|||
|
||||
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');
|
||||
|
||||
var filters = importFresh('./filters.js')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue