@next2d/view-generator 1.4.3 → 1.4.4
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.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -194,7 +194,7 @@ const createTypeScriptFile = function ()
|
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
// create View file
|
|
197
|
-
const viewFile = path.join(viewDir, `${name}View.
|
|
197
|
+
const viewFile = path.join(viewDir, `${name}View.ts`);
|
|
198
198
|
if (!fs.existsSync(viewFile)) {
|
|
199
199
|
|
|
200
200
|
console.log(`Create a new View Class ${viewFile}.`);
|
|
@@ -220,7 +220,7 @@ export class ${name}View extends View
|
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
// create ViewModel file
|
|
223
|
-
const viewModelFile = path.join(viewDir, `${name}ViewModel.
|
|
223
|
+
const viewModelFile = path.join(viewDir, `${name}ViewModel.ts`);
|
|
224
224
|
if (!fs.existsSync(viewModelFile)) {
|
|
225
225
|
|
|
226
226
|
console.log(`Create a new ViewModel Class ${viewModelFile}.`);
|