@eggjs/scripts 5.0.0-beta.33 → 5.0.0-beta.35

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.
@@ -1,5 +1,5 @@
1
- import { debuglog } from "node:util";
2
1
  import path from "node:path";
2
+ import { debuglog } from "node:util";
3
3
  import { Command, Interfaces } from "@oclif/core";
4
4
  import { readJSON } from "utility";
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { BaseCommand } from "../baseCommand.js";
2
- import * as _oclif_core_interfaces0 from "@oclif/core/interfaces";
2
+ import * as _oclif_core_interfaces4 from "@oclif/core/interfaces";
3
3
 
4
4
  //#region src/commands/start.d.ts
5
5
  interface FrameworkOptions {
@@ -11,22 +11,22 @@ declare class Start<T extends typeof Start> extends BaseCommand<T> {
11
11
  static description: string;
12
12
  static examples: string[];
13
13
  static args: {
14
- baseDir: _oclif_core_interfaces0.Arg<string | undefined, Record<string, unknown>>;
14
+ baseDir: _oclif_core_interfaces4.Arg<string | undefined, Record<string, unknown>>;
15
15
  };
16
16
  static flags: {
17
- title: _oclif_core_interfaces0.OptionFlag<string | undefined, _oclif_core_interfaces0.CustomOptions>;
18
- framework: _oclif_core_interfaces0.OptionFlag<string | undefined, _oclif_core_interfaces0.CustomOptions>;
19
- port: _oclif_core_interfaces0.OptionFlag<number | undefined, _oclif_core_interfaces0.CustomOptions>;
20
- workers: _oclif_core_interfaces0.OptionFlag<number | undefined, _oclif_core_interfaces0.CustomOptions>;
21
- env: _oclif_core_interfaces0.OptionFlag<string, _oclif_core_interfaces0.CustomOptions>;
22
- daemon: _oclif_core_interfaces0.BooleanFlag<boolean>;
23
- stdout: _oclif_core_interfaces0.OptionFlag<string | undefined, _oclif_core_interfaces0.CustomOptions>;
24
- stderr: _oclif_core_interfaces0.OptionFlag<string | undefined, _oclif_core_interfaces0.CustomOptions>;
25
- timeout: _oclif_core_interfaces0.OptionFlag<number, _oclif_core_interfaces0.CustomOptions>;
26
- 'ignore-stderr': _oclif_core_interfaces0.BooleanFlag<boolean>;
27
- node: _oclif_core_interfaces0.OptionFlag<string, _oclif_core_interfaces0.CustomOptions>;
28
- require: _oclif_core_interfaces0.OptionFlag<string[] | undefined, _oclif_core_interfaces0.CustomOptions>;
29
- sourcemap: _oclif_core_interfaces0.BooleanFlag<boolean>;
17
+ title: _oclif_core_interfaces4.OptionFlag<string | undefined, _oclif_core_interfaces4.CustomOptions>;
18
+ framework: _oclif_core_interfaces4.OptionFlag<string | undefined, _oclif_core_interfaces4.CustomOptions>;
19
+ port: _oclif_core_interfaces4.OptionFlag<number | undefined, _oclif_core_interfaces4.CustomOptions>;
20
+ workers: _oclif_core_interfaces4.OptionFlag<number | undefined, _oclif_core_interfaces4.CustomOptions>;
21
+ env: _oclif_core_interfaces4.OptionFlag<string, _oclif_core_interfaces4.CustomOptions>;
22
+ daemon: _oclif_core_interfaces4.BooleanFlag<boolean>;
23
+ stdout: _oclif_core_interfaces4.OptionFlag<string | undefined, _oclif_core_interfaces4.CustomOptions>;
24
+ stderr: _oclif_core_interfaces4.OptionFlag<string | undefined, _oclif_core_interfaces4.CustomOptions>;
25
+ timeout: _oclif_core_interfaces4.OptionFlag<number, _oclif_core_interfaces4.CustomOptions>;
26
+ 'ignore-stderr': _oclif_core_interfaces4.BooleanFlag<boolean>;
27
+ node: _oclif_core_interfaces4.OptionFlag<string, _oclif_core_interfaces4.CustomOptions>;
28
+ require: _oclif_core_interfaces4.OptionFlag<string[] | undefined, _oclif_core_interfaces4.CustomOptions>;
29
+ sourcemap: _oclif_core_interfaces4.BooleanFlag<boolean>;
30
30
  };
31
31
  isReady: boolean;
32
32
  protected getFrameworkPath(options: FrameworkOptions): Promise<string>;
@@ -1,13 +1,13 @@
1
1
  import { BaseCommand } from "../baseCommand.js";
2
- import { debuglog, promisify } from "node:util";
3
2
  import path from "node:path";
3
+ import { debuglog, promisify } from "node:util";
4
4
  import { Args, Flags } from "@oclif/core";
5
5
  import { exists, getDateStringParts, readJSON } from "utility";
6
- import { scheduler } from "node:timers/promises";
7
6
  import { execFile, spawn } from "node:child_process";
8
7
  import { mkdir, open, rename, stat } from "node:fs/promises";
9
- import { homedir } from "node-homedir";
8
+ import { scheduler } from "node:timers/promises";
10
9
  import { getFrameworkPath, importResolve } from "@eggjs/utils";
10
+ import { homedir } from "node-homedir";
11
11
 
12
12
  //#region src/commands/start.ts
13
13
  const debug = debuglog("egg/scripts/commands/start");
@@ -94,6 +94,7 @@ var Start = class extends BaseCommand {
94
94
  if (flags.workers === void 0 && process.env.EGG_WORKERS) flags.workers = Number(process.env.EGG_WORKERS);
95
95
  this.env.HOME = HOME;
96
96
  this.env.NODE_ENV = "production";
97
+ this.env.EGG_TS_ENABLE = "false";
97
98
  this.env.PATH = this.env.Path = [
98
99
  path.join(baseDir, "node_modules/.bin"),
99
100
  path.join(baseDir, ".node/bin"),
@@ -1,17 +1,17 @@
1
1
  import { BaseCommand } from "../baseCommand.js";
2
2
  import { NodeProcess } from "../helper.js";
3
- import * as _oclif_core_interfaces23 from "@oclif/core/interfaces";
3
+ import * as _oclif_core_interfaces0 from "@oclif/core/interfaces";
4
4
 
5
5
  //#region src/commands/stop.d.ts
6
6
  declare class Stop<T extends typeof Stop> extends BaseCommand<T> {
7
7
  static description: string;
8
8
  static examples: string[];
9
9
  static args: {
10
- baseDir: _oclif_core_interfaces23.Arg<string | undefined, Record<string, unknown>>;
10
+ baseDir: _oclif_core_interfaces0.Arg<string | undefined, Record<string, unknown>>;
11
11
  };
12
12
  static flags: {
13
- title: _oclif_core_interfaces23.OptionFlag<string | undefined, _oclif_core_interfaces23.CustomOptions>;
14
- timeout: _oclif_core_interfaces23.OptionFlag<number, _oclif_core_interfaces23.CustomOptions>;
13
+ title: _oclif_core_interfaces0.OptionFlag<string | undefined, _oclif_core_interfaces0.CustomOptions>;
14
+ timeout: _oclif_core_interfaces0.OptionFlag<number, _oclif_core_interfaces0.CustomOptions>;
15
15
  };
16
16
  run(): Promise<void>;
17
17
  protected findNodeProcesses(filter: (item: NodeProcess) => boolean): Promise<NodeProcess[]>;
@@ -8,8 +8,8 @@ import { scheduler } from "node:timers/promises";
8
8
  const debug = debuglog("egg/scripts/commands/stop");
9
9
  const osRelated = {
10
10
  titleTemplate: isWindows ? "\\\"title\\\":\\\"%s\\\"" : "\"title\":\"%s\"",
11
- appWorkerPath: /@eggjs[/\\]cluster[/\\]dist[/\\](commonjs|esm)[/\\]app_worker\.js/i,
12
- agentWorkerPath: /@eggjs[/\\]cluster[/\\]dist[/\\](commonjs|esm)[/\\]agent_worker\.js/i
11
+ appWorkerPath: /@eggjs[/\\]cluster[/\\]dist[/\\]app_worker\.js/i,
12
+ agentWorkerPath: /@eggjs[/\\]cluster[/\\]dist[/\\]agent_worker\.js/i
13
13
  };
14
14
  var Stop = class extends BaseCommand {
15
15
  static description = "Stop server";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggjs/scripts",
3
- "version": "5.0.0-beta.33",
3
+ "version": "5.0.0-beta.35",
4
4
  "description": "deploy tool for egg project",
5
5
  "type": "module",
6
6
  "exports": {
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "repository": {
42
42
  "type": "git",
43
- "url": "https://github.com/eggjs/egg.git",
43
+ "url": "git+https://github.com/eggjs/egg.git",
44
44
  "directory": "tools/scripts"
45
45
  },
46
46
  "author": "TZ <atian25@qq.com>",
@@ -53,20 +53,20 @@
53
53
  "runscript": "^2.0.1",
54
54
  "source-map-support": "^0.5.21",
55
55
  "utility": "^2.5.0",
56
- "@eggjs/utils": "5.0.0-beta.33"
56
+ "@eggjs/utils": "5.0.0-beta.35"
57
57
  },
58
58
  "devDependencies": {
59
- "@types/node": "^24.9.1",
59
+ "@types/node": "^24.10.1",
60
60
  "coffee": "5",
61
61
  "detect-port": "^2.1.0",
62
62
  "mm": "^4.0.2",
63
- "oxlint": "^1.24.0",
64
- "tsdown": "0.15.11",
63
+ "oxlint": "^1.31.0",
64
+ "tsdown": "^0.17.0",
65
65
  "typescript": "^5.9.3",
66
66
  "urllib": "^4.8.2",
67
- "vitest": "4.0.4",
68
- "@eggjs/tsconfig": "3.1.0-beta.33",
69
- "egg": "4.1.0-beta.33"
67
+ "vitest": "^4.0.15",
68
+ "egg": "4.1.0-beta.35",
69
+ "@eggjs/tsconfig": "3.1.0-beta.35"
70
70
  },
71
71
  "main": "./dist/index.js",
72
72
  "module": "./dist/index.js",