We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf61971 commit ddc8e64Copy full SHA for ddc8e64
src/config.js
@@ -1,14 +1,15 @@
1
var path = require( "path" ),
2
+ tmpDir = process.env.TMPDIR || process.env.TMP || process.env.TEMP ||
3
+ ( process.platform === "win32" ? "c:/windows/temp" : "/tmp" ),
4
config = require( process.env.JQ_PATH ?
5
process.env.JQ_PATH + "/plugins.jquery.com" :
6
"../config" );
7
-console.log( config.test );
8
function resolvePath( key, _default ) {
9
config[ key ] = path.resolve( __dirname, "..", config[ key ] || _default );
10
}
11
-resolvePath( "repoDir", "/tmp/plugin-repos" );
12
+resolvePath( "repoDir", path.resolve( tmpDir, "plugin-repos" ) );
13
resolvePath( "pluginsDb", "plugins.db" );
14
15
module.exports = config;
0 commit comments