Răsfoiți Sursa

Merge pull request #4261 from weseek/support/prepare-v4.4.1-RC.0

Prepare v4.4.1-RC.0
Yuki Takei 4 ani în urmă
părinte
comite
5a0d06e17f

Fișier diff suprimat deoarece este prea mare
+ 475 - 376
CHANGELOG.md


+ 4 - 2
bin/bump-versions/cli.js

@@ -6,10 +6,12 @@ export async function cli(argv) {
   try {
     const opts = parseArgs(argSpec, argv);
     await fn(opts);
-  } catch (error) {
+  }
+  catch (error) {
     if (error.code === 'ARG_UNKNOWN_OPTION') {
       print(error);
-    } else {
+    }
+    else {
       throw error;
     }
   }

+ 8 - 8
bin/bump-versions/flow/bump-versions.js

@@ -25,14 +25,13 @@ async function bumpVersions({
   }
 
   const config = await loadConfig(dir, 'bump-versions.config');
-  
+
   // get current version
   const { monorepo } = config;
-  const currentVersion =
-    monorepo && monorepo.mainVersionFile
-      ? getCurrentVersion(dir, monorepo.mainVersionFile)
-      : getCurrentVersion(dir);
-  
+  const currentVersion = monorepo && monorepo.mainVersionFile
+    ? getCurrentVersion(dir, monorepo.mainVersionFile)
+    : getCurrentVersion(dir);
+
   // determine next version
   let nextVersion = semver.inc(currentVersion, increment, preid); // set preid if type is 'prerelease'
   nextVersion = await confirmNextVersion({
@@ -47,8 +46,9 @@ async function bumpVersions({
   const updateVersionFn = monorepo
     ? updateVersionMonorepo
     : updateVersion;
-  await updateVersionFn({ config, nextVersion, releaseType, dir, dryRun });
-  installDependencies({ config, dir, dryRun });
+  await updateVersionFn({
+    config, nextVersion, releaseType, dir, dryRun,
+  });
 }
 
 const arg = {

+ 6 - 2
bin/bump-versions/index.js

@@ -1,12 +1,16 @@
 #!/usr/bin/env node
 
+// eslint-disable-next-line no-global-assign
 require = require('esm')(module);
+
 (async function() {
   try {
     process.env.SHIPJS = true;
     await require('./cli').cli(process.argv);
-  } catch (e) {
+  }
+  catch (e) {
+    // eslint-disable-next-line no-console
     console.error(e);
     process.exit(1);
   }
-})();
+}());

+ 48 - 49
bin/bump-versions/step/printHelp.js

@@ -2,54 +2,53 @@ import runStep from 'shipjs/src/step/runStep';
 import { print } from 'shipjs/src/util';
 import { bold, underline } from 'shipjs/src/color';
 
-export default () =>
-  runStep({}, () => {
-    const indent = (line) => `\t${line}`;
+export default () => runStep({}, () => {
+  const indent = line => `\t${line}`;
 
-    const help = `--help`;
-    const dir = `--dir ${underline('PATH')}`;
-    const increment = `--increment ${underline('LEVEL')}`;
-    const preId = `--preid ${underline('IDENTIFIER')}`;
-    const dryRun = `--dry-run`;
-    const all = [help, dir, increment, preId, dryRun]
-      .map((x) => `[${x}]`)
-      .join(' ');
+  const help = '--help';
+  const dir = `--dir ${underline('PATH')}`;
+  const increment = `--increment ${underline('LEVEL')}`;
+  const preId = `--preid ${underline('IDENTIFIER')}`;
+  const dryRun = '--dry-run';
+  const all = [help, dir, increment, preId, dryRun]
+    .map(x => `[${x}]`)
+    .join(' ');
 
-    const messages = [
-      bold('NAME'),
-      indent('bump-versions - Bump versions of packages.'),
-      '',
-      bold('USAGE'),
-      indent(`node ./bin/github-actions/bump-versions ${all}`),
-      '',
-      bold('OPTIONS'),
-      indent(`-h, ${help}`),
-      indent('  Print this help'),
-      '',
-      indent(`-d, ${dir}`),
-      indent(
-        `  Specify the ${underline(
-          'PATH'
-        )} of the repository (default: the current directory).`
-      ),
-      '',
-      indent(`-i, ${increment}`),
-      indent(
-        `  Specify the ${underline(
-          'LEVEL'
-        )} for semver.inc() to increment a version (default: 'patch').`
-      ),
-      '',
-      indent(`${preId}`),
-      indent(
-        `  Specify the ${underline(
-          'IDENTIFIER'
-        )} for semver.inc() with 'prerelease' type (default: 'RC').`
-      ),
-      '',
-      indent(`-D, ${dryRun}`),
-      indent('  Displays the steps without actually doing them.'),
-      '',
-    ];
-    print(messages.join('\n'));
-  });
+  const messages = [
+    bold('NAME'),
+    indent('bump-versions - Bump versions of packages.'),
+    '',
+    bold('USAGE'),
+    indent(`node ./bin/github-actions/bump-versions ${all}`),
+    '',
+    bold('OPTIONS'),
+    indent(`-h, ${help}`),
+    indent('  Print this help'),
+    '',
+    indent(`-d, ${dir}`),
+    indent(
+      `  Specify the ${underline(
+        'PATH',
+      )} of the repository (default: the current directory).`,
+    ),
+    '',
+    indent(`-i, ${increment}`),
+    indent(
+      `  Specify the ${underline(
+        'LEVEL',
+      )} for semver.inc() to increment a version (default: 'patch').`,
+    ),
+    '',
+    indent(`${preId}`),
+    indent(
+      `  Specify the ${underline(
+        'IDENTIFIER',
+      )} for semver.inc() with 'prerelease' type (default: 'RC').`,
+    ),
+    '',
+    indent(`-D, ${dryRun}`),
+    indent('  Displays the steps without actually doing them.'),
+    '',
+  ];
+  print(messages.join('\n'));
+});

+ 1 - 5
bump-versions.config.js

@@ -2,11 +2,7 @@ module.exports = {
   monorepo: {
     mainVersionFile: 'package.json',
     packagesToBump: [
-      'packages/app',
-      'packages/core',
-      'packages/slack',
-      'packages/ui',
-      'packages/plugin-*',
+      'packages/*',
     ],
   },
 };

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "growi",
-  "version": "4.4.0-RC",
+  "version": "4.4.1-RC.0",
   "description": "Team collaboration software using markdown",
   "tags": [
     "wiki",

+ 6 - 6
packages/app/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@growi/app",
-  "version": "4.4.0-RC",
+  "version": "4.4.1-RC.0",
   "license": "MIT",
   "scripts": {
     "//// for production": "",
@@ -54,10 +54,10 @@
   "dependencies": {
     "@browser-bunyan/console-formatted-stream": "^1.6.2",
     "@google-cloud/storage": "^5.8.5",
-    "@growi/plugin-attachment-refs": "^4.4.0-RC",
-    "@growi/plugin-pukiwiki-like-linker": "^4.4.0-RC",
-    "@growi/plugin-lsx": "^4.4.0-RC",
-    "@growi/slack": "^4.4.0-RC",
+    "@growi/plugin-attachment-refs": "^4.4.1-RC.0",
+    "@growi/plugin-pukiwiki-like-linker": "^4.4.1-RC.0",
+    "@growi/plugin-lsx": "^4.4.1-RC.0",
+    "@growi/slack": "^4.4.1-RC.0",
     "@promster/express": "^5.0.1",
     "@promster/server": "^6.0.0",
     "@slack/events-api": "^3.0.0",
@@ -153,7 +153,7 @@
     "@alienfast/i18next-loader": "^1.0.16",
     "@atlaskit/drawer": "^5.3.7",
     "@atlaskit/navigation-next": "^8.0.5",
-    "@growi/ui": "^4.4.0-RC",
+    "@growi/ui": "^4.4.1-RC.0",
     "@handsontable/react": "=2.1.0",
     "@types/compression": "^1.7.0",
     "@types/express": "^4.17.11",

+ 5 - 4
packages/core/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@growi/core",
-  "version": "4.4.0-RC",
+  "version": "4.4.1-RC.0",
   "description": "GROWI Core Libraries",
   "license": "MIT",
   "keywords": [
@@ -8,7 +8,9 @@
   ],
   "main": "dist/cjs/index.js",
   "module": "dist/esm/index.js",
-  "files": ["dist"],
+  "files": [
+    "dist"
+  ],
   "scripts": {
     "build": "run-p build:*",
     "build:cjs": "tsc -p tsconfig.build.cjs.json && tsc-alias -p tsconfig.build.cjs.json",
@@ -19,6 +21,5 @@
     "test": "jest --verbose"
   },
   "dependencies": {},
-  "devDependencies": {
-  }
+  "devDependencies": {}
 }

+ 4 - 2
packages/plugin-attachment-refs/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@growi/plugin-attachment-refs",
-  "version": "4.4.0-RC",
+  "version": "4.4.1-RC.0",
   "description": "GROWI Plugin to add ref/refimg/refs/refsimg tags",
   "license": "MIT",
   "keywords": [
@@ -9,7 +9,9 @@
   ],
   "main": "dist/cjs/index.js",
   "module": "dist/esm/index.js",
-  "files": ["dist"],
+  "files": [
+    "dist"
+  ],
   "scripts": {
     "build": "run-p build:*",
     "build:cjs": "tsc -p tsconfig.build.cjs.json && tsc-alias -p tsconfig.build.cjs.json",

+ 5 - 4
packages/plugin-lsx/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@growi/plugin-lsx",
-  "version": "4.4.0-RC",
+  "version": "4.4.1-RC.0",
   "description": "GROWI plugin to list pages",
   "license": "MIT",
   "keywords": [
@@ -9,7 +9,9 @@
   ],
   "main": "dist/cjs/index.js",
   "module": "dist/esm/index.js",
-  "files": ["dist"],
+  "files": [
+    "dist"
+  ],
   "scripts": {
     "build": "run-p build:*",
     "build:cjs": "tsc -p tsconfig.build.cjs.json && tsc-alias -p tsconfig.build.cjs.json",
@@ -19,8 +21,7 @@
     "lint": "run-p lint:*",
     "test": ""
   },
-  "dependencies": {
-  },
+  "dependencies": {},
   "devDependencies": {
     "react": "^16.8.3",
     "react-dom": "^16.8.3"

+ 4 - 2
packages/plugin-pukiwiki-like-linker/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@growi/plugin-pukiwiki-like-linker",
-  "version": "4.4.0-RC",
+  "version": "4.4.1-RC.0",
   "description": "GROWI plugin to add PukiwikiLikeLinker",
   "license": "MIT",
   "keywords": [
@@ -9,7 +9,9 @@
   ],
   "main": "dist/cjs/index.js",
   "module": "dist/esm/index.js",
-  "files": ["dist"],
+  "files": [
+    "dist"
+  ],
   "scripts": {
     "build": "run-p build:*",
     "build:cjs": "tsc -p tsconfig.build.cjs.json && tsc-alias -p tsconfig.build.cjs.json",

+ 1 - 1
packages/slack/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@growi/slack",
-  "version": "4.4.0-RC",
+  "version": "4.4.1-RC.0",
   "license": "MIT",
   "main": "dist/index.js",
   "typings": "dist/index.d.ts",

+ 2 - 2
packages/slackbot-proxy/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@growi/slackbot-proxy",
-  "version": "1.0.3",
+  "version": "4.4.1-RC.0",
   "license": "MIT",
   "scripts": {
     "build": "yarn tsc && tsc-alias -p tsconfig.build.json",
@@ -23,7 +23,7 @@
   "// comments for dependencies": {},
   "dependencies": {
     "@godaddy/terminus": "^4.8.0",
-    "@growi/slack": "^4.4.0-RC",
+    "@growi/slack": "^4.4.1-RC.0",
     "@slack/oauth": "^2.0.1",
     "@slack/web-api": "^6.2.4",
     "@tsed/common": "^6.43.0",

+ 4 - 2
packages/ui/package.json

@@ -1,13 +1,15 @@
 {
   "name": "@growi/ui",
-  "version": "4.4.0-RC",
+  "version": "4.4.1-RC.0",
   "description": "GROWI UI Libraries",
   "license": "MIT",
   "keywords": [
     "growi"
   ],
   "module": "dist/esm/index.js",
-  "files": ["dist"],
+  "files": [
+    "dist"
+  ],
   "scripts": {
     "lint:js": "eslint **/*.{js,jsx,ts,tsx}",
     "lint:styles": "stylelint src/styles/scss/**/*.scss",

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff