Skip to content

Commit

Permalink
Merge branch 'release/7.0.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
nsteenbeek committed May 16, 2023
2 parents ae2602c + cabbfca commit b641079
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hso/d365-cli",
"version": "7.0.4",
"version": "7.0.5",
"author": "HSO Innovation <[email protected]> (https://www.hso.com)",
"description": "Dynamics 365 Command Line Interface for TypeScript projects for Dataverse",
"repository": {
Expand Down
6 changes: 3 additions & 3 deletions src/commands/generators/Webresource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ export class Webresource {
} else if(!new RegExp('[A-Z]').test(webresourcename[0])) {
console.log(colors.red(`Webresource name must be UpperCamelCase!`));
} else if (check.stdout !== '\n') {
console.log(colors.red(`echo Webresource ${webresourcename} already exist!`));
} else if (process.argv[5]) {
console.log(colors.red(`echo No spaces allowed!`));
console.log(colors.red(`Webresource ${webresourcename} already exist!`));
} else if (process.argv[7]) {
console.log(colors.red(`No spaces allowed!`));
} else if (options.template && !['React', 'HTML'].includes(options.template)) {
console.log(colors.red(`echo Webresource template must be 'React' or 'HTML'`));
} else {
Expand Down

0 comments on commit b641079

Please sign in to comment.