@qlover/fe-release 3.2.0 → 4.0.1
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/dist/cli.cjs +4 -4
- package/dist/cli.js +5 -5
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +8 -8
- package/dist/index.js +4 -4
- package/package.json +5 -5
package/dist/cli.cjs
CHANGED
|
@@ -4288,7 +4288,7 @@ var import_commander = require("commander");
|
|
|
4288
4288
|
|
|
4289
4289
|
// package.json
|
|
4290
4290
|
var description = "A tool for releasing front-end projects, supporting multiple release modes and configurations, simplifying the release process and improving efficiency.";
|
|
4291
|
-
var version = "
|
|
4291
|
+
var version = "4.0.1";
|
|
4292
4292
|
|
|
4293
4293
|
// src/cli.ts
|
|
4294
4294
|
var import_semver = __toESM(require_semver2(), 1);
|
|
@@ -7944,7 +7944,7 @@ var Changelog = class extends import_scripts_context8.ScriptPlugin {
|
|
|
7944
7944
|
* @example
|
|
7945
7945
|
* ```typescript
|
|
7946
7946
|
* const plugin = new Changelog(context, {});
|
|
7947
|
-
* await plugin.onExec(
|
|
7947
|
+
* await plugin.onExec(context);
|
|
7948
7948
|
* // Generates changelogs for all workspaces
|
|
7949
7949
|
* ```
|
|
7950
7950
|
*/
|
|
@@ -8339,12 +8339,12 @@ var ReleaseTask = class {
|
|
|
8339
8339
|
* // With custom executor and plugins
|
|
8340
8340
|
* const task = new ReleaseTask(
|
|
8341
8341
|
* { rootPath: '/path/to/project' },
|
|
8342
|
-
* new
|
|
8342
|
+
* new LifecycleExecutor<ReleaseContext>(),
|
|
8343
8343
|
* [tuple(CustomPlugin, { option: 'value' })]
|
|
8344
8344
|
* );
|
|
8345
8345
|
* ```
|
|
8346
8346
|
*/
|
|
8347
|
-
constructor(options = {}, executor = new import_fe_corekit.
|
|
8347
|
+
constructor(options = {}, executor = new import_fe_corekit.LifecycleExecutor(), defaultTuples = innerTuples) {
|
|
8348
8348
|
this.executor = executor;
|
|
8349
8349
|
this.defaultTuples = defaultTuples;
|
|
8350
8350
|
this.context = new ReleaseContext(defaultName, options);
|
package/dist/cli.js
CHANGED
|
@@ -4287,7 +4287,7 @@ import { Command } from "commander";
|
|
|
4287
4287
|
|
|
4288
4288
|
// package.json
|
|
4289
4289
|
var description = "A tool for releasing front-end projects, supporting multiple release modes and configurations, simplifying the release process and improving efficiency.";
|
|
4290
|
-
var version = "
|
|
4290
|
+
var version = "4.0.1";
|
|
4291
4291
|
|
|
4292
4292
|
// src/cli.ts
|
|
4293
4293
|
var import_semver = __toESM(require_semver2(), 1);
|
|
@@ -4311,7 +4311,7 @@ function tuple(plugin, ...args) {
|
|
|
4311
4311
|
}
|
|
4312
4312
|
|
|
4313
4313
|
// src/implments/ReleaseTask.ts
|
|
4314
|
-
import {
|
|
4314
|
+
import { LifecycleExecutor } from "@qlover/fe-corekit";
|
|
4315
4315
|
|
|
4316
4316
|
// src/implments/ReleaseContext.ts
|
|
4317
4317
|
var import_get = __toESM(require_get(), 1);
|
|
@@ -7948,7 +7948,7 @@ var Changelog = class extends ScriptPlugin3 {
|
|
|
7948
7948
|
* @example
|
|
7949
7949
|
* ```typescript
|
|
7950
7950
|
* const plugin = new Changelog(context, {});
|
|
7951
|
-
* await plugin.onExec(
|
|
7951
|
+
* await plugin.onExec(context);
|
|
7952
7952
|
* // Generates changelogs for all workspaces
|
|
7953
7953
|
* ```
|
|
7954
7954
|
*/
|
|
@@ -8343,12 +8343,12 @@ var ReleaseTask = class {
|
|
|
8343
8343
|
* // With custom executor and plugins
|
|
8344
8344
|
* const task = new ReleaseTask(
|
|
8345
8345
|
* { rootPath: '/path/to/project' },
|
|
8346
|
-
* new
|
|
8346
|
+
* new LifecycleExecutor<ReleaseContext>(),
|
|
8347
8347
|
* [tuple(CustomPlugin, { option: 'value' })]
|
|
8348
8348
|
* );
|
|
8349
8349
|
* ```
|
|
8350
8350
|
*/
|
|
8351
|
-
constructor(options = {}, executor = new
|
|
8351
|
+
constructor(options = {}, executor = new LifecycleExecutor(), defaultTuples = innerTuples) {
|
|
8352
8352
|
this.executor = executor;
|
|
8353
8353
|
this.defaultTuples = defaultTuples;
|
|
8354
8354
|
this.context = new ReleaseContext(defaultName, options);
|
package/dist/index.cjs
CHANGED
|
@@ -6035,7 +6035,7 @@ var Changelog = class extends import_scripts_context8.ScriptPlugin {
|
|
|
6035
6035
|
* @example
|
|
6036
6036
|
* ```typescript
|
|
6037
6037
|
* const plugin = new Changelog(context, {});
|
|
6038
|
-
* await plugin.onExec(
|
|
6038
|
+
* await plugin.onExec(context);
|
|
6039
6039
|
* // Generates changelogs for all workspaces
|
|
6040
6040
|
* ```
|
|
6041
6041
|
*/
|
|
@@ -6430,12 +6430,12 @@ var ReleaseTask = class {
|
|
|
6430
6430
|
* // With custom executor and plugins
|
|
6431
6431
|
* const task = new ReleaseTask(
|
|
6432
6432
|
* { rootPath: '/path/to/project' },
|
|
6433
|
-
* new
|
|
6433
|
+
* new LifecycleExecutor<ReleaseContext>(),
|
|
6434
6434
|
* [tuple(CustomPlugin, { option: 'value' })]
|
|
6435
6435
|
* );
|
|
6436
6436
|
* ```
|
|
6437
6437
|
*/
|
|
6438
|
-
constructor(options = {}, executor = new import_fe_corekit.
|
|
6438
|
+
constructor(options = {}, executor = new import_fe_corekit.LifecycleExecutor(), defaultTuples = innerTuples) {
|
|
6439
6439
|
this.executor = executor;
|
|
6440
6440
|
this.defaultTuples = defaultTuples;
|
|
6441
6441
|
this.context = new ReleaseContext(defaultName, options);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LifecycleExecutor, ExecutorContextInterface } from '@qlover/fe-corekit';
|
|
2
2
|
import { ScriptPlugin, ScriptContext, ScriptPluginProps, ScriptSharedInterface, ScriptContextInterface, FeReleaseConfig, ShellInterface } from '@qlover/scripts-context';
|
|
3
3
|
export { ScriptPlugin } from '@qlover/scripts-context';
|
|
4
4
|
import { CommitField } from 'gitlog';
|
|
@@ -187,7 +187,7 @@ declare function tuple<T extends PluginClass>(plugin: T | string, ...args: Plugi
|
|
|
187
187
|
* }
|
|
188
188
|
* }
|
|
189
189
|
*
|
|
190
|
-
* const task = new ReleaseTask({}, new
|
|
190
|
+
* const task = new ReleaseTask({}, new LifecycleExecutor<ReleaseContext>(), [
|
|
191
191
|
* tuple(CustomPlugin, { option: 'value' })
|
|
192
192
|
* ]);
|
|
193
193
|
*
|
|
@@ -229,7 +229,7 @@ declare function tuple<T extends PluginClass>(plugin: T | string, ...args: Plugi
|
|
|
229
229
|
*
|
|
230
230
|
* @example Custom executor
|
|
231
231
|
* ```typescript
|
|
232
|
-
* const executor = new
|
|
232
|
+
* const executor = new LifecycleExecutor<ReleaseContext>({
|
|
233
233
|
* onError: (err) => console.error('Release failed:', err)
|
|
234
234
|
* });
|
|
235
235
|
*
|
|
@@ -240,7 +240,7 @@ declare function tuple<T extends PluginClass>(plugin: T | string, ...args: Plugi
|
|
|
240
240
|
* ```typescript
|
|
241
241
|
* const task = new ReleaseTask(
|
|
242
242
|
* {}, // options
|
|
243
|
-
* new
|
|
243
|
+
* new LifecycleExecutor<ReleaseContext>(),
|
|
244
244
|
* [
|
|
245
245
|
* tuple(CustomPlugin, { config: 'value' }),
|
|
246
246
|
* ...innerTuples // include default plugins
|
|
@@ -277,12 +277,12 @@ declare class ReleaseTask {
|
|
|
277
277
|
* // With custom executor and plugins
|
|
278
278
|
* const task = new ReleaseTask(
|
|
279
279
|
* { rootPath: '/path/to/project' },
|
|
280
|
-
* new
|
|
280
|
+
* new LifecycleExecutor<ReleaseContext>(),
|
|
281
281
|
* [tuple(CustomPlugin, { option: 'value' })]
|
|
282
282
|
* );
|
|
283
283
|
* ```
|
|
284
284
|
*/
|
|
285
|
-
constructor(options?: Partial<ReleaseContextOptions>, executor?:
|
|
285
|
+
constructor(options?: Partial<ReleaseContextOptions>, executor?: LifecycleExecutor<ReleaseContext>, defaultTuples?: PluginTuple<PluginClass>[]);
|
|
286
286
|
/**
|
|
287
287
|
* Gets the current release context
|
|
288
288
|
*
|
|
@@ -714,7 +714,7 @@ interface GithubPRProps extends ReleaseParamsConfig, GitBaseProps {
|
|
|
714
714
|
* };
|
|
715
715
|
* ```
|
|
716
716
|
*/
|
|
717
|
-
interface ExecutorReleaseContext extends
|
|
717
|
+
interface ExecutorReleaseContext extends ExecutorContextInterface<ReleaseContext> {
|
|
718
718
|
returnValue: ReleaseReturnValue;
|
|
719
719
|
}
|
|
720
720
|
/**
|
|
@@ -2524,7 +2524,7 @@ declare function load<T>(pluginName: string): Promise<[string, T]>;
|
|
|
2524
2524
|
* plugins.forEach(plugin => plugin.customMethod());
|
|
2525
2525
|
* ```
|
|
2526
2526
|
*/
|
|
2527
|
-
declare function loaderPluginsFromPluginTuples<T extends ScriptPlugin<
|
|
2527
|
+
declare function loaderPluginsFromPluginTuples<T extends ScriptPlugin<ReleaseContext, ScriptPluginProps>>(context: ReleaseContext, pluginsTuples: PluginTuple<PluginClass>[], maxLimit?: number): Promise<T[]>;
|
|
2528
2528
|
|
|
2529
2529
|
/**
|
|
2530
2530
|
* @module Factory
|
package/dist/index.js
CHANGED
|
@@ -2637,7 +2637,7 @@ function tuple(plugin, ...args) {
|
|
|
2637
2637
|
}
|
|
2638
2638
|
|
|
2639
2639
|
// src/implments/ReleaseTask.ts
|
|
2640
|
-
import {
|
|
2640
|
+
import { LifecycleExecutor } from "@qlover/fe-corekit";
|
|
2641
2641
|
|
|
2642
2642
|
// src/implments/ReleaseParams.ts
|
|
2643
2643
|
import { Shell } from "@qlover/scripts-context";
|
|
@@ -6016,7 +6016,7 @@ var Changelog = class extends ScriptPlugin3 {
|
|
|
6016
6016
|
* @example
|
|
6017
6017
|
* ```typescript
|
|
6018
6018
|
* const plugin = new Changelog(context, {});
|
|
6019
|
-
* await plugin.onExec(
|
|
6019
|
+
* await plugin.onExec(context);
|
|
6020
6020
|
* // Generates changelogs for all workspaces
|
|
6021
6021
|
* ```
|
|
6022
6022
|
*/
|
|
@@ -6411,12 +6411,12 @@ var ReleaseTask = class {
|
|
|
6411
6411
|
* // With custom executor and plugins
|
|
6412
6412
|
* const task = new ReleaseTask(
|
|
6413
6413
|
* { rootPath: '/path/to/project' },
|
|
6414
|
-
* new
|
|
6414
|
+
* new LifecycleExecutor<ReleaseContext>(),
|
|
6415
6415
|
* [tuple(CustomPlugin, { option: 'value' })]
|
|
6416
6416
|
* );
|
|
6417
6417
|
* ```
|
|
6418
6418
|
*/
|
|
6419
|
-
constructor(options = {}, executor = new
|
|
6419
|
+
constructor(options = {}, executor = new LifecycleExecutor(), defaultTuples = innerTuples) {
|
|
6420
6420
|
this.executor = executor;
|
|
6421
6421
|
this.defaultTuples = defaultTuples;
|
|
6422
6422
|
this.context = new ReleaseContext(defaultName, options);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qlover/fe-release",
|
|
3
3
|
"description": "A tool for releasing front-end projects, supporting multiple release modes and configurations, simplifying the release process and improving efficiency.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
7
7
|
"homepage": "https://github.com/qlover/fe-base/tree/master/packages/fe-release",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"commander": "^11.0.0",
|
|
57
57
|
"find-workspaces": "^0.3.1",
|
|
58
58
|
"gitlog": "^5.1.0",
|
|
59
|
-
"@qlover/env-loader": "0.
|
|
60
|
-
"@qlover/fe-corekit": "
|
|
61
|
-
"@qlover/logger": "0.
|
|
62
|
-
"@qlover/scripts-context": "
|
|
59
|
+
"@qlover/env-loader": "1.0.0",
|
|
60
|
+
"@qlover/fe-corekit": "3.0.1",
|
|
61
|
+
"@qlover/logger": "1.0.0",
|
|
62
|
+
"@qlover/scripts-context": "2.0.0"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"lint": "eslint src --fix",
|