@modern-js/plugin-changeset 1.16.0 → 1.18.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # @modern-js/plugin-changeset
2
2
 
3
+ ## 1.18.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [8280920]
8
+ - Updated dependencies [5227370]
9
+ - Updated dependencies [7928bae]
10
+ - @modern-js/utils@1.18.0
11
+ - @modern-js/plugin-i18n@1.18.0
12
+
13
+ ## 1.17.0
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [1b9176f]
18
+ - Updated dependencies [77d3a38]
19
+ - Updated dependencies [151329d]
20
+ - Updated dependencies [5af9472]
21
+ - Updated dependencies [6b6a534]
22
+ - Updated dependencies [6b43a2b]
23
+ - Updated dependencies [a7be124]
24
+ - Updated dependencies [31547b4]
25
+ - @modern-js/utils@1.17.0
26
+ - @modern-js/plugin-i18n@1.17.0
27
+
28
+ ## 1.16.1
29
+
30
+ ### Patch Changes
31
+
32
+ - f2a25cc0c: fix: check monorepo
33
+ fix: 修改检查 monorepo 的逻辑
34
+
3
35
  ## 1.16.0
4
36
 
5
37
  ### Patch Changes
@@ -1,10 +1,9 @@
1
1
  import path from 'path';
2
- import { getPackageManager, isModernjsMonorepo, fs } from '@modern-js/utils';
2
+ import { getPackageManager, isMonorepo, fs } from '@modern-js/utils';
3
3
  import { tag as gitTag } from '@changesets/git';
4
4
  import { CHANGESET_PATH, execaWithStreamLog } from "../utils";
5
5
  export async function release(options) {
6
6
  const appDir = process.cwd();
7
- const isMonorepo = isModernjsMonorepo(appDir);
8
7
  const packageManager = await getPackageManager(process.cwd());
9
8
  const params = ['publish'];
10
9
  const {
@@ -24,7 +23,7 @@ export async function release(options) {
24
23
  params.push(otp);
25
24
  }
26
25
 
27
- if (!isMonorepo || packageManager === 'yarn' || packageManager === 'npm') {
26
+ if (!isMonorepo(appDir) || packageManager === 'yarn' || packageManager === 'npm') {
28
27
  await execaWithStreamLog(process.execPath, [CHANGESET_PATH, ...params]);
29
28
  return;
30
29
  }
@@ -17,7 +17,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
17
17
 
18
18
  async function release(options) {
19
19
  const appDir = process.cwd();
20
- const isMonorepo = (0, _utils.isModernjsMonorepo)(appDir);
21
20
  const packageManager = await (0, _utils.getPackageManager)(process.cwd());
22
21
  const params = ['publish'];
23
22
  const {
@@ -37,7 +36,7 @@ async function release(options) {
37
36
  params.push(otp);
38
37
  }
39
38
 
40
- if (!isMonorepo || packageManager === 'yarn' || packageManager === 'npm') {
39
+ if (!(0, _utils.isMonorepo)(appDir) || packageManager === 'yarn' || packageManager === 'npm') {
41
40
  await (0, _utils2.execaWithStreamLog)(process.execPath, [_utils2.CHANGESET_PATH, ...params]);
42
41
  return;
43
42
  }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.16.0",
14
+ "version": "1.18.0",
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.16.0",
39
- "@modern-js/utils": "1.16.0",
38
+ "@modern-js/plugin-i18n": "1.18.0",
39
+ "@modern-js/utils": "1.18.0",
40
40
  "execa": "^5.1.1",
41
41
  "resolve-from": "^5.0.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@modern-js/core": "1.16.0",
45
- "@scripts/build": "1.15.0",
44
+ "@modern-js/core": "1.18.0",
45
+ "@scripts/build": "1.18.0",
46
46
  "@types/jest": "^27",
47
47
  "@types/node": "^14",
48
48
  "typescript": "^4",
49
49
  "jest": "^27",
50
- "@scripts/jest-config": "1.15.0"
50
+ "@scripts/jest-config": "1.18.0"
51
51
  },
52
52
  "sideEffects": false,
53
53
  "publishConfig": {