Permalink
Browse files

update spmrc

  • Loading branch information...
1 parent ac05055 commit a733dadef267c290ffa0404f8e32507b1d8617c4 Hsiaoming Yang committed Mar 19, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/install.js
  2. +1 −1 lib/publish.js
  3. +1 −1 package.json
View
@@ -272,7 +272,7 @@ function copy(src, callback) {
}
function extract(src, callback) {
- var tmp = process.env.TMPDIR || process.env.TEMP || process.env.TMP;
+ var tmp = spmrc.get('user.temp');
tmp = path.join(tmp, path.basename(src)).replace(/\.tar\.gz$/, '');
if (grunt.file.exists(tmp)) {
grunt.file.delete(tmp, {force: true});
View
@@ -112,7 +112,7 @@ function _generatePackage(pkg) {
function _createTar(directory, data, callback) {
var name = format('%s-%s.tar.gz', data.name, data.version || '');
- var tmp = process.env.TMPDIR || process.env.TEMP || process.env.TMP;
+ var tmp = spmrc.get('user.temp');
var tarfile = path.join(tmp, data.family, name);
log.info('tarfile', name);
tar.create(directory, tarfile, function(error, target) {
View
@@ -8,7 +8,7 @@
"inherits": "~1.0.0",
"fstream": "~0.1.22",
"fstream-ignore": "~0.0.6",
- "spmrc": "~0.1.1",
+ "spmrc": "~0.1.2",
"semver": "~1.1.4",
"async": "~0.1.22",
"tar": "~0.1.16",

0 comments on commit a733dad

Please sign in to comment.