From 4e3a60f6ed90dcc92e83b51217c6d52ee7f56062 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iw=C3=A1=20Duarte?= Date: Wed, 12 Oct 2022 17:28:13 -0300 Subject: [PATCH] fix: package execution --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index ea6fa47..fb36ef7 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,5 @@ +#!/usr/bin/env node + const { join } = require('path'); const chalk = require('chalk'); const { promisify } = require('util'); @@ -34,7 +36,7 @@ const start = async () => { const backendFolder = monorepo ? 'backend' : ''; const frontendFolder = monorepo ? join(projectName, 'frontend') : ''; - const dirLocationFrom = join(__dirname, `template`); + const dirLocationFrom = join(__dirname, `templates`); const dirLocationTo = join(process.cwd(), projectName, backendFolder); const projectFolders = [ join(projectName, backendFolder, 'routes'),