generator-reshow 0.17.45 → 0.17.47

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.
@@ -29,7 +29,7 @@ describe("!! docker !!", () => {
29
29
  });
30
30
 
31
31
  it("should have folder", () => {
32
- // assert.file(["src", "ui"]);
32
+ assert.file(["bin", ".circleci"]);
33
33
  });
34
34
 
35
35
  it("should have file", () => {
@@ -5,6 +5,13 @@
5
5
 
6
6
  > <%= description %>
7
7
 
8
+ ## GIT
9
+ * <%= repositoryUrl %>
10
+
11
+ ## Docker hub
12
+ * <%= dockerOrgName %>/<%= dockerImageName %>
13
+ * https://hub.docker.com/r/<%= dockerOrgName %>/<%= dockerImageName %>
14
+
8
15
  ## Usage
9
16
 
10
17
  ```
@@ -36,7 +36,7 @@
36
36
  "build:es": "BABEL_ENV=es babel src -d build/es/src --out-file-extension .mjs<%= babelRootMode %>",
37
37
  "build:type": "npx -p typescript tsc src/*.js src/**/*.js --declaration --allowJs --emitDeclarationOnly --skipLibCheck --declarationDir types",
38
38
  "build": "npm run clean && npm run build:cjs && npm run build:es && npm run build:type",
39
- "mochaFor": "mocha -r global-jsdom/register",
39
+ "mochaFor": "STRICT_MODE=on mocha -r global-jsdom/register",
40
40
  "mocha": "npm run mochaFor -- 'build/{cjs,es}/**/__tests__/*.{js,mjs}'",
41
41
  "test": "npm run build && npm run mocha",
42
42
  "prepublishOnly": "npm run test"
@@ -76,7 +76,8 @@ module.exports = class extends YoGenerator {
76
76
 
77
77
  const pkgFile = isFile(pkgjson);
78
78
  if (pkgFile) {
79
- updateJSON(null, pkgFile, null, ({ exports = {}, ...json }) => {
79
+ updateJSON(null, pkgFile, null, (json = {}) => {
80
+ const { exports } = json;
80
81
  if (this.options.n) {
81
82
  const diff = {};
82
83
  KEYS(exports).forEach((key) => {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.17.45",
2
+ "version": "0.17.47",
3
3
  "name": "generator-reshow",
4
4
  "repository": {
5
5
  "type": "git",
@@ -20,7 +20,7 @@
20
20
  "yo-unit": "*"
21
21
  },
22
22
  "scripts": {
23
- "mochaFor": "mocha --timeout 3000",
23
+ "mochaFor": "mocha --timeout 2500",
24
24
  "mocha": "npm run mochaFor -- 'generators/**/__tests__/*.js'",
25
25
  "test": "npm run mocha",
26
26
  "prepublishOnly": "npm run test"
@@ -32,6 +32,8 @@
32
32
  "node": ">=12"
33
33
  },
34
34
  "files": [
35
- "generators"
35
+ "generators",
36
+ "package.json",
37
+ "README.md"
36
38
  ]
37
39
  }