@rife/cli 0.0.6-beta.25 → 0.0.6-beta.27
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.
|
@@ -58,8 +58,8 @@ function pluginCommander() {
|
|
|
58
58
|
};
|
|
59
59
|
return plugin;
|
|
60
60
|
}
|
|
61
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
62
|
-
pluginCommander:
|
|
61
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
62
|
+
pluginCommander: pluginCommander
|
|
63
63
|
});
|
|
64
64
|
exports.pluginCommander = __webpack_exports__.pluginCommander;
|
|
65
65
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
@@ -81,11 +81,15 @@ function pluginRelease() {
|
|
|
81
81
|
const nextManifest = res?.versions?.[nextVersion];
|
|
82
82
|
const exist = Boolean(nextManifest);
|
|
83
83
|
const latest = res?.['dist-tags']?.latest;
|
|
84
|
+
const beta = res?.['dist-tags']?.beta;
|
|
84
85
|
if (exist) {
|
|
85
86
|
log.debug("同步版本存在");
|
|
86
87
|
break;
|
|
87
88
|
}
|
|
88
|
-
|
|
89
|
+
let text = `检查版本 ${nextVersion} 不存在,最新版本为`;
|
|
90
|
+
if (beta) text += ` ${beta}<beta>`;
|
|
91
|
+
if (latest) text += ` ${latest}<latest>`;
|
|
92
|
+
log.info(text);
|
|
89
93
|
if (!hasSync) {
|
|
90
94
|
hasSync = true;
|
|
91
95
|
log.start("开始同步");
|
|
@@ -50,11 +50,15 @@ function pluginRelease() {
|
|
|
50
50
|
const nextManifest = res?.versions?.[nextVersion];
|
|
51
51
|
const exist = Boolean(nextManifest);
|
|
52
52
|
const latest = res?.['dist-tags']?.latest;
|
|
53
|
+
const beta = res?.['dist-tags']?.beta;
|
|
53
54
|
if (exist) {
|
|
54
55
|
log.debug("同步版本存在");
|
|
55
56
|
break;
|
|
56
57
|
}
|
|
57
|
-
|
|
58
|
+
let text = `检查版本 ${nextVersion} 不存在,最新版本为`;
|
|
59
|
+
if (beta) text += ` ${beta}<beta>`;
|
|
60
|
+
if (latest) text += ` ${latest}<latest>`;
|
|
61
|
+
log.info(text);
|
|
58
62
|
if (!hasSync) {
|
|
59
63
|
hasSync = true;
|
|
60
64
|
log.start("开始同步");
|
package/dist/esm/runner.mjs
CHANGED
|
@@ -4,13 +4,8 @@ import { AsyncSeriesHook } from "tapable";
|
|
|
4
4
|
import zod from "zod";
|
|
5
5
|
import { createLogger } from "./logger.mjs";
|
|
6
6
|
import { fs, glob } from "./util.mjs";
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
__webpack_require__.add({
|
|
10
|
-
commander (module) {
|
|
11
|
-
module.exports = __rspack_external_commander;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
7
|
+
import { createRequire as __rspack_createRequire } from "node:module";
|
|
8
|
+
const __rspack_createRequire_require = __rspack_createRequire(import.meta.url);
|
|
14
9
|
if (void 0 === Promise.withResolvers) Promise.withResolvers = ()=>{
|
|
15
10
|
let resolve;
|
|
16
11
|
let reject;
|
|
@@ -26,7 +21,7 @@ if (void 0 === Promise.withResolvers) Promise.withResolvers = ()=>{
|
|
|
26
21
|
};
|
|
27
22
|
function createRunner() {
|
|
28
23
|
const perfStart = performance.now();
|
|
29
|
-
const { Command } =
|
|
24
|
+
const { Command } = __rspack_createRequire_require("commander");
|
|
30
25
|
const command = new Command();
|
|
31
26
|
command.option('--debug', '打开调试日志');
|
|
32
27
|
command.option('-n, --name <string>', '执行指定配置');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rife/cli",
|
|
3
|
-
"version": "0.0.6-beta.
|
|
3
|
+
"version": "0.0.6-beta.27",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"zod": "^4.3.6"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@
|
|
29
|
+
"@rife/config": "0.0.6-beta.18",
|
|
30
|
+
"@rslib/core": "^1.0.6",
|
|
30
31
|
"@types/fs-extra": "^11.0.4",
|
|
31
32
|
"@types/node": "^25.1.0",
|
|
32
|
-
"vitest": "^
|
|
33
|
-
"@rsbuild/plugin-type-check": "^1.6.0"
|
|
34
|
-
"@rife/config": "0.0.6-beta.16"
|
|
33
|
+
"vitest": "^5.1.0",
|
|
34
|
+
"@rsbuild/plugin-type-check": "^1.6.0"
|
|
35
35
|
},
|
|
36
36
|
"rife": {
|
|
37
37
|
"hostDependencies": {
|
package/src/plugin/release.ts
CHANGED
|
@@ -59,11 +59,19 @@ export function pluginRelease() {
|
|
|
59
59
|
const nextManifest = res?.versions?.[nextVersion];
|
|
60
60
|
const exist = Boolean(nextManifest);
|
|
61
61
|
const latest = res?.['dist-tags']?.latest;
|
|
62
|
+
const beta = res?.['dist-tags']?.beta;
|
|
62
63
|
if (exist) {
|
|
63
64
|
log.debug(`同步版本存在`);
|
|
64
65
|
break;
|
|
65
66
|
}
|
|
66
|
-
|
|
67
|
+
let text = `检查版本 ${nextVersion} 不存在,最新版本为`;
|
|
68
|
+
if (beta) {
|
|
69
|
+
text += ` ${beta}<beta>`;
|
|
70
|
+
}
|
|
71
|
+
if (latest) {
|
|
72
|
+
text += ` ${latest}<latest>`;
|
|
73
|
+
}
|
|
74
|
+
log.info(text);
|
|
67
75
|
if (!hasSync) {
|
|
68
76
|
hasSync = true;
|
|
69
77
|
log.start(`开始同步`);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import "node:module";
|
|
2
|
-
var __webpack_modules__ = {};
|
|
3
|
-
var __webpack_module_cache__ = {};
|
|
4
|
-
function __webpack_require__(moduleId) {
|
|
5
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
6
|
-
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
7
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
8
|
-
exports: {}
|
|
9
|
-
};
|
|
10
|
-
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
11
|
-
return module.exports;
|
|
12
|
-
}
|
|
13
|
-
__webpack_require__.m = __webpack_modules__;
|
|
14
|
-
(()=>{
|
|
15
|
-
__webpack_require__.add = function(modules) {
|
|
16
|
-
Object.assign(__webpack_require__.m, modules);
|
|
17
|
-
};
|
|
18
|
-
})();
|
|
19
|
-
export { __webpack_require__ };
|