npmextra/ts/npmextra.paths.ts

15 lines
461 B
TypeScript
Raw Normal View History

2016-09-16 20:28:38 +00:00
import * as plugins from './npmextra.plugins'
2016-07-16 23:23:22 +00:00
// directories
2016-09-16 20:28:38 +00:00
export let cwd = process.cwd()
export let packageDir = plugins.path.join(__dirname,'../')
2016-07-16 23:23:22 +00:00
2016-09-24 19:49:53 +00:00
// keyValueStore specific
export let kvBase = '~/.npmextra/kv'
export let kvCusomDir = plugins.path.join(kvBase, 'custom')
export let kvGitDir = plugins.path.join(kvBase, 'git')
export let kvPathDir = plugins.path.join(kvBase, 'path')
2016-09-16 20:28:38 +00:00
// files
export let configFile = plugins.path.join(cwd,'npmextra.json')