fix(win): remove winattr

This commit is contained in:
Evan Morikawa 2015-12-10 14:04:16 -05:00
parent d1d34963e2
commit e4ca1b49c2
3 changed files with 2 additions and 12 deletions

View file

@ -70,8 +70,7 @@
"temp": "^0.8",
"theorist": "^1.0",
"underscore": "^1.8",
"underscore.string": "^3.0",
"winattr": "1.1.0"
"underscore.string": "^3.0"
},
"packageDependencies": {},
"private": true,

View file

@ -46,9 +46,6 @@ setupConfigDir = (args) ->
defaultConfigDir
mkdirp.sync(configDirPath)
if process.platform is 'win32'
winattr=require('winattr')
winattr.setSync(configDirPath, {hidden: true})
process.env.NYLAS_HOME = configDirPath

View file

@ -52,7 +52,7 @@
};
setupConfigDir = function(args) {
var configDirPath, defaultConfigDir, ref, ref1, winattr;
var configDirPath, defaultConfigDir, ref, ref1;
if (args.specMode) {
defaultConfigDir = path.join(app.getPath('home'), '.nylas-spec');
} else {
@ -60,12 +60,6 @@
}
configDirPath = (ref = (ref1 = args.configDirPath) != null ? ref1 : process.env.NYLAS_HOME) != null ? ref : defaultConfigDir;
mkdirp.sync(configDirPath);
if (process.platform === 'win32') {
winattr = require('winattr');
winattr.setSync(configDirPath, {
hidden: true
});
}
process.env.NYLAS_HOME = configDirPath;
return configDirPath;
};