Skip to content

Commit

Permalink
Solved some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jaumesegarra committed Apr 7, 2019
1 parent 519ef4f commit da666d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit da666d3

Please sign in to comment.