@modern-js/plugin-changeset 1.2.1 → 1.2.4
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 +27 -0
- package/dist/js/modern/commands/release.js +1 -1
- package/dist/js/modern/index.js +22 -22
- package/dist/js/node/commands/release.js +1 -1
- package/dist/js/node/index.js +24 -25
- package/dist/types/index.d.ts +3 -1
- package/jest.config.js +0 -1
- package/modern.config.js +5 -1
- package/package.json +5 -13
- package/tests/tsconfig.json +13 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @modern-js/plugin-changeset
|
|
2
2
|
|
|
3
|
+
## 1.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- bebb39b6: chore: improve devDependencies and peerDependencies
|
|
8
|
+
- Updated dependencies [132f7b53]
|
|
9
|
+
- @modern-js/utils@1.3.7
|
|
10
|
+
|
|
11
|
+
## 1.2.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 61e3f623: feat: convert to new plugin
|
|
16
|
+
- 681a1ff9: feat: remove unnecessary peerDependencies
|
|
17
|
+
- Updated dependencies [c2046f37]
|
|
18
|
+
- @modern-js/utils@1.3.6
|
|
19
|
+
|
|
20
|
+
## 1.2.2
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- 6668a1bf: feat: package manager options support npm
|
|
25
|
+
- Updated dependencies [deeaa602]
|
|
26
|
+
- Updated dependencies [54786e58]
|
|
27
|
+
- @modern-js/utils@1.3.2
|
|
28
|
+
- @modern-js/core@1.4.3
|
|
29
|
+
|
|
3
30
|
## 1.2.1
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
|
@@ -19,7 +19,7 @@ export async function release(options) {
|
|
|
19
19
|
params.push(tag);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
if (!isMonorepo || packageManager === 'yarn') {
|
|
22
|
+
if (!isMonorepo || packageManager === 'yarn' || packageManager === 'npm') {
|
|
23
23
|
await execaWithStreamLog(process.execPath, [CHANGESET_PATH, ...params]);
|
|
24
24
|
return;
|
|
25
25
|
}
|
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
|
+
}));
|
|
@@ -32,7 +32,7 @@ async function release(options) {
|
|
|
32
32
|
params.push(tag);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
if (!isMonorepo || packageManager === 'yarn') {
|
|
35
|
+
if (!isMonorepo || packageManager === 'yarn' || packageManager === 'npm') {
|
|
36
36
|
await (0, _utils2.execaWithStreamLog)(process.execPath, [_utils2.CHANGESET_PATH, ...params]);
|
|
37
37
|
return;
|
|
38
38
|
}
|
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;
|
package/dist/types/index.d.ts
CHANGED
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.4",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"@changesets/git": "^1.1.2",
|
|
38
38
|
"@modern-js/i18n-cli-language-detector": "^1.2.1",
|
|
39
39
|
"@modern-js/plugin-i18n": "^1.2.1",
|
|
40
|
-
"@modern-js/utils": "^1.
|
|
40
|
+
"@modern-js/utils": "^1.3.7",
|
|
41
41
|
"execa": "^5.1.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@modern-js/core": "
|
|
44
|
+
"@modern-js/core": "1.6.1",
|
|
45
45
|
"@scripts/build": "0.0.0",
|
|
46
46
|
"@types/jest": "^26",
|
|
47
47
|
"@types/node": "^14",
|
|
@@ -49,22 +49,14 @@
|
|
|
49
49
|
"jest": "^27",
|
|
50
50
|
"@scripts/jest-config": "0.0.0"
|
|
51
51
|
},
|
|
52
|
-
"peerDependencies": {
|
|
53
|
-
"@modern-js/core": "^1.3.2"
|
|
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
|
-
"access": "public"
|
|
64
|
-
"types": "./dist/types/index.d.ts"
|
|
55
|
+
"access": "public"
|
|
65
56
|
},
|
|
66
57
|
"scripts": {
|
|
67
58
|
"new": "modern new",
|
|
59
|
+
"dev": "modern build --watch",
|
|
68
60
|
"build": "modern build",
|
|
69
61
|
"test": "jest --passWithNoTests"
|
|
70
62
|
},
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|