@tsed/cli 6.0.4 → 6.1.2
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/esm/commands/init/config/FeaturesPrompt.js +21 -2
- package/lib/esm/constants/index.js +1 -1
- package/lib/esm/utils/fillImports.js +1 -0
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/types/commands/init/config/FeaturesPrompt.d.ts +3 -1
- package/lib/types/constants/index.d.ts +1 -1
- package/package.json +3 -3
- package/templates/generate/server.hbs +6 -0
- package/templates/init/README.md.hbs +5 -5
|
@@ -10,11 +10,13 @@ export interface Feature {
|
|
|
10
10
|
export declare enum FeatureType {
|
|
11
11
|
GRAPHQL = "graphql",
|
|
12
12
|
SOCKETIO = "socketio",
|
|
13
|
-
SWAGGER = "swagger",
|
|
14
13
|
OIDC = "oidc",
|
|
15
14
|
PASSPORTJS = "passportjs",
|
|
16
15
|
COMMANDS = "commands",
|
|
17
16
|
DB = "db",
|
|
17
|
+
DOC = "doc",
|
|
18
|
+
SWAGGER = "swagger",
|
|
19
|
+
SCALAR = "scalar",
|
|
18
20
|
PRISMA = "prisma",
|
|
19
21
|
MONGOOSE = "mongoose",
|
|
20
22
|
TYPEORM = "typeorm",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const PKG: import("read-pkg-up").NormalizedPackageJson;
|
|
2
2
|
export declare const MINIMAL_TSED_VERSION = "8";
|
|
3
|
-
export declare const DEFAULT_TSED_TAGS = "
|
|
3
|
+
export declare const DEFAULT_TSED_TAGS = "latest";
|
|
4
4
|
export declare const IGNORE_VERSIONS: string[];
|
|
5
5
|
export declare const IGNORE_TAGS: false | RegExp;
|
|
6
6
|
export declare const TEMPLATE_DIR: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/cli",
|
|
3
3
|
"description": "CLI to bootstrap your Ts.ED project",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.1.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/esm/index.js",
|
|
7
7
|
"source": "./src/index.ts",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@swc-node/register": "^1.10.9",
|
|
67
67
|
"@swc/core": "1.7.26",
|
|
68
68
|
"@swc/helpers": "^0.5.13",
|
|
69
|
-
"@tsed/cli-core": "6.
|
|
69
|
+
"@tsed/cli-core": "6.1.2",
|
|
70
70
|
"@tsed/core": ">=8.0.0",
|
|
71
71
|
"@tsed/di": ">=8.0.0",
|
|
72
72
|
"@tsed/hooks": ">=8.0.0",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"tslib": "^2.7.0"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@tsed/typescript": "6.
|
|
85
|
+
"@tsed/typescript": "6.1.2",
|
|
86
86
|
"@types/change-case": "^2.3.1",
|
|
87
87
|
"cross-env": "7.0.3",
|
|
88
88
|
"typescript": "5.6.2",
|
|
@@ -29,6 +29,12 @@ import {application} from "@tsed/platform-http";
|
|
|
29
29
|
path: "/doc",
|
|
30
30
|
specVersion: "3.0.1"
|
|
31
31
|
}
|
|
32
|
+
],{{/if}}{{#if scalar}}
|
|
33
|
+
scalar: [
|
|
34
|
+
{
|
|
35
|
+
path: {{#if swagger}}"/scalar/doc"{{else}}"/doc"{{/if}},
|
|
36
|
+
specVersion: "3.0.1"
|
|
37
|
+
}
|
|
32
38
|
],{{/if}}
|
|
33
39
|
middlewares: [{{#if express}}
|
|
34
40
|
"cors",
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
|
|
22
22
|
## Getting started
|
|
23
23
|
|
|
24
|
-
> **Important!** Ts.ED requires Node >=
|
|
24
|
+
> **Important!** Ts.ED requires Node >= 20.x or Bun.js and TypeScript >= 5.
|
|
25
25
|
|
|
26
26
|
```batch
|
|
27
27
|
# install dependencies
|
|
28
|
-
$ {{#if yarn}}yarn{{/if}}{{#if npm}}npm{{/if}} install
|
|
28
|
+
$ {{#if yarn}}yarn{{/if}}{{#if npm}}npm{{/if}}{{#if pnpm}}pnpm{{/if}} install
|
|
29
29
|
|
|
30
30
|
# serve
|
|
31
|
-
$ {{#if yarn}}yarn{{/if}}{{#if npm}}npm run{{/if}} start
|
|
31
|
+
$ {{#if yarn}}yarn{{/if}}{{#if npm}}npm run{{/if}}{{#if pnpm}}pnpm{{/if}} start
|
|
32
32
|
|
|
33
33
|
# build for production
|
|
34
|
-
$ {{#if yarn}}yarn{{/if}}{{#if npm}}npm run{{/if}} build
|
|
35
|
-
$ {{#if yarn}}yarn{{/if}}{{#if npm}}npm run{{/if}} start:prod
|
|
34
|
+
$ {{#if yarn}}yarn{{/if}}{{#if npm}}npm run{{/if}}{{#if pnpm}}pnpm{{/if}} build
|
|
35
|
+
$ {{#if yarn}}yarn{{/if}}{{#if npm}}npm run{{/if}}{{#if pnpm}}pnpm{{/if}} start:prod
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
## Docker
|