@nestjs/schematics 10.1.2 → 10.1.4
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/lib/application/application.factory.js +1 -2
- package/dist/lib/application/files/js/package.json +5 -5
- package/dist/lib/application/files/ts/README.md +20 -8
- package/dist/lib/application/files/ts/package.json +2 -2
- package/dist/lib/class/class.factory.js +1 -2
- package/dist/lib/client-app/angular/angular.factory.js +1 -2
- package/dist/lib/configuration/configuration.factory.js +1 -2
- package/dist/lib/controller/controller.factory.js +1 -2
- package/dist/lib/decorator/decorator.factory.js +1 -2
- package/dist/lib/filter/filter.factory.js +1 -2
- package/dist/lib/gateway/gateway.factory.js +1 -2
- package/dist/lib/guard/guard.factory.js +1 -2
- package/dist/lib/interceptor/interceptor.factory.js +1 -2
- package/dist/lib/interface/interface.factory.js +1 -2
- package/dist/lib/library/library.factory.js +1 -2
- package/dist/lib/middleware/middleware.factory.js +1 -2
- package/dist/lib/module/module.factory.js +1 -2
- package/dist/lib/pipe/pipe.factory.js +1 -2
- package/dist/lib/provider/provider.factory.js +1 -2
- package/dist/lib/resolver/resolver.factory.js +1 -2
- package/dist/lib/resource/resource.factory.js +1 -2
- package/dist/lib/service/service.factory.js +1 -2
- package/dist/lib/sub-app/sub-app.factory.js +1 -2
- package/dist/utils/dependencies.utils.js +3 -3
- package/dist/utils/formatting.js +1 -2
- package/dist/utils/metadata.manager.js +1 -1
- package/dist/utils/source-root.helpers.js +2 -3
- package/package.json +9 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.main =
|
|
3
|
+
exports.main = main;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const path_1 = require("path");
|
|
@@ -14,7 +14,6 @@ function main(options) {
|
|
|
14
14
|
options = transform(options);
|
|
15
15
|
return (0, schematics_1.mergeWith)(generate(options, path));
|
|
16
16
|
}
|
|
17
|
-
exports.main = main;
|
|
18
17
|
function transform(options) {
|
|
19
18
|
const target = Object.assign({}, options);
|
|
20
19
|
target.author = !!target.author ? target.author : defaults_1.DEFAULT_AUTHOR;
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@nestjs/testing": "^10.0.0",
|
|
25
|
-
"@babel/core": "7.
|
|
26
|
-
"@babel/node": "7.
|
|
25
|
+
"@babel/core": "7.25.2",
|
|
26
|
+
"@babel/node": "7.25.0",
|
|
27
27
|
"@babel/plugin-proposal-decorators": "7.24.7",
|
|
28
28
|
"@babel/plugin-transform-runtime": "7.24.7",
|
|
29
|
-
"@babel/preset-env": "7.
|
|
29
|
+
"@babel/preset-env": "7.25.3",
|
|
30
30
|
"@babel/register": "7.24.6",
|
|
31
|
-
"@babel/runtime": "7.
|
|
31
|
+
"@babel/runtime": "7.25.0",
|
|
32
32
|
"jest": "29.7.0",
|
|
33
33
|
"nodemon": "3.1.4",
|
|
34
|
-
"prettier": "3.3.
|
|
34
|
+
"prettier": "3.3.3",
|
|
35
35
|
"supertest": "7.0.0"
|
|
36
36
|
},
|
|
37
37
|
"jest": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="
|
|
2
|
+
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
<a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
|
|
16
16
|
<a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
|
|
17
17
|
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
|
|
18
|
-
<a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
|
|
18
|
+
<a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg" alt="Donate us"/></a>
|
|
19
19
|
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg" alt="Support us"></a>
|
|
20
|
-
<a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a>
|
|
20
|
+
<a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow" alt="Follow us on Twitter"></a>
|
|
21
21
|
</p>
|
|
22
22
|
<!--[](https://opencollective.com/nest#backer)
|
|
23
23
|
[](https://opencollective.com/nest#sponsor)-->
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
|
|
27
27
|
[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
|
|
28
28
|
|
|
29
|
-
##
|
|
29
|
+
## Project setup
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
32
|
$ <%= packageManager %> install
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
##
|
|
35
|
+
## Compile and run the project
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
38
|
# development
|
|
@@ -45,7 +45,7 @@ $ <%= packageManager %> run start:dev
|
|
|
45
45
|
$ <%= packageManager %> run start:prod
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
##
|
|
48
|
+
## Run tests
|
|
49
49
|
|
|
50
50
|
```bash
|
|
51
51
|
# unit tests
|
|
@@ -58,16 +58,28 @@ $ <%= packageManager %> run test:e2e
|
|
|
58
58
|
$ <%= packageManager %> run test:cov
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
+
## Resources
|
|
62
|
+
|
|
63
|
+
Check out a few resources that may come in handy when working with NestJS:
|
|
64
|
+
|
|
65
|
+
- Visit the [NestJS Documentation](https://docs.nestjs.com) to learn more about the framework.
|
|
66
|
+
- For questions and support, please visit our [Discord channel](https://discord.gg/G7Qnnhy).
|
|
67
|
+
- To dive deeper and get more hands-on experience, check out our official video [courses](https://courses.nestjs.com/).
|
|
68
|
+
- Visualize your application graph and interact with the NestJS application in real-time using [NestJS Devtools](https://devtools.nestjs.com).
|
|
69
|
+
- Need help with your project (part-time to full-time)? Check out our official [enterprise support](https://enterprise.nestjs.com).
|
|
70
|
+
- To stay in the loop and get updates, follow us on [X](https://x.com/nestframework) and [LinkedIn](https://linkedin.com/company/nestjs).
|
|
71
|
+
- Looking for a job, or have a job to offer? Check out our official [Jobs board](https://jobs.nestjs.com).
|
|
72
|
+
|
|
61
73
|
## Support
|
|
62
74
|
|
|
63
75
|
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
|
|
64
76
|
|
|
65
77
|
## Stay in touch
|
|
66
78
|
|
|
67
|
-
- Author - [Kamil Myśliwiec](https://
|
|
79
|
+
- Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
|
|
68
80
|
- Website - [https://nestjs.com](https://nestjs.com/)
|
|
69
81
|
- Twitter - [@nestframework](https://twitter.com/nestframework)
|
|
70
82
|
|
|
71
83
|
## License
|
|
72
84
|
|
|
73
|
-
Nest is [MIT licensed](LICENSE).
|
|
85
|
+
Nest is [MIT licensed](https://github.com/nestjs/nest/blob/master/LICENSE).
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@types/jest": "^29.5.2",
|
|
35
35
|
"@types/node": "^20.3.1",
|
|
36
36
|
"@types/supertest": "^6.0.0",
|
|
37
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
38
|
-
"@typescript-eslint/parser": "^
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
38
|
+
"@typescript-eslint/parser": "^8.0.0",
|
|
39
39
|
"eslint": "^8.42.0",
|
|
40
40
|
"eslint-config-prettier": "^9.0.0",
|
|
41
41
|
"eslint-plugin-prettier": "^5.0.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.main =
|
|
3
|
+
exports.main = main;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const formatting_1 = require("../../utils/formatting");
|
|
@@ -11,7 +11,6 @@ function main(options) {
|
|
|
11
11
|
options = transform(options);
|
|
12
12
|
return (0, schematics_1.chain)([(0, source_root_helpers_1.mergeSourceRoot)(options), (0, schematics_1.mergeWith)(generate(options))]);
|
|
13
13
|
}
|
|
14
|
-
exports.main = main;
|
|
15
14
|
function transform(options) {
|
|
16
15
|
const target = Object.assign({}, options);
|
|
17
16
|
if (!target.name) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.main =
|
|
3
|
+
exports.main = main;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const path_1 = require("path");
|
|
@@ -20,7 +20,6 @@ function main(options) {
|
|
|
20
20
|
]))(tree, context);
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
exports.main = main;
|
|
24
23
|
function transform(source) {
|
|
25
24
|
const target = Object.assign({}, source);
|
|
26
25
|
target.directory = target.name ? core_1.strings.dasherize(target.name) : 'client';
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.main =
|
|
3
|
+
exports.main = main;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const defaults_1 = require("../defaults");
|
|
7
7
|
function main(options) {
|
|
8
8
|
return (0, schematics_1.mergeWith)(generate(transform(options)));
|
|
9
9
|
}
|
|
10
|
-
exports.main = main;
|
|
11
10
|
function transform(options) {
|
|
12
11
|
const target = Object.assign({}, options);
|
|
13
12
|
target.language =
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.main =
|
|
3
|
+
exports.main = main;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const formatting_1 = require("../../utils/formatting");
|
|
@@ -21,7 +21,6 @@ function main(options) {
|
|
|
21
21
|
]))(tree, context);
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
exports.main = main;
|
|
25
24
|
function transform(source) {
|
|
26
25
|
const target = Object.assign({}, source);
|
|
27
26
|
target.metadata = ELEMENT_METADATA;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.main =
|
|
3
|
+
exports.main = main;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const formatting_1 = require("../../utils/formatting");
|
|
@@ -10,7 +10,6 @@ function main(options) {
|
|
|
10
10
|
options = transform(options);
|
|
11
11
|
return (0, schematics_1.chain)([(0, source_root_helpers_1.mergeSourceRoot)(options), (0, schematics_1.mergeWith)(generate(options))]);
|
|
12
12
|
}
|
|
13
|
-
exports.main = main;
|
|
14
13
|
function transform(options) {
|
|
15
14
|
const target = Object.assign({}, options);
|
|
16
15
|
if (!target.name) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.main =
|
|
3
|
+
exports.main = main;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const formatting_1 = require("../../utils/formatting");
|
|
@@ -10,7 +10,6 @@ function main(options) {
|
|
|
10
10
|
options = transform(options);
|
|
11
11
|
return (0, schematics_1.chain)([(0, source_root_helpers_1.mergeSourceRoot)(options), (0, schematics_1.mergeWith)(generate(options))]);
|
|
12
12
|
}
|
|
13
|
-
exports.main = main;
|
|
14
13
|
function transform(options) {
|
|
15
14
|
const target = Object.assign({}, options);
|
|
16
15
|
if (!target.name) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.main =
|
|
3
|
+
exports.main = main;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const formatting_1 = require("../../utils/formatting");
|
|
@@ -18,7 +18,6 @@ function main(options) {
|
|
|
18
18
|
]))(tree, context);
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
exports.main = main;
|
|
22
21
|
function transform(options) {
|
|
23
22
|
const target = Object.assign({}, options);
|
|
24
23
|
if (!target.name) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.main =
|
|
3
|
+
exports.main = main;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const formatting_1 = require("../../utils/formatting");
|
|
@@ -10,7 +10,6 @@ function main(options) {
|
|
|
10
10
|
options = transform(options);
|
|
11
11
|
return (0, schematics_1.chain)([(0, source_root_helpers_1.mergeSourceRoot)(options), (0, schematics_1.mergeWith)(generate(options))]);
|
|
12
12
|
}
|
|
13
|
-
exports.main = main;
|
|
14
13
|
function transform(options) {
|
|
15
14
|
const target = Object.assign({}, options);
|
|
16
15
|
if (!target.name) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.main =
|
|
3
|
+
exports.main = main;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const formatting_1 = require("../../utils/formatting");
|
|
@@ -10,7 +10,6 @@ function main(options) {
|
|
|
10
10
|
options = transform(options);
|
|
11
11
|
return (0, schematics_1.chain)([(0, source_root_helpers_1.mergeSourceRoot)(options), (0, schematics_1.mergeWith)(generate(options))]);
|
|
12
12
|
}
|
|
13
|
-
exports.main = main;
|
|
14
13
|
function transform(options) {
|
|
15
14
|
const target = Object.assign({}, options);
|
|
16
15
|
if (!target.name) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.main =
|
|
3
|
+
exports.main = main;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const formatting_1 = require("../../utils/formatting");
|
|
@@ -10,7 +10,6 @@ function main(options) {
|
|
|
10
10
|
options = transform(options);
|
|
11
11
|
return (0, schematics_1.chain)([(0, source_root_helpers_1.mergeSourceRoot)(options), (0, schematics_1.mergeWith)(generate(options))]);
|
|
12
12
|
}
|
|
13
|
-
exports.main = main;
|
|
14
13
|
function transform(options) {
|
|
15
14
|
const target = Object.assign({}, options);
|
|
16
15
|
if (!target.name) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.main =
|
|
3
|
+
exports.main = main;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const jsonc_parser_1 = require("jsonc-parser");
|
|
@@ -17,7 +17,6 @@ function main(options) {
|
|
|
17
17
|
(0, schematics_1.branchAndMerge)((0, schematics_1.mergeWith)(generate(options))),
|
|
18
18
|
]);
|
|
19
19
|
}
|
|
20
|
-
exports.main = main;
|
|
21
20
|
function getDefaultLibraryPrefix(defaultLibraryPrefix = '@app') {
|
|
22
21
|
const fileSystemReader = new readers_1.FileSystemReader(process.cwd());
|
|
23
22
|
const content = fileSystemReader.readSyncAnyOf([
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.main =
|
|
3
|
+
exports.main = main;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const formatting_1 = require("../../utils/formatting");
|
|
@@ -10,7 +10,6 @@ function main(options) {
|
|
|
10
10
|
options = transform(options);
|
|
11
11
|
return (0, schematics_1.chain)([(0, source_root_helpers_1.mergeSourceRoot)(options), (0, schematics_1.mergeWith)(generate(options))]);
|
|
12
12
|
}
|
|
13
|
-
exports.main = main;
|
|
14
13
|
function transform(options) {
|
|
15
14
|
const target = Object.assign({}, options);
|
|
16
15
|
if (!target.name) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.main =
|
|
3
|
+
exports.main = main;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const formatting_1 = require("../../utils/formatting");
|
|
@@ -18,7 +18,6 @@ function main(options) {
|
|
|
18
18
|
]))(tree, context);
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
exports.main = main;
|
|
22
21
|
function transform(source) {
|
|
23
22
|
const target = Object.assign({}, source);
|
|
24
23
|
target.metadata = 'imports';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.main =
|
|
3
|
+
exports.main = main;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const formatting_1 = require("../../utils/formatting");
|
|
@@ -10,7 +10,6 @@ function main(options) {
|
|
|
10
10
|
options = transform(options);
|
|
11
11
|
return (0, schematics_1.chain)([(0, source_root_helpers_1.mergeSourceRoot)(options), (0, schematics_1.mergeWith)(generate(options))]);
|
|
12
12
|
}
|
|
13
|
-
exports.main = main;
|
|
14
13
|
function transform(options) {
|
|
15
14
|
const target = Object.assign({}, options);
|
|
16
15
|
if (!target.name) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.main =
|
|
3
|
+
exports.main = main;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const formatting_1 = require("../../utils/formatting");
|
|
@@ -18,7 +18,6 @@ function main(options) {
|
|
|
18
18
|
]))(tree, context);
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
exports.main = main;
|
|
22
21
|
function transform(options) {
|
|
23
22
|
const target = Object.assign({}, options);
|
|
24
23
|
target.metadata = 'providers';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.main =
|
|
3
|
+
exports.main = main;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const formatting_1 = require("../../utils/formatting");
|
|
@@ -18,7 +18,6 @@ function main(options) {
|
|
|
18
18
|
]))(tree, context);
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
exports.main = main;
|
|
22
21
|
function transform(options) {
|
|
23
22
|
const target = Object.assign({}, options);
|
|
24
23
|
if (!target.name) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.main =
|
|
3
|
+
exports.main = main;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const strings_1 = require("@angular-devkit/core/src/utils/strings");
|
|
6
6
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
@@ -22,7 +22,6 @@ function main(options) {
|
|
|
22
22
|
]))(tree, context);
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
exports.main = main;
|
|
26
25
|
function transform(options) {
|
|
27
26
|
const target = Object.assign({}, options);
|
|
28
27
|
if (!target.name) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.main =
|
|
3
|
+
exports.main = main;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const util_1 = require("util");
|
|
@@ -19,7 +19,6 @@ function main(options) {
|
|
|
19
19
|
]))(tree, context);
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
exports.main = main;
|
|
23
22
|
function transform(source) {
|
|
24
23
|
const target = Object.assign({}, source);
|
|
25
24
|
target.metadata = 'providers';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.main =
|
|
3
|
+
exports.main = main;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const fs_1 = require("fs");
|
|
@@ -23,7 +23,6 @@ function main(options) {
|
|
|
23
23
|
(0, schematics_1.branchAndMerge)((0, schematics_1.mergeWith)(generate(options))),
|
|
24
24
|
]);
|
|
25
25
|
}
|
|
26
|
-
exports.main = main;
|
|
27
26
|
function getAppNameFromPackageJson() {
|
|
28
27
|
try {
|
|
29
28
|
if (!(0, fs_1.existsSync)('./package.json')) {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NodeDependencyType = void 0;
|
|
4
|
+
exports.addPackageJsonDependency = addPackageJsonDependency;
|
|
5
|
+
exports.getPackageJsonDependency = getPackageJsonDependency;
|
|
4
6
|
const json_file_util_1 = require("./json-file.util");
|
|
5
7
|
const PKG_JSON_PATH = '/package.json';
|
|
6
8
|
var NodeDependencyType;
|
|
@@ -24,7 +26,6 @@ function addPackageJsonDependency(tree, dependency, pkgJsonPath = PKG_JSON_PATH)
|
|
|
24
26
|
json.modify(path, version);
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
|
-
exports.addPackageJsonDependency = addPackageJsonDependency;
|
|
28
29
|
function getPackageJsonDependency(tree, name, pkgJsonPath = PKG_JSON_PATH) {
|
|
29
30
|
const json = new json_file_util_1.JSONFile(tree, pkgJsonPath);
|
|
30
31
|
for (const depType of ALL_DEPENDENCY_TYPE) {
|
|
@@ -39,4 +40,3 @@ function getPackageJsonDependency(tree, name, pkgJsonPath = PKG_JSON_PATH) {
|
|
|
39
40
|
}
|
|
40
41
|
return null;
|
|
41
42
|
}
|
|
42
|
-
exports.getPackageJsonDependency = getPackageJsonDependency;
|
package/dist/utils/formatting.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.normalizeToKebabOrSnakeCase =
|
|
3
|
+
exports.normalizeToKebabOrSnakeCase = normalizeToKebabOrSnakeCase;
|
|
4
4
|
function normalizeToKebabOrSnakeCase(str) {
|
|
5
5
|
const STRING_DASHERIZE_REGEXP = /\s/g;
|
|
6
6
|
const STRING_DECAMELIZE_REGEXP = /([a-z\d])([A-Z])/g;
|
|
@@ -10,4 +10,3 @@ function normalizeToKebabOrSnakeCase(str) {
|
|
|
10
10
|
?.toLowerCase()
|
|
11
11
|
?.replace(STRING_DASHERIZE_REGEXP, '-');
|
|
12
12
|
}
|
|
13
|
-
exports.normalizeToKebabOrSnakeCase = normalizeToKebabOrSnakeCase;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isInRootDirectory = isInRootDirectory;
|
|
4
|
+
exports.mergeSourceRoot = mergeSourceRoot;
|
|
4
5
|
const core_1 = require("@angular-devkit/core");
|
|
5
6
|
const defaults_1 = require("../lib/defaults");
|
|
6
7
|
function isInRootDirectory(host, extraFiles = []) {
|
|
7
8
|
const files = ['nest-cli.json', 'nest.json'].concat(extraFiles || []);
|
|
8
9
|
return files.map(file => host.exists(file)).some(isPresent => isPresent);
|
|
9
10
|
}
|
|
10
|
-
exports.isInRootDirectory = isInRootDirectory;
|
|
11
11
|
function mergeSourceRoot(options) {
|
|
12
12
|
return (host) => {
|
|
13
13
|
const isInRoot = isInRootDirectory(host, ['tsconfig.json', 'package.json']);
|
|
@@ -22,4 +22,3 @@ function mergeSourceRoot(options) {
|
|
|
22
22
|
return host;
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
exports.mergeSourceRoot = mergeSourceRoot;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/schematics",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.4",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@schematics)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -48,25 +48,25 @@
|
|
|
48
48
|
"pluralize": "8.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@commitlint/cli": "19.
|
|
51
|
+
"@commitlint/cli": "19.4.0",
|
|
52
52
|
"@commitlint/config-angular": "19.3.0",
|
|
53
53
|
"@types/jest": "29.5.12",
|
|
54
|
-
"@types/node": "20.
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "
|
|
56
|
-
"@typescript-eslint/parser": "
|
|
54
|
+
"@types/node": "20.16.1",
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "8.1.0",
|
|
56
|
+
"@typescript-eslint/parser": "8.1.0",
|
|
57
57
|
"cpx2": "7.0.1",
|
|
58
58
|
"eslint": "8.57.0",
|
|
59
59
|
"eslint-config-prettier": "9.1.0",
|
|
60
60
|
"eslint-plugin-import": "2.29.1",
|
|
61
61
|
"gulp": "5.0.0",
|
|
62
62
|
"gulp-clean": "0.4.0",
|
|
63
|
-
"husky": "9.
|
|
63
|
+
"husky": "9.1.4",
|
|
64
64
|
"jest": "29.7.0",
|
|
65
65
|
"nyc": "17.0.0",
|
|
66
|
-
"release-it": "17.
|
|
67
|
-
"ts-jest": "29.
|
|
66
|
+
"release-it": "17.6.0",
|
|
67
|
+
"ts-jest": "29.2.4",
|
|
68
68
|
"ts-node": "10.9.2",
|
|
69
|
-
"typescript": "5.5.
|
|
69
|
+
"typescript": "5.5.4"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"typescript": ">=4.8.2"
|