npmextra/dist/npmextra.paths.js

29 lines
2.0 KiB
JavaScript
Raw Normal View History

2016-07-16 23:23:22 +00:00
"use strict";
2017-03-18 15:23:47 +00:00
Object.defineProperty(exports, "__esModule", { value: true });
2016-09-18 14:10:07 +00:00
const plugins = require("./npmextra.plugins");
2016-07-16 23:23:22 +00:00
// directories
exports.cwd = process.cwd();
2016-09-16 20:28:38 +00:00
exports.packageDir = plugins.path.join(__dirname, '../');
2017-03-18 15:23:47 +00:00
// ----------------------
2016-09-24 19:53:44 +00:00
// keyValueStore specific
2017-03-18 15:23:47 +00:00
// ----------------------
2017-07-12 15:13:29 +00:00
exports.home = plugins.smartpath.get.home();
2017-03-18 15:23:47 +00:00
/**
* keyValue base path
*/
2017-07-12 15:13:29 +00:00
exports.kvBase = plugins.path.join(exports.home, '.npmextra/kv');
2017-03-18 15:23:47 +00:00
/**
* the base directory for custom string based key value store
*/
exports.kvCustomDir = plugins.path.join(exports.kvBase, 'custom');
/**
* the subdir for git based keyValue
*/
2016-09-24 19:53:44 +00:00
exports.kvGitDir = plugins.path.join(exports.kvBase, 'git');
2017-03-18 15:23:47 +00:00
/**
2017-07-09 17:05:03 +00:00
* keyValue for path based keyValue store
2017-03-18 15:23:47 +00:00
*/
2016-09-24 19:53:44 +00:00
exports.kvPathDir = plugins.path.join(exports.kvBase, 'path');
2016-09-16 20:28:38 +00:00
// files
exports.configFile = plugins.path.join(exports.cwd, 'npmextra.json');
2017-07-12 15:13:29 +00:00
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtZXh0cmEucGF0aHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9ucG1leHRyYS5wYXRocy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDhDQUE2QztBQUU3QyxjQUFjO0FBQ0gsUUFBQSxHQUFHLEdBQUcsT0FBTyxDQUFDLEdBQUcsRUFBRSxDQUFBO0FBQ25CLFFB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