mirror of https://github.com/certd/certd
refactor: home环境变量
parent
2f3db7d982
commit
44326c3abe
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"packages": [
|
||||
"packages/*",
|
||||
"other/node-acme-client"
|
||||
"packages/*"
|
||||
],
|
||||
"version": "0.1.6"
|
||||
}
|
||||
|
|
|
@ -5,9 +5,10 @@ const logger = util.logger
|
|||
export class FileStore extends Store {
|
||||
constructor (opts) {
|
||||
super()
|
||||
this.rootDir = util.path.getUserBasePath()
|
||||
if (opts.rootDir != null) {
|
||||
this.rootDir = opts.rootDir
|
||||
} else {
|
||||
this.rootDir = util.path.getUserBasePath()
|
||||
}
|
||||
if (opts.test) {
|
||||
this.rootDir = path.join(this.rootDir, '/test/')
|
||||
|
|
Loading…
Reference in New Issue