@modern-js/plugin-changeset 1.15.0 → 1.17.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,40 @@
1
1
  # @modern-js/plugin-changeset
2
2
 
3
+ ## 1.17.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [1b9176f]
8
+ - Updated dependencies [77d3a38]
9
+ - Updated dependencies [151329d]
10
+ - Updated dependencies [5af9472]
11
+ - Updated dependencies [6b6a534]
12
+ - Updated dependencies [6b43a2b]
13
+ - Updated dependencies [a7be124]
14
+ - Updated dependencies [31547b4]
15
+ - @modern-js/utils@1.17.0
16
+ - @modern-js/plugin-i18n@1.17.0
17
+
18
+ ## 1.16.1
19
+
20
+ ### Patch Changes
21
+
22
+ - f2a25cc0c: fix: check monorepo
23
+ fix: 修改检查 monorepo 的逻辑
24
+
25
+ ## 1.16.0
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies [641592f52]
30
+ - Updated dependencies [3904b30a5]
31
+ - Updated dependencies [1100dd58c]
32
+ - Updated dependencies [e04e6e76a]
33
+ - Updated dependencies [81c66e4a4]
34
+ - Updated dependencies [2c305b6f5]
35
+ - @modern-js/utils@1.16.0
36
+ - @modern-js/plugin-i18n@1.16.0
37
+
3
38
  ## 1.15.0
4
39
 
5
40
  ### 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.15.0",
14
+ "version": "1.17.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.15.0",
39
- "@modern-js/utils": "1.15.0",
38
+ "@modern-js/plugin-i18n": "1.17.0",
39
+ "@modern-js/utils": "1.17.0",
40
40
  "execa": "^5.1.1",
41
41
  "resolve-from": "^5.0.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@modern-js/core": "1.15.0",
45
- "@scripts/build": "1.15.0",
44
+ "@modern-js/core": "1.17.0",
45
+ "@scripts/build": "1.17.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.17.0"
51
51
  },
52
52
  "sideEffects": false,
53
53
  "publishConfig": {