Comparing version 1.0.7 to 1.0.8
{ | ||
"TPL_DIR": ".templates" | ||
} |
@@ -51,8 +51,8 @@ #! /usr/bin/env node | ||
if (!err) { | ||
var baseTpls = fs.readdirSync('../templates/'); | ||
var baseTpls = fs.readdirSync(path.resolve(__dirname+'/../templates/')); | ||
baseTpls.forEach(function (file) { | ||
console.log('FILE: ',path.join(dir, file)); | ||
fs.copy('../templates/' + file, path.join(dir, file), function (err) { | ||
fs.copy(path.resolve(__dirname+'/../templates/' + file), path.join(dir, file), function (err) { | ||
if (err) { | ||
console.log('Ooops! Some errors occurred upon attempt to create example files in: '.red.bold + dir); | ||
console.log('Ooops! Some errors ("'+err+'") occurred upon attempt to create example files in: '.red.bold + dir); | ||
} | ||
@@ -59,0 +59,0 @@ }); |
{ | ||
"name": "mkhere", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Make files based on template", | ||
@@ -5,0 +5,0 @@ "main": "lib/mkhere.js", |
@@ -0,0 +0,0 @@ # mkhere |
'use strict'; |
@@ -0,0 +0,0 @@ # This is Heading 1 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
10981