@foal/cli 3.2.0 → 4.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/generate/templates/app/config/default.json +2 -2
- package/lib/generate/templates/app/config/default.yml +1 -1
- package/lib/generate/templates/app/package.json +15 -15
- package/lib/generate/templates/app/package.mongodb.json +14 -14
- package/lib/generate/templates/app/src/app/entities/user.entity.mongodb.ts +2 -2
- package/lib/generate/templates/entity/entity.mongodb.ts +2 -2
- package/package.json +10 -10
|
@@ -21,26 +21,26 @@
|
|
|
21
21
|
"revertmigration": "npx typeorm migration:revert -d build/db"
|
|
22
22
|
},
|
|
23
23
|
"engines": {
|
|
24
|
-
"node": ">=
|
|
24
|
+
"node": ">=18.0.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@foal/core": "^
|
|
28
|
-
"@foal/typeorm": "^
|
|
27
|
+
"@foal/core": "^4.0.0",
|
|
28
|
+
"@foal/typeorm": "^4.0.0",
|
|
29
29
|
"source-map-support": "~0.5.21",
|
|
30
|
-
"
|
|
31
|
-
"typeorm": "0.3.
|
|
30
|
+
"sqlite3": "~5.1.6",
|
|
31
|
+
"typeorm": "0.3.17"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@foal/cli": "^
|
|
35
|
-
"@types/mocha": "
|
|
36
|
-
"@types/node": "
|
|
37
|
-
"concurrently": "~
|
|
38
|
-
"mocha": "~10.
|
|
39
|
-
"supertest": "~6.
|
|
34
|
+
"@foal/cli": "^4.0.0",
|
|
35
|
+
"@types/mocha": "10.0.1",
|
|
36
|
+
"@types/node": "18.11.9",
|
|
37
|
+
"concurrently": "~8.2.1",
|
|
38
|
+
"mocha": "~10.2.0",
|
|
39
|
+
"supertest": "~6.3.3",
|
|
40
40
|
"supervisor": "~0.12.0",
|
|
41
|
-
"eslint": "~8.
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "~5.
|
|
43
|
-
"@typescript-eslint/parser": "~5.
|
|
44
|
-
"typescript": "~4.
|
|
41
|
+
"eslint": "~8.48.0",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "~6.5.0",
|
|
43
|
+
"@typescript-eslint/parser": "~6.5.0",
|
|
44
|
+
"typescript": "~4.9.5"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -18,25 +18,25 @@
|
|
|
18
18
|
"lint:fix": "eslint --ext ts --fix src"
|
|
19
19
|
},
|
|
20
20
|
"engines": {
|
|
21
|
-
"node": ">=
|
|
21
|
+
"node": ">=18.0.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@foal/core": "^
|
|
25
|
-
"mongodb": "~
|
|
24
|
+
"@foal/core": "^4.0.0",
|
|
25
|
+
"mongodb": "~5.8.1",
|
|
26
26
|
"source-map-support": "~0.5.21",
|
|
27
|
-
"typeorm": "0.3.
|
|
27
|
+
"typeorm": "0.3.17"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@foal/cli": "^
|
|
31
|
-
"@types/mocha": "
|
|
32
|
-
"@types/node": "
|
|
33
|
-
"concurrently": "~
|
|
34
|
-
"mocha": "~10.
|
|
35
|
-
"supertest": "~6.
|
|
30
|
+
"@foal/cli": "^4.0.0",
|
|
31
|
+
"@types/mocha": "10.0.1",
|
|
32
|
+
"@types/node": "18.11.9",
|
|
33
|
+
"concurrently": "~8.2.1",
|
|
34
|
+
"mocha": "~10.2.0",
|
|
35
|
+
"supertest": "~6.3.3",
|
|
36
36
|
"supervisor": "~0.12.0",
|
|
37
|
-
"eslint": "~8.
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "~5.
|
|
39
|
-
"@typescript-eslint/parser": "~5.
|
|
40
|
-
"typescript": "~4.
|
|
37
|
+
"eslint": "~8.48.0",
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "~6.5.0",
|
|
39
|
+
"@typescript-eslint/parser": "~6.5.0",
|
|
40
|
+
"typescript": "~4.9.5"
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseEntity, Entity,
|
|
1
|
+
import { BaseEntity, Entity, ObjectId, ObjectIdColumn } from 'typeorm';
|
|
2
2
|
|
|
3
3
|
@Entity()
|
|
4
4
|
export class User extends BaseEntity {
|
|
5
5
|
|
|
6
6
|
@ObjectIdColumn()
|
|
7
|
-
_id:
|
|
7
|
+
_id: ObjectId;
|
|
8
8
|
|
|
9
9
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2
|
-
import { BaseEntity, Column, Entity,
|
|
2
|
+
import { BaseEntity, Column, Entity, ObjectId, ObjectIdColumn } from 'typeorm';
|
|
3
3
|
|
|
4
4
|
@Entity()
|
|
5
5
|
export class /* upperFirstCamelName */ extends BaseEntity {
|
|
6
6
|
|
|
7
7
|
@ObjectIdColumn()
|
|
8
|
-
_id:
|
|
8
|
+
_id: ObjectId;
|
|
9
9
|
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foal/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "CLI tool for FoalTS",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"url": "https://github.com/sponsors/LoicPoullain"
|
|
24
24
|
},
|
|
25
25
|
"engines": {
|
|
26
|
-
"node": ">=
|
|
26
|
+
"node": ">=18.0.0"
|
|
27
27
|
},
|
|
28
28
|
"bin": {
|
|
29
29
|
"foal": "./lib/index.js"
|
|
@@ -57,21 +57,21 @@
|
|
|
57
57
|
"bin/"
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"ajv": "~8.
|
|
60
|
+
"ajv": "~8.12.0",
|
|
61
61
|
"ajv-formats": "~2.1.1",
|
|
62
62
|
"cli-spinner": "~0.2.10",
|
|
63
63
|
"colors": "1.4.0",
|
|
64
|
-
"commander": "~
|
|
64
|
+
"commander": "~11.0.0",
|
|
65
65
|
"node-fetch": "~2.6.7"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@types/mocha": "
|
|
69
|
-
"@types/node": "
|
|
68
|
+
"@types/mocha": "10.0.1",
|
|
69
|
+
"@types/node": "18.11.9",
|
|
70
70
|
"copyfiles": "~2.4.1",
|
|
71
|
-
"mocha": "~10.
|
|
72
|
-
"rimraf": "~
|
|
71
|
+
"mocha": "~10.2.0",
|
|
72
|
+
"rimraf": "~5.0.1",
|
|
73
73
|
"ts-node": "~10.9.1",
|
|
74
|
-
"typescript": "~4.
|
|
74
|
+
"typescript": "~4.9.5"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "4a0934aa4b9e0fe1f5a999a541ed5311ad9fc484"
|
|
77
77
|
}
|