From da666d3417b2d1192ab4f6a71ddda96398c8155a Mon Sep 17 00:00:00 2001 From: Jaume Segarra Date: Sun, 7 Apr 2019 20:08:41 +0200 Subject: [PATCH] Solved some fixes --- generator.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/generator.js b/generator.js index c3926e8..74ddac1 100644 --- a/generator.js +++ b/generator.js @@ -100,7 +100,7 @@ module.exports = (generatorName, stuffPath) => { if (fs.existsSync(generatorTemplateFolder)) { const stuffName = getStuffName(stuffPath); - if(stuffPath[0] !== '/') stuffPath = path.join(process.env.INIT_CWD, stuffPath); + if(!path.isAbsolute(stuffPath)) stuffPath = path.join(process.env.INIT_CWD, stuffPath); createTempFolder().then(cacheFolderPath => { copyResourcesToTempFolder(stuffName, generatorTemplateFolder, cacheFolderPath).then(() => { diff --git a/package.json b/package.json index eba319a..0e61c77 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xtuff", - "version": "1.0.5", + "version": "1.0.6", "description": "A dev command to create stuffs easy! (components, services, etc...)", "keywords": "command, generator, component, service, react, stuff, files", "repository": "https://github.com/jaumesegarra/xtuff",