generator-reshow 0.17.79 → 0.17.81

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.
@@ -1,12 +1,13 @@
1
1
  # `<%= mainName %>`
2
2
 
3
- > <%= description %>
3
+ > <%= description %>
4
4
 
5
- ## Repository
6
- * `GIT`
7
- * <%= repositoryHomepage %>
8
- * `NPM`
9
- * https://www.npmjs.com/package/<%= mainName %>
5
+ ## Repository
6
+
7
+ - `GIT`
8
+ - <%= repositoryHomepage %>
9
+ - `NPM`
10
+ - https://www.npmjs.com/package/<%= mainName %>
10
11
 
11
12
  ## Usage
12
13
 
@@ -1,7 +1,7 @@
1
1
  const { YoGenerator, YoHelper } = require("yo-reshow");
2
2
 
3
3
  const getUIBuildTypeScript = (filePattern) =>
4
- `npx -p typescript tsc src/*.js ${filePattern} --jsx react-jsx --declaration --allowJs --emitDeclarationOnly --skipLibCheck --declarationDir types`;
4
+ `npx -p typescript tsc src/*.js ${filePattern} --jsx react-jsx --lib esnext,dom --declaration --allowJs --emitDeclarationOnly --skipLibCheck --declarationDir types`;
5
5
 
6
6
  /**
7
7
  * package-json Generator
@@ -35,7 +35,7 @@
35
35
  "clean": "find ./build ./types -name '*.*' | xargs rm -rf",
36
36
  "build:cjs": "BABEL_ENV=cjs babel src -d build/cjs/src --ignore /**/__tests__<%= babelRootMode %>",
37
37
  "build:es": "BABEL_ENV=es babel src -d build/es/src --out-file-extension .mjs<%= babelRootMode %>",
38
- "build:type": "npx -p typescript tsc src/*.js src/**/*.js --declaration --allowJs --emitDeclarationOnly --skipLibCheck --declarationDir types",
38
+ "build:type": "npx -p typescript tsc src/*.js src/**/*.js --lib esnext --declaration --allowJs --emitDeclarationOnly --skipLibCheck --declarationDir types",
39
39
  "build": "npm run clean && npm run build:cjs && npm run build:es && npm run build:type",
40
40
  "mochaFor": "STRICT_MODE=on mocha -r global-jsdom/register",
41
41
  "mocha": "npm run mochaFor -- 'build/{cjs,es}/**/__tests__/*.{js,mjs}'",
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.17.79",
2
+ "version": "0.17.81",
3
3
  "name": "generator-reshow",
4
4
  "repository": {
5
5
  "type": "git",