@modern-js/plugin-changeset 1.19.0 → 1.20.1

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/CHANGELOG.md CHANGED
@@ -1,13 +1,39 @@
1
1
  # @modern-js/plugin-changeset
2
2
 
3
+ ## 1.20.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [49515c5]
8
+ - @modern-js/utils@1.20.1
9
+ - @modern-js/plugin-i18n@1.20.1
10
+
11
+ ## 1.20.0
12
+
13
+ ### Patch Changes
14
+
15
+ - 8c05089: fix: support monorepo deploy in pnpm 7
16
+ fix: 修复 monorepo deploy 命令在 pnpm 7 下的问题
17
+ - Updated dependencies [d5d570b]
18
+ - Updated dependencies [4ddc185]
19
+ - Updated dependencies [df8ee7e]
20
+ - Updated dependencies [8c05089]
21
+ - @modern-js/utils@1.20.0
22
+ - @modern-js/plugin-i18n@1.20.0
23
+
3
24
  ## 1.19.0
4
25
 
5
26
  ### Minor Changes
6
27
 
7
- - d2fbefc5: feat: release command support pnpm v7
28
+ - d2fbefc: feat: release command support pnpm v7
8
29
 
9
30
  feat: release 命令支持 pnpm v7
10
31
 
32
+ ### Patch Changes
33
+
34
+ - @modern-js/plugin-i18n@1.19.0
35
+ - @modern-js/utils@1.19.0
36
+
11
37
  ## 1.18.1
12
38
 
13
39
  ### Patch Changes
@@ -1,7 +1,7 @@
1
1
  import path from 'path';
2
- import { getPackageManager, isMonorepo, fs } from '@modern-js/utils';
2
+ import { getPackageManager, isMonorepo, fs, getPnpmVersion } from '@modern-js/utils';
3
3
  import { tag as gitTag } from '@changesets/git';
4
- import { CHANGESET_PATH, execaWithStreamLog, getPnpmVersion } from "../utils";
4
+ import { CHANGESET_PATH, execaWithStreamLog } from "../utils";
5
5
  export async function release(options) {
6
6
  const appDir = process.cwd();
7
7
  const packageManager = await getPackageManager(process.cwd());
@@ -1,3 +1,2 @@
1
1
  export * from "./changeset";
2
- export * from "./language";
3
- export * from "./pnpm";
2
+ export * from "./language";
@@ -43,7 +43,7 @@ async function release(options) {
43
43
 
44
44
  params.push('-r');
45
45
  params.push('--filter');
46
- const pnpmVersion = await (0, _utils2.getPnpmVersion)();
46
+ const pnpmVersion = await (0, _utils.getPnpmVersion)();
47
47
 
48
48
  if (pnpmVersion.startsWith('6')) {
49
49
  params.push('./packages/');
@@ -28,17 +28,4 @@ Object.keys(_language).forEach(function (key) {
28
28
  return _language[key];
29
29
  }
30
30
  });
31
- });
32
-
33
- var _pnpm = require("./pnpm");
34
-
35
- Object.keys(_pnpm).forEach(function (key) {
36
- if (key === "default" || key === "__esModule") return;
37
- if (key in exports && exports[key] === _pnpm[key]) return;
38
- Object.defineProperty(exports, key, {
39
- enumerable: true,
40
- get: function () {
41
- return _pnpm[key];
42
- }
43
- });
44
31
  });
@@ -1,3 +1,2 @@
1
1
  export * from './changeset';
2
- export * from './language';
3
- export * from './pnpm';
2
+ export * from './language';
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.19.0",
14
+ "version": "1.20.1",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -35,19 +35,19 @@
35
35
  "@changesets/cli": "^2.23.0",
36
36
  "@changesets/git": "^1.3.2",
37
37
  "@changesets/read": "^0.5.5",
38
- "@modern-js/plugin-i18n": "1.18.1",
39
- "@modern-js/utils": "1.18.1",
38
+ "@modern-js/plugin-i18n": "1.20.1",
39
+ "@modern-js/utils": "1.20.1",
40
40
  "execa": "^5.1.1",
41
41
  "resolve-from": "^5.0.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@modern-js/core": "1.18.1",
45
- "@scripts/build": "1.18.1",
44
+ "@modern-js/core": "1.20.1",
45
+ "@scripts/build": "1.20.1",
46
46
  "@types/jest": "^27",
47
47
  "@types/node": "^14",
48
48
  "typescript": "^4",
49
49
  "jest": "^27",
50
- "@scripts/jest-config": "1.18.1"
50
+ "@scripts/jest-config": "1.20.1"
51
51
  },
52
52
  "sideEffects": false,
53
53
  "publishConfig": {
@@ -1,7 +0,0 @@
1
- import execa from 'execa';
2
- export async function getPnpmVersion() {
3
- const {
4
- stdout
5
- } = await execa('pnpm', ['--version']);
6
- return stdout;
7
- }
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getPnpmVersion = getPnpmVersion;
7
-
8
- var _execa = _interopRequireDefault(require("execa"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
-
12
- async function getPnpmVersion() {
13
- const {
14
- stdout
15
- } = await (0, _execa.default)('pnpm', ['--version']);
16
- return stdout;
17
- }
@@ -1 +0,0 @@
1
- export declare function getPnpmVersion(): Promise<string>;