@eggjs/scripts 5.0.0-beta.34 → 5.0.0-beta.36

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_interfaces4 from "@oclif/core/interfaces";
2
+ import * as _oclif_core_interfaces0 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_interfaces4.Arg<string | undefined, Record<string, unknown>>;
14
+ baseDir: _oclif_core_interfaces0.Arg<string | undefined, Record<string, unknown>>;
15
15
  };
16
16
  static flags: {
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>;
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>;
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");
@@ -1,17 +1,17 @@
1
1
  import { BaseCommand } from "../baseCommand.js";
2
2
  import { NodeProcess } from "../helper.js";
3
- import * as _oclif_core_interfaces0 from "@oclif/core/interfaces";
3
+ import * as _oclif_core_interfaces23 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_interfaces0.Arg<string | undefined, Record<string, unknown>>;
10
+ baseDir: _oclif_core_interfaces23.Arg<string | undefined, Record<string, unknown>>;
11
11
  };
12
12
  static flags: {
13
- title: _oclif_core_interfaces0.OptionFlag<string | undefined, _oclif_core_interfaces0.CustomOptions>;
14
- timeout: _oclif_core_interfaces0.OptionFlag<number, _oclif_core_interfaces0.CustomOptions>;
13
+ title: _oclif_core_interfaces23.OptionFlag<string | undefined, _oclif_core_interfaces23.CustomOptions>;
14
+ timeout: _oclif_core_interfaces23.OptionFlag<number, _oclif_core_interfaces23.CustomOptions>;
15
15
  };
16
16
  run(): Promise<void>;
17
17
  protected findNodeProcesses(filter: (item: NodeProcess) => boolean): Promise<NodeProcess[]>;
package/package.json CHANGED
@@ -1,19 +1,17 @@
1
1
  {
2
2
  "name": "@eggjs/scripts",
3
- "version": "5.0.0-beta.34",
3
+ "version": "5.0.0-beta.36",
4
4
  "description": "deploy tool for egg project",
5
- "type": "module",
6
- "exports": {
7
- ".": "./dist/index.js",
8
- "./baseCommand": "./dist/baseCommand.js",
9
- "./commands/start": "./dist/commands/start.js",
10
- "./commands/stop": "./dist/commands/stop.js",
11
- "./helper": "./dist/helper.js",
12
- "./types": "./dist/types.js",
13
- "./package.json": "./package.json"
5
+ "homepage": "https://github.com/eggjs/egg/tree/next/tools/scripts",
6
+ "bugs": {
7
+ "url": "https://github.com/eggjs/egg/issues"
14
8
  },
15
- "publishConfig": {
16
- "access": "public"
9
+ "license": "MIT",
10
+ "author": "TZ <atian25@qq.com>",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/eggjs/egg.git",
14
+ "directory": "tools/scripts"
17
15
  },
18
16
  "bin": {
19
17
  "egg-scripts": "./bin/run.js",
@@ -24,28 +22,21 @@
24
22
  "dist",
25
23
  "scripts"
26
24
  ],
27
- "oclif": {
28
- "bin": "eggctl",
29
- "commands": "./dist/commands",
30
- "dirname": "eggctl",
31
- "topicSeparator": " ",
32
- "additionalHelpFlags": [
33
- "-h"
34
- ]
35
- },
36
- "license": "MIT",
37
- "homepage": "https://github.com/eggjs/egg/tree/next/tools/scripts",
38
- "bugs": {
39
- "url": "https://github.com/eggjs/egg/issues"
40
- },
41
- "repository": {
42
- "type": "git",
43
- "url": "https://github.com/eggjs/egg.git",
44
- "directory": "tools/scripts"
25
+ "type": "module",
26
+ "main": "./dist/index.js",
27
+ "module": "./dist/index.js",
28
+ "types": "./dist/index.d.ts",
29
+ "exports": {
30
+ ".": "./dist/index.js",
31
+ "./baseCommand": "./dist/baseCommand.js",
32
+ "./commands/start": "./dist/commands/start.js",
33
+ "./commands/stop": "./dist/commands/stop.js",
34
+ "./helper": "./dist/helper.js",
35
+ "./types": "./dist/types.js",
36
+ "./package.json": "./package.json"
45
37
  },
46
- "author": "TZ <atian25@qq.com>",
47
- "engines": {
48
- "node": ">= 22.18.0"
38
+ "publishConfig": {
39
+ "access": "public"
49
40
  },
50
41
  "dependencies": {
51
42
  "@oclif/core": "^4.2.0",
@@ -53,29 +44,33 @@
53
44
  "runscript": "^2.0.1",
54
45
  "source-map-support": "^0.5.21",
55
46
  "utility": "^2.5.0",
56
- "@eggjs/utils": "5.0.0-beta.34"
47
+ "@eggjs/utils": "5.0.0-beta.36"
57
48
  },
58
49
  "devDependencies": {
59
- "@types/node": "^24.9.1",
50
+ "@types/node": "^24.10.2",
60
51
  "coffee": "5",
61
52
  "detect-port": "^2.1.0",
62
53
  "mm": "^4.0.2",
63
- "oxlint": "^1.24.0",
64
- "tsdown": "0.15.11",
54
+ "tsdown": "^0.18.2",
65
55
  "typescript": "^5.9.3",
66
56
  "urllib": "^4.8.2",
67
- "vitest": "4.0.5",
68
- "egg": "4.1.0-beta.34",
69
- "@eggjs/tsconfig": "3.1.0-beta.34"
57
+ "vitest": "^4.0.15",
58
+ "egg": "4.1.0-beta.36"
59
+ },
60
+ "oclif": {
61
+ "additionalHelpFlags": [
62
+ "-h"
63
+ ],
64
+ "bin": "eggctl",
65
+ "commands": "./dist/commands",
66
+ "dirname": "eggctl",
67
+ "topicSeparator": " "
68
+ },
69
+ "engines": {
70
+ "node": ">= 22.18.0"
70
71
  },
71
- "main": "./dist/index.js",
72
- "module": "./dist/index.js",
73
- "types": "./dist/index.d.ts",
74
72
  "scripts": {
75
- "build": "tsdown",
76
- "typecheck": "tsc --noEmit",
77
- "lint": "oxlint --type-aware",
78
- "pretest": "pnpm run build",
73
+ "typecheck": "tsgo --noEmit",
79
74
  "test": "vitest run --bail 1 --no-file-parallelism",
80
75
  "cov": "pnpm test --coverage",
81
76
  "ci": "pnpm run cov"