@modern-js/plugin-changeset 1.0.1 → 1.1.2-rc.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 +42 -0
- package/dist/js/modern/commands/release.js +2 -1
- package/dist/js/modern/index.js +1 -1
- package/dist/js/modern/utils/changeset.js +1 -2
- package/dist/js/node/commands/release.js +5 -1
- package/dist/js/node/index.js +1 -1
- package/dist/js/node/utils/changeset.js +1 -3
- package/package.json +10 -9
- package/src/commands/release.ts +2 -6
- package/src/index.ts +1 -0
- package/src/utils/changeset.ts +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# @modern-js/plugin-changeset
|
|
2
2
|
|
|
3
|
+
## 1.1.2-rc.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [d927bc83]
|
|
8
|
+
- Updated dependencies [d73ff455]
|
|
9
|
+
- Updated dependencies [9c1ab865]
|
|
10
|
+
- Updated dependencies [d73ff455]
|
|
11
|
+
- Updated dependencies [d73ff455]
|
|
12
|
+
- Updated dependencies [d73ff455]
|
|
13
|
+
- Updated dependencies [d73ff455]
|
|
14
|
+
- @modern-js/utils@1.1.4-rc.0
|
|
15
|
+
- @modern-js/core@1.1.4-rc.0
|
|
16
|
+
- @modern-js/i18n-cli-language-detector@1.1.1
|
|
17
|
+
- @modern-js/plugin-i18n@1.1.1
|
|
18
|
+
|
|
19
|
+
## 1.1.1
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- 0fa83663: support more .env files
|
|
24
|
+
- Updated dependencies [6f7fe574]
|
|
25
|
+
- Updated dependencies [0fa83663]
|
|
26
|
+
- Updated dependencies [f594fbc8]
|
|
27
|
+
- @modern-js/core@1.1.2
|
|
28
|
+
- @modern-js/i18n-cli-language-detector@1.1.1
|
|
29
|
+
- @modern-js/plugin-i18n@1.1.1
|
|
30
|
+
- @modern-js/utils@1.1.2
|
|
31
|
+
|
|
32
|
+
## 1.1.0
|
|
33
|
+
|
|
34
|
+
### Minor Changes
|
|
35
|
+
|
|
36
|
+
- 96119db2: Relese v1.1.0### Patch Changes
|
|
37
|
+
|
|
38
|
+
- Updated dependencies [96119db2]
|
|
39
|
+
- Updated dependencies [eb00b569]
|
|
40
|
+
- @modern-js/core@1.1.0
|
|
41
|
+
- @modern-js/i18n-cli-language-detector@1.1.0
|
|
42
|
+
- @modern-js/plugin-i18n@1.1.0
|
|
43
|
+
- @modern-js/utils@1.1.0
|
|
44
|
+
|
|
3
45
|
## 1.0.1
|
|
4
46
|
|
|
5
47
|
### Patch Changes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import path from 'path';
|
|
2
|
+
import { getPackageManager, isModernjsMonorepo, fs } from '@modern-js/utils';
|
|
2
3
|
import { tag as gitTag } from '@changesets/git';
|
|
3
4
|
import { CHANGESET_PATH, execaWithStreamLog } from "../utils";
|
|
4
5
|
// eslint-disable-next-line max-statements
|
package/dist/js/modern/index.js
CHANGED
|
@@ -18,7 +18,7 @@ export default createPlugin(() => {
|
|
|
18
18
|
program.command('change').description(i18n.t(localeKeys.command.change.describe)).option('--empty', i18n.t(localeKeys.command.change.empty), false).option('--open', i18n.t(localeKeys.command.change.open), false).action(options => change(options));
|
|
19
19
|
program.command('bump').description(i18n.t(localeKeys.command.bump.describe)).option('--canary', i18n.t(localeKeys.command.bump.canary), false).option('--preid <tag>', i18n.t(localeKeys.command.bump.preid), 'next').option('--snapshot [snapshot]', i18n.t(localeKeys.command.bump.snapshot), false).action(options => bump(options));
|
|
20
20
|
program.command('pre <enter|exit> [tag]').description(i18n.t(localeKeys.command.pre.describe)).action((type, tag) => pre(type, tag));
|
|
21
|
-
program.command('release').description(i18n.t(localeKeys.command.release.describe)).option('--tag <tag>', i18n.t(localeKeys.command.release.tag), '').option('--ignore-scripts', i18n.t(localeKeys.command.release.ignore_scripts), '').option('--no-git-checks', i18n.t(localeKeys.command.release.no_git_checks),
|
|
21
|
+
program.command('release').description(i18n.t(localeKeys.command.release.describe)).option('--tag <tag>', i18n.t(localeKeys.command.release.tag), '').option('--ignore-scripts', i18n.t(localeKeys.command.release.ignore_scripts), '').option('--no-git-checks', i18n.t(localeKeys.command.release.no_git_checks), '').action(options => release(options));
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import execa from 'execa';
|
|
2
|
-
|
|
3
|
-
export const CHANGESET_PATH = upath.normalizeSafe(require.resolve('@changesets/cli'));
|
|
2
|
+
export const CHANGESET_PATH = require.resolve('@changesets/cli');
|
|
4
3
|
export function execaWithStreamLog(command, args) {
|
|
5
4
|
const promise = execa(command, args, {
|
|
6
5
|
stdin: 'inherit',
|
|
@@ -5,12 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.release = release;
|
|
7
7
|
|
|
8
|
+
var _path = _interopRequireDefault(require("path"));
|
|
9
|
+
|
|
8
10
|
var _utils = require("@modern-js/utils");
|
|
9
11
|
|
|
10
12
|
var _git = require("@changesets/git");
|
|
11
13
|
|
|
12
14
|
var _utils2 = require("../utils");
|
|
13
15
|
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
14
18
|
// eslint-disable-next-line max-statements
|
|
15
19
|
async function release(options) {
|
|
16
20
|
const appDir = process.cwd();
|
|
@@ -48,7 +52,7 @@ async function release(options) {
|
|
|
48
52
|
|
|
49
53
|
await (0, _utils2.execaWithStreamLog)(packageManager, params);
|
|
50
54
|
|
|
51
|
-
const pnpmPublishSummaryFile =
|
|
55
|
+
const pnpmPublishSummaryFile = _path.default.join(appDir, 'pnpm-publish-summary.json');
|
|
52
56
|
|
|
53
57
|
const publishInfo = await _utils.fs.readJSON(pnpmPublishSummaryFile, 'utf-8');
|
|
54
58
|
await Promise.all((publishInfo.publishedPackages || []).map(pkg => (0, _git.tag)(`${pkg.name}@${pkg.version}`, appDir)));
|
package/dist/js/node/index.js
CHANGED
|
@@ -30,7 +30,7 @@ var _default = (0, _core.createPlugin)(() => {
|
|
|
30
30
|
program.command('change').description(_locale.i18n.t(_locale.localeKeys.command.change.describe)).option('--empty', _locale.i18n.t(_locale.localeKeys.command.change.empty), false).option('--open', _locale.i18n.t(_locale.localeKeys.command.change.open), false).action(options => (0, _commands.change)(options));
|
|
31
31
|
program.command('bump').description(_locale.i18n.t(_locale.localeKeys.command.bump.describe)).option('--canary', _locale.i18n.t(_locale.localeKeys.command.bump.canary), false).option('--preid <tag>', _locale.i18n.t(_locale.localeKeys.command.bump.preid), 'next').option('--snapshot [snapshot]', _locale.i18n.t(_locale.localeKeys.command.bump.snapshot), false).action(options => (0, _commands.bump)(options));
|
|
32
32
|
program.command('pre <enter|exit> [tag]').description(_locale.i18n.t(_locale.localeKeys.command.pre.describe)).action((type, tag) => (0, _commands.pre)(type, tag));
|
|
33
|
-
program.command('release').description(_locale.i18n.t(_locale.localeKeys.command.release.describe)).option('--tag <tag>', _locale.i18n.t(_locale.localeKeys.command.release.tag), '').option('--ignore-scripts', _locale.i18n.t(_locale.localeKeys.command.release.ignore_scripts), '').option('--no-git-checks', _locale.i18n.t(_locale.localeKeys.command.release.no_git_checks),
|
|
33
|
+
program.command('release').description(_locale.i18n.t(_locale.localeKeys.command.release.describe)).option('--tag <tag>', _locale.i18n.t(_locale.localeKeys.command.release.tag), '').option('--ignore-scripts', _locale.i18n.t(_locale.localeKeys.command.release.ignore_scripts), '').option('--no-git-checks', _locale.i18n.t(_locale.localeKeys.command.release.no_git_checks), '').action(options => (0, _commands.release)(options));
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
};
|
|
@@ -8,11 +8,9 @@ exports.execaWithStreamLog = execaWithStreamLog;
|
|
|
8
8
|
|
|
9
9
|
var _execa = _interopRequireDefault(require("execa"));
|
|
10
10
|
|
|
11
|
-
var _utils = require("@modern-js/utils");
|
|
12
|
-
|
|
13
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
12
|
|
|
15
|
-
const CHANGESET_PATH =
|
|
13
|
+
const CHANGESET_PATH = require.resolve('@changesets/cli');
|
|
16
14
|
|
|
17
15
|
exports.CHANGESET_PATH = CHANGESET_PATH;
|
|
18
16
|
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.0
|
|
14
|
+
"version": "1.1.2-rc.0",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -31,21 +31,21 @@
|
|
|
31
31
|
"@babel/runtime": "^7",
|
|
32
32
|
"@changesets/cli": "2.16.0",
|
|
33
33
|
"@changesets/git": "^1.1.2",
|
|
34
|
-
"@modern-js/i18n-cli-language-detector": "^1.
|
|
35
|
-
"@modern-js/plugin-i18n": "^1.
|
|
36
|
-
"@modern-js/utils": "^1.
|
|
34
|
+
"@modern-js/i18n-cli-language-detector": "^1.1.1",
|
|
35
|
+
"@modern-js/plugin-i18n": "^1.1.1",
|
|
36
|
+
"@modern-js/utils": "^1.1.4-rc.0",
|
|
37
37
|
"execa": "^5.1.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@modern-js/core": "^1.
|
|
41
|
-
"@modern-js/module-tools": "^1.
|
|
42
|
-
"@modern-js/plugin-testing": "^1.
|
|
40
|
+
"@modern-js/core": "^1.1.4-rc.0",
|
|
41
|
+
"@modern-js/module-tools": "^1.1.1",
|
|
42
|
+
"@modern-js/plugin-testing": "^1.1.1",
|
|
43
43
|
"@types/jest": "^26",
|
|
44
44
|
"@types/node": "^14",
|
|
45
45
|
"typescript": "^4"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@modern-js/core": "^1.
|
|
48
|
+
"@modern-js/core": "^1.1.4-rc.0"
|
|
49
49
|
},
|
|
50
50
|
"sideEffects": false,
|
|
51
51
|
"modernConfig": {
|
|
@@ -61,5 +61,6 @@
|
|
|
61
61
|
"new": "modern new",
|
|
62
62
|
"build": "modern build",
|
|
63
63
|
"test": "modern test --passWithNoTests"
|
|
64
|
-
}
|
|
64
|
+
},
|
|
65
|
+
"readme": "\n<p align=\"center\">\n <a href=\"https://modernjs.dev\" target=\"blank\"><img src=\"https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png\" width=\"300\" alt=\"Modern.js Logo\" /></a>\n</p>\n<p align=\"center\">\n现代 Web 工程体系\n <br/>\n <a href=\"https://modernjs.dev\" target=\"blank\">\n modernjs.dev\n </a>\n</p>\n<p align=\"center\">\n The meta-framework suite designed from scratch for frontend-focused modern web development\n</p>\n\n# Introduction\n\n> The doc site ([modernjs.dev](https://modernjs.dev)) and articles are only available in Chinese for now, we are planning to add English versions soon.\n\n- [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)\n\n## Getting Started\n\n- [Quick Start](https://modernjs.dev/docs/start)\n- [Guides](https://modernjs.dev/docs/guides)\n- [API References](https://modernjs.dev/docs/apis)\n\n## Contributing\n\n- [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)\n"
|
|
65
66
|
}
|
package/src/commands/release.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
getPackageManager,
|
|
4
|
-
isModernjsMonorepo,
|
|
5
|
-
fs,
|
|
6
|
-
} from '@modern-js/utils';
|
|
1
|
+
import path from 'path';
|
|
2
|
+
import { getPackageManager, isModernjsMonorepo, fs } from '@modern-js/utils';
|
|
7
3
|
import { tag as gitTag } from '@changesets/git';
|
|
8
4
|
import { CHANGESET_PATH, execaWithStreamLog } from '../utils';
|
|
9
5
|
|
package/src/index.ts
CHANGED
package/src/utils/changeset.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import execa from 'execa';
|
|
2
|
-
import { upath } from '@modern-js/utils';
|
|
3
2
|
|
|
4
|
-
export const CHANGESET_PATH =
|
|
5
|
-
require.resolve('@changesets/cli'),
|
|
6
|
-
);
|
|
3
|
+
export const CHANGESET_PATH = require.resolve('@changesets/cli');
|
|
7
4
|
|
|
8
5
|
export function execaWithStreamLog(command: string, args: string[]) {
|
|
9
6
|
const promise = execa(command, args, {
|