@next2d/view-generator 1.1.5 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +5 -18
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -13,10 +13,10 @@ if (10 > version.split(".")[0]) {
13
13
  }
14
14
 
15
15
  const chalk = require("chalk");
16
- const commander = require("commander");
16
+ const { Command } = require("commander");
17
17
  const packageJson = require("./package.json");
18
18
  const path = require("path");
19
- const fs = require("fs-extra");
19
+ const fs = require("fs-extra");
20
20
 
21
21
  /**
22
22
  * @return {void}
@@ -137,23 +137,10 @@ export class ${name}ViewModel extends next2d.fw.ViewModel
137
137
  */
138
138
  const exec = function ()
139
139
  {
140
- new commander.Command(packageJson.name)
140
+ new Command()
141
+ .name(packageJson.name)
142
+ .description("Generate the View, ViewModel class required for routing.")
141
143
  .version(packageJson.version)
142
- .arguments("<project-directory>")
143
- .usage(`${chalk.green("<project-directory>")} [options]`)
144
- .on("--help", () =>
145
- {
146
- console.log();
147
- console.log(
148
- " If you have any problems, do not hesitate to file an issue:"
149
- );
150
- console.log(
151
- ` ${chalk.cyan(
152
- "https://github.com/Next2D/next2d-view-generator/issues/new"
153
- )}`
154
- );
155
- console.log();
156
- })
157
144
  .parse(process.argv);
158
145
 
159
146
  createFile();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next2d/view-generator",
3
- "version": "1.1.5",
3
+ "version": "1.2.0",
4
4
  "description": "Generate the View class required for routing.",
5
5
  "author": "Toshiyuki Ienaga<ienaga@tvon.jp>",
6
6
  "license": "MIT",
@@ -24,7 +24,7 @@
24
24
  "eslint": "^8.22.0"
25
25
  },
26
26
  "dependencies": {
27
- "chalk": "^4.1.2",
27
+ "chalk": "4.1.2",
28
28
  "commander": "^9.4.0",
29
29
  "fs-extra": "^10.1.0"
30
30
  }