@eggjs/standalone-decorator 4.0.0-beta.34 → 4.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,2 +1,6 @@
1
- import type { MainRunnerClass } from '../typing.ts';
2
- export declare function Runner<T>(): (clazz: MainRunnerClass<T>) => void;
1
+ import { MainRunnerClass } from "../typing.js";
2
+
3
+ //#region src/decorator/Runner.d.ts
4
+ declare function Runner<T>(): (clazz: MainRunnerClass<T>) => void;
5
+ //#endregion
6
+ export { Runner };
@@ -1,7 +1,11 @@
1
- import { StandaloneUtil } from "../util/index.js";
2
- export function Runner() {
3
- return function (clazz) {
4
- StandaloneUtil.setMainRunner(clazz);
5
- };
1
+ import { StandaloneUtil } from "../util/StandaloneUtil.js";
2
+
3
+ //#region src/decorator/Runner.ts
4
+ function Runner() {
5
+ return function(clazz) {
6
+ StandaloneUtil.setMainRunner(clazz);
7
+ };
6
8
  }
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUnVubmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2RlY29yYXRvci9SdW5uZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBRWxELE1BQU0sVUFBVSxNQUFNO0lBQ3BCLE9BQU8sVUFBVSxLQUF5QjtRQUN4QyxjQUFjLENBQUMsYUFBYSxDQUFDLEtBQXlDLENBQUMsQ0FBQztJQUMxRSxDQUFDLENBQUM7QUFDSixDQUFDIn0=
9
+
10
+ //#endregion
11
+ export { Runner };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- export * from './typing.ts';
2
- export * from './util/index.ts';
3
- export * from './decorator/index.ts';
1
+ import { MainRunner, MainRunnerClass } from "./typing.js";
2
+ import { StandaloneUtil } from "./util/StandaloneUtil.js";
3
+ import { Runner } from "./decorator/Runner.js";
4
+ export { MainRunner, MainRunnerClass, Runner, StandaloneUtil };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export * from "./typing.js";
2
- export * from "./util/index.js";
3
- export * from "./decorator/index.js";
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLHNCQUFzQixDQUFDIn0=
1
+ import { StandaloneUtil } from "./util/StandaloneUtil.js";
2
+ import { Runner } from "./decorator/Runner.js";
3
+
4
+ export { Runner, StandaloneUtil };
package/dist/typing.d.ts CHANGED
@@ -1,4 +1,7 @@
1
- export interface MainRunner<T = void> {
2
- main(): Promise<T>;
1
+ //#region src/typing.d.ts
2
+ interface MainRunner<T = void> {
3
+ main(): Promise<T>;
3
4
  }
4
- export type MainRunnerClass<T = void> = new () => MainRunner<T>;
5
+ type MainRunnerClass<T = void> = new () => MainRunner<T>;
6
+ //#endregion
7
+ export { MainRunner, MainRunnerClass };
@@ -1,6 +1,10 @@
1
- import type { MainRunnerClass } from '../typing.ts';
2
- export declare class StandaloneUtil {
3
- private static runnerClass;
4
- static setMainRunner(runnerClass: MainRunnerClass): void;
5
- static getMainRunner(): MainRunnerClass | undefined;
1
+ import { MainRunnerClass } from "../typing.js";
2
+
3
+ //#region src/util/StandaloneUtil.d.ts
4
+ declare class StandaloneUtil {
5
+ private static runnerClass;
6
+ static setMainRunner(runnerClass: MainRunnerClass): void;
7
+ static getMainRunner(): MainRunnerClass | undefined;
6
8
  }
9
+ //#endregion
10
+ export { StandaloneUtil };
@@ -1,10 +1,13 @@
1
- export class StandaloneUtil {
2
- static runnerClass;
3
- static setMainRunner(runnerClass) {
4
- StandaloneUtil.runnerClass = runnerClass;
5
- }
6
- static getMainRunner() {
7
- return StandaloneUtil.runnerClass;
8
- }
9
- }
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RhbmRhbG9uZVV0aWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXRpbC9TdGFuZGFsb25lVXRpbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLE9BQU8sY0FBYztJQUNqQixNQUFNLENBQUMsV0FBVyxDQUE4QjtJQUV4RCxNQUFNLENBQUMsYUFBYSxDQUFDLFdBQTRCO1FBQy9DLGNBQWMsQ0FBQyxXQUFXLEdBQUcsV0FBVyxDQUFDO0lBQzNDLENBQUM7SUFFRCxNQUFNLENBQUMsYUFBYTtRQUNsQixPQUFPLGNBQWMsQ0FBQyxXQUFXLENBQUM7SUFDcEMsQ0FBQztDQUNGIn0=
1
+ //#region src/util/StandaloneUtil.ts
2
+ var StandaloneUtil = class StandaloneUtil {
3
+ static runnerClass;
4
+ static setMainRunner(runnerClass) {
5
+ StandaloneUtil.runnerClass = runnerClass;
6
+ }
7
+ static getMainRunner() {
8
+ return StandaloneUtil.runnerClass;
9
+ }
10
+ };
11
+
12
+ //#endregion
13
+ export { StandaloneUtil };
package/package.json CHANGED
@@ -1,52 +1,48 @@
1
1
  {
2
2
  "name": "@eggjs/standalone-decorator",
3
- "version": "4.0.0-beta.34",
3
+ "version": "4.0.0-beta.36",
4
4
  "description": "tegg standalone decorator",
5
5
  "keywords": [
6
- "egg",
7
- "typescript",
8
6
  "decorator",
7
+ "egg",
8
+ "standalone",
9
9
  "tegg",
10
- "standalone"
11
- ],
12
- "type": "module",
13
- "exports": {
14
- ".": "./dist/index.js",
15
- "./package.json": "./package.json"
16
- },
17
- "files": [
18
- "dist"
10
+ "typescript"
19
11
  ],
20
- "author": "killagu <killa123@126.com>",
21
- "license": "MIT",
22
12
  "homepage": "https://github.com/eggjs/egg/tree/next/tegg/core/standalone-decorator",
23
13
  "bugs": {
24
14
  "url": "https://github.com/eggjs/egg/issues"
25
15
  },
16
+ "license": "MIT",
17
+ "author": "killagu <killa123@126.com>",
26
18
  "repository": {
27
19
  "type": "git",
28
- "url": "git@github.com:eggjs/egg.git",
20
+ "url": "git+https://github.com/eggjs/egg.git",
29
21
  "directory": "tegg/core/standalone-decorator"
30
22
  },
31
- "engines": {
32
- "node": ">=22.18.0"
23
+ "files": [
24
+ "dist"
25
+ ],
26
+ "type": "module",
27
+ "main": "./dist/index.js",
28
+ "module": "./dist/index.js",
29
+ "types": "./dist/index.d.ts",
30
+ "exports": {
31
+ ".": "./dist/index.js",
32
+ "./package.json": "./package.json"
33
+ },
34
+ "publishConfig": {
35
+ "access": "public"
33
36
  },
34
37
  "dependencies": {},
35
38
  "devDependencies": {
36
- "@types/node": "^24.9.1",
37
- "typescript": "^5.9.3",
38
- "tsdown": "0.15.11",
39
- "unplugin-unused": "^0.5.4"
39
+ "@types/node": "^24.10.2",
40
+ "typescript": "^5.9.3"
40
41
  },
41
- "publishConfig": {
42
- "access": "public"
42
+ "engines": {
43
+ "node": ">=22.18.0"
43
44
  },
44
- "main": "./dist/index.js",
45
- "module": "./dist/index.js",
46
- "types": "./dist/index.d.ts",
47
45
  "scripts": {
48
- "clean": "rimraf dist *.tsbuildinfo",
49
- "build": "tsdown && npm run clean && tsc -p tsconfig.build.json",
50
- "typecheck": "tsc --noEmit"
46
+ "typecheck": "tsgo --noEmit"
51
47
  }
52
48
  }
@@ -1 +0,0 @@
1
- export * from './Runner.ts';
@@ -1,2 +0,0 @@
1
- export * from "./Runner.js";
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZGVjb3JhdG9yL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsYUFBYSxDQUFDIn0=
package/dist/typing.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwaW5nLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3R5cGluZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -1 +0,0 @@
1
- export * from './StandaloneUtil.ts';
@@ -1,2 +0,0 @@
1
- export * from "./StandaloneUtil.js";
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdXRpbC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHFCQUFxQixDQUFDIn0=