@rife/cli 0.0.6-beta.21 → 0.0.6-beta.23

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 CHANGED
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { pluginCommander, pluginConfig, pluginPackage, pluginRelease } from "./plugin/index.mjs";
4
3
  import { createRunner } from "./runner.mjs";
5
4
  const plugins = [
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  export * from "./runner.mjs";
4
3
  export * from "./plugin/index.mjs";
5
4
  export * from "./logger.mjs";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { createConsola } from "consola";
4
3
  function createLogger(options) {
5
4
  const instance = createConsola({
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  function pluginCommander() {
4
3
  const plugin = {
5
4
  name: pluginCommander.name,
@@ -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,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  export * from "./config.mjs";
4
3
  export * from "./package.mjs";
5
4
  export * from "./commander.mjs";
@@ -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 = {
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { execSync } from "child_process";
4
3
  function pluginRelease() {
5
4
  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__ };
@@ -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
- var __webpack_modules__ = {
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
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  async function sync(name) {
4
3
  const res = await fetch(`https://registry-direct.npmmirror.com/-/package/${name}/syncs`, {
5
4
  headers: {
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 { fs_extra as fs, getDuration, __rspack_external_glob as glob, resolve };
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.21",
3
+ "version": "0.0.6-beta.23",
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.0",
25
+ "tapable": "^2.3.2",
26
26
  "zod": "^4.3.6"
27
27
  },
28
28
  "devDependencies": {
29
- "@rslib/core": "^0.19.3",
29
+ "@rslib/core": "^0.21.3",
30
30
  "@types/fs-extra": "^11.0.4",
31
31
  "@types/node": "^25.1.0",
32
- "vitest": "^4.0.18",
33
- "@rsbuild/plugin-type-check": "^1.3.3",
34
- "@rife/config": "0.0.6-beta.12"
32
+ "vitest": "^4.1.4",
33
+ "@rsbuild/plugin-type-check": "^1.3.4",
34
+ "@rife/config": "0.0.6-beta.14"
35
35
  },
36
36
  "rife": {
37
37
  "hostDependencies": {