@tsed/cli 5.0.0-rc.1 → 5.0.0
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/lib/cjs/commands/init/InitCmd.js +8 -6
- package/lib/cjs/commands/init/InitCmd.js.map +1 -1
- package/lib/cjs/commands/init/config/FeaturesPrompt.js +0 -4
- package/lib/cjs/commands/init/config/FeaturesPrompt.js.map +1 -1
- package/lib/cjs/commands/init/utils/hasFeature.js +2 -6
- package/lib/cjs/commands/init/utils/hasFeature.js.map +1 -1
- package/lib/cjs/runtimes/RuntimesModule.js +1 -1
- package/lib/cjs/runtimes/RuntimesModule.js.map +1 -1
- package/lib/cjs/runtimes/supports/BabelRuntime.js +1 -0
- package/lib/cjs/runtimes/supports/BabelRuntime.js.map +1 -1
- package/lib/cjs/runtimes/supports/BaseRuntime.js +1 -0
- package/lib/cjs/runtimes/supports/BaseRuntime.js.map +1 -1
- package/lib/cjs/runtimes/supports/BunRuntime.js +1 -0
- package/lib/cjs/runtimes/supports/BunRuntime.js.map +1 -1
- package/lib/cjs/runtimes/supports/NodeRuntime.js +1 -0
- package/lib/cjs/runtimes/supports/NodeRuntime.js.map +1 -1
- package/lib/cjs/runtimes/supports/SWCRuntime.js +5 -3
- package/lib/cjs/runtimes/supports/SWCRuntime.js.map +1 -1
- package/lib/cjs/runtimes/supports/WebpackRuntime.js +1 -0
- package/lib/cjs/runtimes/supports/WebpackRuntime.js.map +1 -1
- package/lib/esm/commands/init/InitCmd.js +8 -6
- package/lib/esm/commands/init/InitCmd.js.map +1 -1
- package/lib/esm/commands/init/config/FeaturesPrompt.js +0 -4
- package/lib/esm/commands/init/config/FeaturesPrompt.js.map +1 -1
- package/lib/esm/commands/init/utils/hasFeature.js +1 -4
- package/lib/esm/commands/init/utils/hasFeature.js.map +1 -1
- package/lib/esm/runtimes/RuntimesModule.js +1 -1
- package/lib/esm/runtimes/RuntimesModule.js.map +1 -1
- package/lib/esm/runtimes/supports/BabelRuntime.js +1 -0
- package/lib/esm/runtimes/supports/BabelRuntime.js.map +1 -1
- package/lib/esm/runtimes/supports/BaseRuntime.js +1 -0
- package/lib/esm/runtimes/supports/BaseRuntime.js.map +1 -1
- package/lib/esm/runtimes/supports/BunRuntime.js +1 -0
- package/lib/esm/runtimes/supports/BunRuntime.js.map +1 -1
- package/lib/esm/runtimes/supports/NodeRuntime.js +1 -0
- package/lib/esm/runtimes/supports/NodeRuntime.js.map +1 -1
- package/lib/esm/runtimes/supports/SWCRuntime.js +5 -3
- package/lib/esm/runtimes/supports/SWCRuntime.js.map +1 -1
- package/lib/esm/runtimes/supports/WebpackRuntime.js +1 -0
- package/lib/esm/runtimes/supports/WebpackRuntime.js.map +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/commands/init/utils/hasFeature.d.ts +1 -2
- package/lib/types/runtimes/supports/BabelRuntime.d.ts +1 -0
- package/lib/types/runtimes/supports/BaseRuntime.d.ts +1 -0
- package/lib/types/runtimes/supports/BunRuntime.d.ts +1 -0
- package/lib/types/runtimes/supports/NodeRuntime.d.ts +1 -0
- package/lib/types/runtimes/supports/SWCRuntime.d.ts +1 -0
- package/lib/types/runtimes/supports/WebpackRuntime.d.ts +1 -0
- package/package.json +6 -9
- package/templates/init/.node-dev.json.hbs +5 -0
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export declare function hasValue(expression: string, value:
|
|
2
|
-
export declare function hasValues(expression: string, values: string[]): (ctx: any) => boolean;
|
|
1
|
+
export declare function hasValue(expression: string, value: string | string[]): (ctx: any) => boolean;
|
|
3
2
|
export declare function hasFeature(feature: string): (ctx: any) => boolean;
|
|
@@ -2,6 +2,7 @@ import { CliExeca, PackageManagersModule } from "@tsed/cli-core";
|
|
|
2
2
|
export declare abstract class BaseRuntime {
|
|
3
3
|
abstract readonly name: string;
|
|
4
4
|
abstract readonly cmd: string;
|
|
5
|
+
readonly order: number;
|
|
5
6
|
protected packageManagers: PackageManagersModule;
|
|
6
7
|
protected cliExeca: CliExeca;
|
|
7
8
|
get packageManager(): import("@tsed/cli-core").BaseManager;
|
|
@@ -2,6 +2,7 @@ import { BaseRuntime } from "./BaseRuntime";
|
|
|
2
2
|
export declare class BunRuntime extends BaseRuntime {
|
|
3
3
|
readonly name = "bun";
|
|
4
4
|
readonly cmd = "bun";
|
|
5
|
+
readonly order: number;
|
|
5
6
|
compile(src: string, out: string): string;
|
|
6
7
|
startDev(main: string): string;
|
|
7
8
|
startProd(args: string): string;
|
|
@@ -2,6 +2,7 @@ import { BaseRuntime } from "./BaseRuntime";
|
|
|
2
2
|
export declare class NodeRuntime extends BaseRuntime {
|
|
3
3
|
readonly name: string;
|
|
4
4
|
readonly cmd: string;
|
|
5
|
+
readonly order: number;
|
|
5
6
|
devDependencies(): Record<string, any>;
|
|
6
7
|
compile(src: string, out: string): string;
|
|
7
8
|
startDev(main: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/cli",
|
|
3
|
-
"version": "5.0.0
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"source": "./src/index.ts",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"node": ">=14"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@tsed/cli-core": "5.0.0
|
|
66
|
+
"@tsed/cli-core": "5.0.0",
|
|
67
67
|
"@tsed/core": ">=7.14.2",
|
|
68
68
|
"@tsed/di": ">=7.14.2",
|
|
69
69
|
"@tsed/logger": ">=6.2.1",
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
"tslib": "2.3.1"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@tsed/eslint": "5.0.0
|
|
84
|
-
"@tsed/jest-config": "5.0.0
|
|
85
|
-
"@tsed/typescript": "5.0.0
|
|
83
|
+
"@tsed/eslint": "5.0.0",
|
|
84
|
+
"@tsed/jest-config": "5.0.0",
|
|
85
|
+
"@tsed/typescript": "5.0.0",
|
|
86
86
|
"@types/change-case": "^2.3.1",
|
|
87
87
|
"cross-env": "7.0.3",
|
|
88
88
|
"eslint": "8.22.0",
|
|
@@ -102,8 +102,5 @@
|
|
|
102
102
|
},
|
|
103
103
|
"homepage": "https://github.com/tsedio/tsed-cli/tree/master/packages/cli",
|
|
104
104
|
"author": "Romain Lenzotti",
|
|
105
|
-
"license": "MIT"
|
|
106
|
-
"publishConfig": {
|
|
107
|
-
"tag": "rc"
|
|
108
|
-
}
|
|
105
|
+
"license": "MIT"
|
|
109
106
|
}
|