clwy-express-generator 5.0.14 → 5.1.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.
@@ -95,6 +95,7 @@ function createApplication (name, dir, options, done) {
95
95
  name: name,
96
96
  version: '0.0.0',
97
97
  private: true,
98
+ type: options.es6 ? 'module' : 'commonjs',
98
99
  scripts: {
99
100
  start: 'nodemon ./bin/www',
100
101
  format: 'prettier --write "**/*.{js,json,md}"'
@@ -110,9 +111,6 @@ function createApplication (name, dir, options, done) {
110
111
  prettier: '^3.5.3'
111
112
  }
112
113
  }
113
- if (options.es6) {
114
- pkg.type = 'module'
115
- }
116
114
 
117
115
  // JavaScript
118
116
  const app = loadTemplate(options.es6 ? 'mjs/app.js' : 'js/app.js')
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "clwy-express-generator",
3
3
  "description": "Express' application generator",
4
4
  "homepage": "https://github.com/clwy-cn/clwy-express-generator",
5
- "version": "5.0.14",
5
+ "version": "5.1.0",
6
6
  "author": "TJ Holowaychuk <tj@vision-media.ca>",
7
7
  "contributors": [
8
8
  "Aaron Heckmann <aaron.heckmann+github@gmail.com>",