Skip to content

Commit

Permalink
Merge pull request #96 from NonPolynomial/fix/resolve-module_path
Browse files Browse the repository at this point in the history
resolving module_path with __dirname
  • Loading branch information
RyanHavoc authored Jun 27, 2017
2 parents b74b7f8 + 3e54540 commit 51e28a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions manager/utils.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
var fs = require('fs-extra'),
chalk = require('chalk'),
inquirer = require('inquirer'),
dir = require('global-modules'),
mkdirp = require('mkdirp'),
isWindows = require('is-windows'),
pjson = require('../package.json');
pjson = require('../package.json'),
path = require('path');

module.exports = {

module_path: dir + '/' + pjson.name,
module_path: path.resolve(`${__dirname}/..`),
$root: process.cwd(),
$config: null,
$data: null,
Expand Down Expand Up @@ -84,7 +84,7 @@ module.exports = {
fs.copy(_this.pathify(_this.module_path + '/_template/app'), _this.$config.path + '/app');
fs.copy(_this.pathify(_this.module_path + '/_template/index.html'), _this.$config.path + '/index.html');
fs.copy(_this.pathify(_this.module_path + '/_template/LICENSE.txt'), _this.$config.path + '/LICENSE.txt');

_this.updateVersion(pjson.version);

/**
Expand All @@ -107,7 +107,7 @@ module.exports = {

getConfig: function() {
var _this = this;

return JSON.parse(fs.readFileSync(_this.pathify(_this.$root + '/astrum-config.json')));
},

Expand Down Expand Up @@ -607,4 +607,4 @@ module.exports = {

return path;
}
};
};
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"commander": "^2.9.0",
"cwd": "^0.10.0",
"fs-extra": "^0.28.0",
"global-modules": "^0.2.2",
"inquirer": "^1.0.2",
"is-windows": "^0.2.0",
"mkdirp": "^0.5.1"
Expand Down

0 comments on commit 51e28a4

Please sign in to comment.