@modern-js/plugin-changeset 1.2.2 → 1.2.5
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/.eslintrc.js +8 -0
- package/CHANGELOG.md +36 -0
- package/dist/js/modern/commands/release.js +0 -1
- package/dist/js/modern/index.js +22 -22
- package/dist/js/modern/utils/changeset.js +1 -1
- package/dist/js/node/commands/release.js +0 -1
- package/dist/js/node/index.js +24 -25
- package/dist/js/node/utils/changeset.js +2 -4
- package/dist/types/index.d.ts +3 -1
- package/dist/types/utils/changeset.d.ts +1 -2
- package/jest.config.js +0 -1
- package/modern.config.js +5 -1
- package/package.json +6 -13
- package/tests/index.test.ts +0 -7
- package/tests/tsconfig.json +0 -13
package/.eslintrc.js
ADDED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @modern-js/plugin-changeset
|
|
2
2
|
|
|
3
|
+
## 1.2.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6cffe99d: chore:
|
|
8
|
+
remove react eslint rules for `modern-js` rule set.
|
|
9
|
+
add .eslintrc for each package to speed up linting
|
|
10
|
+
- 04ae5262: chore: bump @modern-js/utils to v1.4.1 in dependencies
|
|
11
|
+
- 60f7d8bf: feat: add tests dir to npmignore
|
|
12
|
+
- 5dbbeb57: fix: export extended Command type
|
|
13
|
+
- Updated dependencies [b8599d09]
|
|
14
|
+
- Updated dependencies [6cffe99d]
|
|
15
|
+
- Updated dependencies [04ae5262]
|
|
16
|
+
- Updated dependencies [60f7d8bf]
|
|
17
|
+
- Updated dependencies [3bf4f8b0]
|
|
18
|
+
- @modern-js/utils@1.5.0
|
|
19
|
+
- @modern-js/i18n-cli-language-detector@1.2.2
|
|
20
|
+
- @modern-js/plugin-i18n@1.2.4
|
|
21
|
+
|
|
22
|
+
## 1.2.4
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- bebb39b6: chore: improve devDependencies and peerDependencies
|
|
27
|
+
- Updated dependencies [132f7b53]
|
|
28
|
+
- @modern-js/utils@1.3.7
|
|
29
|
+
|
|
30
|
+
## 1.2.3
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- 61e3f623: feat: convert to new plugin
|
|
35
|
+
- 681a1ff9: feat: remove unnecessary peerDependencies
|
|
36
|
+
- Updated dependencies [c2046f37]
|
|
37
|
+
- @modern-js/utils@1.3.6
|
|
38
|
+
|
|
3
39
|
## 1.2.2
|
|
4
40
|
|
|
5
41
|
### Patch Changes
|
|
@@ -2,7 +2,6 @@ import path from 'path';
|
|
|
2
2
|
import { getPackageManager, isModernjsMonorepo, fs } from '@modern-js/utils';
|
|
3
3
|
import { tag as gitTag } from '@changesets/git';
|
|
4
4
|
import { CHANGESET_PATH, execaWithStreamLog } from "../utils";
|
|
5
|
-
// eslint-disable-next-line max-statements
|
|
6
5
|
export async function release(options) {
|
|
7
6
|
const appDir = process.cwd();
|
|
8
7
|
const isMonorepo = isModernjsMonorepo(appDir);
|
package/dist/js/modern/index.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { createPlugin } from '@modern-js/core';
|
|
2
1
|
import { change, bump, pre, release } from "./commands";
|
|
3
2
|
import { i18n, localeKeys } from "./locale";
|
|
4
3
|
import { getLocaleLanguage } from "./utils";
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
export default (() => ({
|
|
5
|
+
name: '@modern-js/plugin-changeset',
|
|
6
|
+
setup: () => {
|
|
7
|
+
// initial cli language
|
|
8
|
+
i18n.changeLanguage({
|
|
9
|
+
locale: getLocaleLanguage()
|
|
10
|
+
});
|
|
11
|
+
return {
|
|
12
|
+
plugins() {
|
|
13
|
+
return [{}];
|
|
14
|
+
},
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
commands({
|
|
17
|
+
program
|
|
18
|
+
}) {
|
|
19
|
+
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));
|
|
20
|
+
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));
|
|
21
|
+
program.command('pre <enter|exit> [tag]').description(i18n.t(localeKeys.command.pre.describe)).action((type, tag) => pre(type, tag));
|
|
22
|
+
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));
|
|
23
|
+
}
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
});
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
}));
|
|
@@ -15,7 +15,6 @@ var _utils2 = require("../utils");
|
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
18
|
-
// eslint-disable-next-line max-statements
|
|
19
18
|
async function release(options) {
|
|
20
19
|
const appDir = process.cwd();
|
|
21
20
|
const isMonorepo = (0, _utils.isModernjsMonorepo)(appDir);
|
package/dist/js/node/index.js
CHANGED
|
@@ -5,37 +5,36 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var _core = require("@modern-js/core");
|
|
9
|
-
|
|
10
8
|
var _commands = require("./commands");
|
|
11
9
|
|
|
12
10
|
var _locale = require("./locale");
|
|
13
11
|
|
|
14
12
|
var _utils = require("./utils");
|
|
15
13
|
|
|
16
|
-
var _default = (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
14
|
+
var _default = () => ({
|
|
15
|
+
name: '@modern-js/plugin-changeset',
|
|
16
|
+
setup: () => {
|
|
17
|
+
// initial cli language
|
|
18
|
+
_locale.i18n.changeLanguage({
|
|
19
|
+
locale: (0, _utils.getLocaleLanguage)()
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
return {
|
|
23
|
+
plugins() {
|
|
24
|
+
return [{}];
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
commands({
|
|
28
|
+
program
|
|
29
|
+
}) {
|
|
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
|
+
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
|
+
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), '').action(options => (0, _commands.release)(options));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
};
|
|
37
|
+
}
|
|
39
38
|
});
|
|
40
39
|
|
|
41
40
|
exports.default = _default;
|
|
@@ -6,16 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.CHANGESET_PATH = void 0;
|
|
7
7
|
exports.execaWithStreamLog = execaWithStreamLog;
|
|
8
8
|
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
var _utils = require("@modern-js/utils");
|
|
12
10
|
|
|
13
11
|
const CHANGESET_PATH = require.resolve('@changesets/cli');
|
|
14
12
|
|
|
15
13
|
exports.CHANGESET_PATH = CHANGESET_PATH;
|
|
16
14
|
|
|
17
15
|
function execaWithStreamLog(command, args) {
|
|
18
|
-
const promise = (0,
|
|
16
|
+
const promise = (0, _utils.execa)(command, args, {
|
|
19
17
|
stdin: 'inherit',
|
|
20
18
|
stdout: 'inherit',
|
|
21
19
|
stderr: 'inherit'
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import execa from 'execa';
|
|
2
1
|
export declare const CHANGESET_PATH: string;
|
|
3
|
-
export declare function execaWithStreamLog(command: string, args: string[]): execa.ExecaChildProcess<string>;
|
|
2
|
+
export declare function execaWithStreamLog(command: string, args: string[]): import("@modern-js/utils/compiled/execa").ExecaChildProcess<string>;
|
package/jest.config.js
CHANGED
package/modern.config.js
CHANGED
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.2.
|
|
14
|
+
"version": "1.2.5",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"@babel/runtime": "^7",
|
|
36
36
|
"@changesets/cli": "2.16.0",
|
|
37
37
|
"@changesets/git": "^1.1.2",
|
|
38
|
-
"@modern-js/i18n-cli-language-detector": "^1.2.
|
|
39
|
-
"@modern-js/plugin-i18n": "^1.2.
|
|
40
|
-
"@modern-js/utils": "^1.
|
|
38
|
+
"@modern-js/i18n-cli-language-detector": "^1.2.2",
|
|
39
|
+
"@modern-js/plugin-i18n": "^1.2.4",
|
|
40
|
+
"@modern-js/utils": "^1.5.0",
|
|
41
41
|
"execa": "^5.1.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@modern-js/core": "
|
|
44
|
+
"@modern-js/core": "1.8.0",
|
|
45
45
|
"@scripts/build": "0.0.0",
|
|
46
46
|
"@types/jest": "^26",
|
|
47
47
|
"@types/node": "^14",
|
|
@@ -49,21 +49,14 @@
|
|
|
49
49
|
"jest": "^27",
|
|
50
50
|
"@scripts/jest-config": "0.0.0"
|
|
51
51
|
},
|
|
52
|
-
"peerDependencies": {
|
|
53
|
-
"@modern-js/core": "^1.4.3"
|
|
54
|
-
},
|
|
55
52
|
"sideEffects": false,
|
|
56
|
-
"modernConfig": {
|
|
57
|
-
"output": {
|
|
58
|
-
"packageMode": "node-js"
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
53
|
"publishConfig": {
|
|
62
54
|
"registry": "https://registry.npmjs.org/",
|
|
63
55
|
"access": "public"
|
|
64
56
|
},
|
|
65
57
|
"scripts": {
|
|
66
58
|
"new": "modern new",
|
|
59
|
+
"dev": "modern build --watch",
|
|
67
60
|
"build": "modern build",
|
|
68
61
|
"test": "jest --passWithNoTests"
|
|
69
62
|
},
|
package/tests/index.test.ts
DELETED
package/tests/tsconfig.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@modern-js/tsconfig/base",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"declaration": true,
|
|
5
|
-
"jsx": "preserve",
|
|
6
|
-
"baseUrl": "./",
|
|
7
|
-
"outDir": "./out",
|
|
8
|
-
"emitDeclarationOnly": true,
|
|
9
|
-
"isolatedModules": true,
|
|
10
|
-
"paths": {},
|
|
11
|
-
"types": ["node", "jest"]
|
|
12
|
-
}
|
|
13
|
-
}
|