@eggjs/standalone-decorator 4.0.0-beta.7 → 4.0.0-beta.9
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/decorator/Runner.d.ts +2 -6
- package/dist/decorator/Runner.js +6 -10
- package/dist/decorator/index.d.ts +1 -0
- package/dist/decorator/index.js +2 -0
- package/dist/index.d.ts +3 -4
- package/dist/index.js +4 -4
- package/dist/typing.d.ts +3 -6
- package/dist/typing.js +2 -0
- package/dist/util/StandaloneUtil.d.ts +5 -9
- package/dist/util/StandaloneUtil.js +10 -13
- package/dist/util/index.d.ts +1 -0
- package/dist/util/index.js +2 -0
- package/package.json +2 -2
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
import { MainRunnerClass } from
|
|
2
|
-
|
|
3
|
-
//#region src/decorator/Runner.d.ts
|
|
4
|
-
declare function Runner<T>(): (clazz: MainRunnerClass<T>) => void;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { Runner };
|
|
1
|
+
import type { MainRunnerClass } from '../typing.js';
|
|
2
|
+
export declare function Runner<T>(): (clazz: MainRunnerClass<T>) => void;
|
package/dist/decorator/Runner.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { StandaloneUtil } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
StandaloneUtil.setMainRunner(clazz);
|
|
7
|
-
};
|
|
1
|
+
import { StandaloneUtil } from '../util/index.js';
|
|
2
|
+
export function Runner() {
|
|
3
|
+
return function (clazz) {
|
|
4
|
+
StandaloneUtil.setMainRunner(clazz);
|
|
5
|
+
};
|
|
8
6
|
}
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
export { Runner };
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUnVubmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2RlY29yYXRvci9SdW5uZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBRWxELE1BQU0sVUFBVSxNQUFNO0lBQ3BCLE9BQU8sVUFBUyxLQUF5QjtRQUN2QyxjQUFjLENBQUMsYUFBYSxDQUFDLEtBQXlDLENBQUMsQ0FBQztJQUMxRSxDQUFDLENBQUM7QUFDSixDQUFDIn0=
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Runner.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { MainRunner, MainRunnerClass, Runner, StandaloneUtil };
|
|
1
|
+
export * from './typing.js';
|
|
2
|
+
export * from './util/index.js';
|
|
3
|
+
export * from './decorator/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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=
|
package/dist/typing.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
main(): Promise<T>;
|
|
1
|
+
export interface MainRunner<T = void> {
|
|
2
|
+
main(): Promise<T>;
|
|
4
3
|
}
|
|
5
|
-
type MainRunnerClass<T = void> = new () => MainRunner<T>;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { MainRunner, MainRunnerClass };
|
|
4
|
+
export type MainRunnerClass<T = void> = new () => MainRunner<T>;
|
package/dist/typing.js
ADDED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import { MainRunnerClass } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
static setMainRunner(runnerClass: MainRunnerClass): void;
|
|
7
|
-
static getMainRunner(): MainRunnerClass | undefined;
|
|
1
|
+
import type { MainRunnerClass } from '../typing.js';
|
|
2
|
+
export declare class StandaloneUtil {
|
|
3
|
+
private static runnerClass;
|
|
4
|
+
static setMainRunner(runnerClass: MainRunnerClass): void;
|
|
5
|
+
static getMainRunner(): MainRunnerClass | undefined;
|
|
8
6
|
}
|
|
9
|
-
//#endregion
|
|
10
|
-
export { StandaloneUtil };
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { StandaloneUtil };
|
|
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=
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './StandaloneUtil.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/standalone-decorator",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.9",
|
|
4
4
|
"description": "tegg standalone decorator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"egg",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"types": "./dist/index.d.ts",
|
|
47
47
|
"scripts": {
|
|
48
48
|
"clean": "rimraf dist",
|
|
49
|
-
"build": "tsdown",
|
|
49
|
+
"build": "tsdown && rimraf dist && tsc -b --clean && tsc",
|
|
50
50
|
"typecheck": "tsc --noEmit"
|
|
51
51
|
}
|
|
52
52
|
}
|