@eggjs/standalone-decorator 4.0.0-beta.8 → 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 -0
- package/dist/decorator/Runner.js +7 -0
- package/dist/decorator/index.d.ts +1 -0
- package/dist/decorator/index.js +2 -0
- package/dist/index.d.ts +3 -17
- package/dist/index.js +4 -21
- package/dist/typing.d.ts +4 -0
- package/dist/typing.js +2 -0
- package/dist/util/StandaloneUtil.d.ts +6 -0
- package/dist/util/StandaloneUtil.js +10 -0
- package/dist/util/index.d.ts +1 -0
- package/dist/util/index.js +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StandaloneUtil } from '../util/index.js';
|
|
2
|
+
export function Runner() {
|
|
3
|
+
return function (clazz) {
|
|
4
|
+
StandaloneUtil.setMainRunner(clazz);
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUnVubmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2RlY29yYXRvci9SdW5uZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBRWxELE1BQU0sVUFBVSxNQUFNO0lBQ3BCLE9BQU8sVUFBUyxLQUF5QjtRQUN2QyxjQUFjLENBQUMsYUFBYSxDQUFDLEtBQXlDLENBQUMsQ0FBQztJQUMxRSxDQUFDLENBQUM7QUFDSixDQUFDIn0=
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Runner.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
type MainRunnerClass<T = void> = new () => MainRunner<T>;
|
|
6
|
-
//#endregion
|
|
7
|
-
//#region src/util/StandaloneUtil.d.ts
|
|
8
|
-
declare class StandaloneUtil {
|
|
9
|
-
private static runnerClass;
|
|
10
|
-
static setMainRunner(runnerClass: MainRunnerClass): void;
|
|
11
|
-
static getMainRunner(): MainRunnerClass | undefined;
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
//#region src/decorator/Runner.d.ts
|
|
15
|
-
declare function Runner<T>(): (clazz: MainRunnerClass<T>) => void;
|
|
16
|
-
//#endregion
|
|
17
|
-
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,21 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
StandaloneUtil.runnerClass = runnerClass;
|
|
6
|
-
}
|
|
7
|
-
static getMainRunner() {
|
|
8
|
-
return StandaloneUtil.runnerClass;
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/decorator/Runner.ts
|
|
14
|
-
function Runner() {
|
|
15
|
-
return function(clazz) {
|
|
16
|
-
StandaloneUtil.setMainRunner(clazz);
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
|
-
export { Runner, StandaloneUtil };
|
|
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
ADDED
package/dist/typing.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
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
|
}
|