@rife/cli 0.0.6-beta.21 → 0.0.6-beta.22
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/esm/cli.mjs +0 -1
- package/dist/esm/index.mjs +0 -1
- package/dist/esm/logger.mjs +0 -1
- package/dist/esm/plugin/commander.mjs +0 -1
- package/dist/esm/plugin/config.mjs +1 -1
- package/dist/esm/plugin/index.mjs +0 -1
- package/dist/esm/plugin/package.mjs +1 -1
- package/dist/esm/plugin/release.mjs +0 -1
- package/dist/esm/rslib-runtime.mjs +19 -0
- package/dist/esm/runner.mjs +4 -14
- package/dist/esm/sync.mjs +0 -1
- package/dist/esm/util.mjs +2 -3
- package/package.json +6 -6
package/dist/esm/cli.mjs
CHANGED
package/dist/esm/index.mjs
CHANGED
package/dist/esm/logger.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import __rslib_shim_module__ from "node:module";
|
|
2
|
-
const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(import.meta.url);
|
|
2
|
+
const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(/*#__PURE__*/ (()=>import.meta.url)());
|
|
3
3
|
import path from "path";
|
|
4
4
|
function pluginConfig() {
|
|
5
5
|
const plugin = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import __rslib_shim_module__ from "node:module";
|
|
2
|
-
const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(import.meta.url);
|
|
2
|
+
const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(/*#__PURE__*/ (()=>import.meta.url)());
|
|
3
3
|
import path from "path";
|
|
4
4
|
function pluginPackage() {
|
|
5
5
|
const plugin = {
|
|
@@ -0,0 +1,19 @@
|
|
|
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__ };
|
package/dist/esm/runner.mjs
CHANGED
|
@@ -1,26 +1,16 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
-
/*#__PURE__*/ import.meta.url;
|
|
3
|
-
import * as __rspack_external_commander from "commander";
|
|
4
2
|
import { colors } from "consola/utils";
|
|
5
3
|
import { AsyncSeriesHook } from "tapable";
|
|
6
4
|
import zod from "zod";
|
|
7
5
|
import { createLogger } from "./logger.mjs";
|
|
8
6
|
import { fs, glob } from "./util.mjs";
|
|
9
|
-
|
|
7
|
+
import { __webpack_require__ } from "./rslib-runtime.mjs";
|
|
8
|
+
import * as __rspack_external_commander from "commander";
|
|
9
|
+
__webpack_require__.add({
|
|
10
10
|
commander (module) {
|
|
11
11
|
module.exports = __rspack_external_commander;
|
|
12
12
|
}
|
|
13
|
-
};
|
|
14
|
-
var __webpack_module_cache__ = {};
|
|
15
|
-
function __webpack_require__(moduleId) {
|
|
16
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
17
|
-
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
18
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
19
|
-
exports: {}
|
|
20
|
-
};
|
|
21
|
-
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
22
|
-
return module.exports;
|
|
23
|
-
}
|
|
13
|
+
});
|
|
24
14
|
if (void 0 === Promise.withResolvers) Promise.withResolvers = ()=>{
|
|
25
15
|
let resolve;
|
|
26
16
|
let reject;
|
package/dist/esm/sync.mjs
CHANGED
package/dist/esm/util.mjs
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
-
/*#__PURE__*/ import.meta.url;
|
|
3
2
|
import { fileURLToPath } from "node:url";
|
|
4
3
|
import path from "path";
|
|
5
|
-
import fs_extra from "fs-extra";
|
|
6
4
|
import * as __rspack_external_glob from "glob";
|
|
7
5
|
const getDuration = (perfStart)=>{
|
|
8
6
|
const duration = ((performance.now() - perfStart) / 1000).toFixed(3);
|
|
9
7
|
return `耗时 ${duration} s`;
|
|
10
8
|
};
|
|
11
9
|
const resolve = (...args)=>path.resolve(path.dirname(fileURLToPath(import.meta.url)), ...args);
|
|
12
|
-
export {
|
|
10
|
+
export { default as fs } from "fs-extra";
|
|
11
|
+
export { __rspack_external_glob as glob, getDuration, resolve };
|
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.22",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
"consola": "^3.4.2",
|
|
23
23
|
"fs-extra": "^11.3.3",
|
|
24
24
|
"glob": "^13.0.0",
|
|
25
|
-
"tapable": "^2.3.
|
|
25
|
+
"tapable": "^2.3.2",
|
|
26
26
|
"zod": "^4.3.6"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@rslib/core": "^0.
|
|
29
|
+
"@rslib/core": "^0.21.0",
|
|
30
30
|
"@types/fs-extra": "^11.0.4",
|
|
31
31
|
"@types/node": "^25.1.0",
|
|
32
|
-
"vitest": "^4.
|
|
33
|
-
"@rsbuild/plugin-type-check": "^1.3.
|
|
34
|
-
"@rife/config": "0.0.6-beta.
|
|
32
|
+
"vitest": "^4.1.3",
|
|
33
|
+
"@rsbuild/plugin-type-check": "^1.3.4",
|
|
34
|
+
"@rife/config": "0.0.6-beta.13"
|
|
35
35
|
},
|
|
36
36
|
"rife": {
|
|
37
37
|
"hostDependencies": {
|