gluegunplus
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -381,8 +381,8 @@ "use strict"; | ||
commands = commands.map(function (command) { return command.replace(/\/.*$/, ''); }); | ||
commandsDir = __dirname; | ||
templateFilePath = path.join(commandsDir, '../config', 'commandsTemplate'); | ||
commandsDir = process.cwd(); | ||
templateFilePath = path.join(commandsDir, 'config', 'commandsTemplate'); | ||
templateContent = fs.readFileSync(templateFilePath, 'utf8'); | ||
commands.forEach(function (command) { | ||
var commandFileName = "".concat(command, ".ts"); | ||
var commandFilePath = path.join(commandsDir, 'commands', commandFileName); | ||
var commandFilePath = path.join(commandsDir, 'src', 'commands', commandFileName); | ||
// Replace placeholders in the template content with the command name | ||
@@ -389,0 +389,0 @@ // const fileContent = templateContent.replace(/{{commandName}}/g, command); |
{ | ||
"name": "gluegunplus", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"short-description": "Gluegun Plus.", | ||
@@ -5,0 +5,0 @@ "description": "GluegunPlus extends the capabilities of the original Gluegun Node.js module, empowering developers to create command-line interfaces with enhanced automation features.", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77109