mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 15:38:19 -07:00
Prod path update
This commit is contained in:
parent
32d6e21b6c
commit
373207f4d1
1 changed files with 9 additions and 1 deletions
|
|
@ -1,5 +1,13 @@
|
|||
|
||||
const importFresh = require('import-fresh');
|
||||
var fs = require('fs');
|
||||
|
||||
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')
|
||||
var actions = importFresh('./actions.js')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue