Comparing version 0.1.6 to 0.1.7
@@ -10,2 +10,3 @@ #!/usr/bin/env node | ||
var fs = require('fs'); | ||
var os = require('os'); | ||
var readDirRcs = require('fs-readdir-recursive'); | ||
@@ -111,3 +112,3 @@ var path = require('path'); | ||
//验证是否进行了OSS配置 | ||
var duomsPath = path.join(__dirname, '../.duoms'); | ||
var duomsPath = path.join(os.homedir(), '.duomsConfig.js'); | ||
@@ -151,6 +152,3 @@ if(fs.existsSync(duomsPath)){ | ||
} | ||
fs.writeFileSync(duomsPath, JSON.stringify(conf), { | ||
encoding: 'utf-8' | ||
,flag: 'w+' | ||
}); | ||
fs.writeFileSync(duomsPath, JSON.stringify(conf), 'utf-8'); | ||
callback(info); | ||
@@ -157,0 +155,0 @@ }); |
{ | ||
"name": "duoms", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "剁手管理系统基础服务", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15006
471