mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-14 09:45:55 -07:00
new function + tidy
This commit is contained in:
parent
d60e0c17ad
commit
32b8d73e0f
5 changed files with 228 additions and 15 deletions
|
|
@ -1,7 +1,7 @@
|
|||
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/')
|
||||
if (fs.existsSync(path.join(process.cwd() , "/npm"))) {
|
||||
var rootModules = path.join(process.cwd() , '/npm/node_modules/')
|
||||
} else{
|
||||
var rootModules = ''
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue