@nestjs/cli 8.1.1 → 8.1.5
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/.circleci/config.yml +2 -2
- package/.github/ISSUE_TEMPLATE/Bug_report.yml +106 -0
- package/.github/ISSUE_TEMPLATE/Feature_request.yml +52 -0
- package/.github/ISSUE_TEMPLATE/Regression.yml +78 -0
- package/.github/ISSUE_TEMPLATE/config.yml +7 -0
- package/CONTRIBUTING.md +3 -5
- package/commands/new.command.js +2 -0
- package/lib/compiler/assets-manager.d.ts +4 -0
- package/lib/compiler/assets-manager.js +17 -2
- package/lib/compiler/defaults/webpack-defaults.js +1 -1
- package/lib/compiler/webpack-compiler.js +1 -1
- package/lib/package-managers/abstract.package-manager.d.ts +3 -3
- package/lib/package-managers/abstract.package-manager.js +3 -3
- package/package.json +29 -29
- package/.github/ISSUE_TEMPLATE.md +0 -38
package/.circleci/config.yml
CHANGED
|
@@ -21,7 +21,7 @@ jobs:
|
|
|
21
21
|
build:
|
|
22
22
|
working_directory: ~/nest
|
|
23
23
|
docker:
|
|
24
|
-
- image: circleci/node:
|
|
24
|
+
- image: circleci/node:17
|
|
25
25
|
steps:
|
|
26
26
|
- checkout
|
|
27
27
|
- run:
|
|
@@ -43,7 +43,7 @@ jobs:
|
|
|
43
43
|
unit_tests:
|
|
44
44
|
working_directory: ~/nest
|
|
45
45
|
docker:
|
|
46
|
-
- image: circleci/node:
|
|
46
|
+
- image: circleci/node:17
|
|
47
47
|
steps:
|
|
48
48
|
- checkout
|
|
49
49
|
- *restore-cache
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
name: "\U0001F41B Bug Report"
|
|
2
|
+
description: "If something isn't working as expected \U0001F914"
|
|
3
|
+
labels: ["needs triage", "bug"]
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
## :warning: We use GitHub Issues to track bug reports, feature requests and regressions
|
|
9
|
+
|
|
10
|
+
If you are not sure that your issue is a bug, you could:
|
|
11
|
+
|
|
12
|
+
- use our [Discord community](https://discord.gg/NestJS)
|
|
13
|
+
- use [StackOverflow using the tag `nestjs`](https://stackoverflow.com/questions/tagged/nestjs)
|
|
14
|
+
- If it's just a quick question you can ping [our Twitter](https://twitter.com/nestframework)
|
|
15
|
+
|
|
16
|
+
**NOTE:** You don't need to answer questions that you know that aren't relevant.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
- type: checkboxes
|
|
21
|
+
attributes:
|
|
22
|
+
label: "Is there an existing issue for this?"
|
|
23
|
+
description: "Please search [here](./?q=is%3Aissue) to see if an issue already exists for the bug you encountered"
|
|
24
|
+
options:
|
|
25
|
+
- label: "I have searched the existing issues"
|
|
26
|
+
required: true
|
|
27
|
+
|
|
28
|
+
- type: textarea
|
|
29
|
+
validations:
|
|
30
|
+
required: true
|
|
31
|
+
attributes:
|
|
32
|
+
label: "Current behavior"
|
|
33
|
+
description: "How the issue manifests?"
|
|
34
|
+
|
|
35
|
+
- type: input
|
|
36
|
+
validations:
|
|
37
|
+
required: true
|
|
38
|
+
attributes:
|
|
39
|
+
label: "Minimum reproduction code"
|
|
40
|
+
description: "An URL to some git repository or gist that reproduces this issue. [Wtf is a minimum reproduction?](https://jmcdo29.github.io/wtf-is-a-minimum-reproduction)"
|
|
41
|
+
placeholder: "https://github.com/..."
|
|
42
|
+
|
|
43
|
+
- type: textarea
|
|
44
|
+
attributes:
|
|
45
|
+
label: "Steps to reproduce"
|
|
46
|
+
description: |
|
|
47
|
+
How the issue manifests?
|
|
48
|
+
You could leave this blank if you alread write this in your reproduction code/repo
|
|
49
|
+
placeholder: |
|
|
50
|
+
1. `npm i`
|
|
51
|
+
2. `npm start:dev`
|
|
52
|
+
3. See error...
|
|
53
|
+
|
|
54
|
+
- type: textarea
|
|
55
|
+
validations:
|
|
56
|
+
required: true
|
|
57
|
+
attributes:
|
|
58
|
+
label: "Expected behavior"
|
|
59
|
+
description: "A clear and concise description of what you expected to happend (or code)"
|
|
60
|
+
|
|
61
|
+
- type: markdown
|
|
62
|
+
attributes:
|
|
63
|
+
value: |
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
- type: input
|
|
67
|
+
validations:
|
|
68
|
+
required: true
|
|
69
|
+
attributes:
|
|
70
|
+
label: "Package version"
|
|
71
|
+
description: |
|
|
72
|
+
Which version of `@nestjs/cli` are you using?
|
|
73
|
+
**Tip**: Make sure that all of yours `@nestjs/*` dependencies are in sync!
|
|
74
|
+
placeholder: "8.1.3"
|
|
75
|
+
|
|
76
|
+
- type: input
|
|
77
|
+
attributes:
|
|
78
|
+
label: "NestJS version"
|
|
79
|
+
description: "Which version of `@nestjs/core` are you using?"
|
|
80
|
+
placeholder: "8.1.3"
|
|
81
|
+
|
|
82
|
+
- type: input
|
|
83
|
+
attributes:
|
|
84
|
+
label: "Node.js version"
|
|
85
|
+
description: "Which version of Node.js are you using?"
|
|
86
|
+
placeholder: "14.17.6"
|
|
87
|
+
|
|
88
|
+
- type: checkboxes
|
|
89
|
+
attributes:
|
|
90
|
+
label: "In which operating systems have you tested?"
|
|
91
|
+
options:
|
|
92
|
+
- label: macOS
|
|
93
|
+
- label: Windows
|
|
94
|
+
- label: Linux
|
|
95
|
+
|
|
96
|
+
- type: markdown
|
|
97
|
+
attributes:
|
|
98
|
+
value: |
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
- type: textarea
|
|
102
|
+
attributes:
|
|
103
|
+
label: "Other"
|
|
104
|
+
description: |
|
|
105
|
+
Anything else relevant? eg: Logs, OS version, IDE, package manager, etc.
|
|
106
|
+
**Tip:** You can attach images, recordings or log files by clicking this area to highlight it and then dragging files in
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: "\U0001F680 Feature Request"
|
|
2
|
+
description: "I have a suggestion \U0001F63B!"
|
|
3
|
+
labels: ["feature"]
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
## :warning: We use GitHub Issues to track bug reports, feature requests and regressions
|
|
9
|
+
|
|
10
|
+
If you are not sure that your issue is a bug, you could:
|
|
11
|
+
|
|
12
|
+
- use our [Discord community](https://discord.gg/NestJS)
|
|
13
|
+
- use [StackOverflow using the tag `nestjs`](https://stackoverflow.com/questions/tagged/nestjs)
|
|
14
|
+
- If it's just a quick question you can ping [our Twitter](https://twitter.com/nestframework)
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
- type: checkboxes
|
|
19
|
+
attributes:
|
|
20
|
+
label: "Is there an existing issue that is already proposing this?"
|
|
21
|
+
description: "Please search [here](./?q=is%3Aissue) to see if an issue already exists for the feature you are requesting"
|
|
22
|
+
options:
|
|
23
|
+
- label: "I have searched the existing issues"
|
|
24
|
+
required: true
|
|
25
|
+
|
|
26
|
+
- type: textarea
|
|
27
|
+
validations:
|
|
28
|
+
required: true
|
|
29
|
+
attributes:
|
|
30
|
+
label: "Is your feature request related to a problem? Please describe it"
|
|
31
|
+
description: "A clear and concise description of what the problem is"
|
|
32
|
+
placeholder: |
|
|
33
|
+
I have an issue when ...
|
|
34
|
+
|
|
35
|
+
- type: textarea
|
|
36
|
+
validations:
|
|
37
|
+
required: true
|
|
38
|
+
attributes:
|
|
39
|
+
label: "Describe the solution you'd like"
|
|
40
|
+
description: "A clear and concise description of what you want to happen. Add any considered drawbacks"
|
|
41
|
+
|
|
42
|
+
- type: textarea
|
|
43
|
+
attributes:
|
|
44
|
+
label: "Teachability, documentation, adoption, migration strategy"
|
|
45
|
+
description: "If you can, explain how users will be able to use this and possibly write out a version the docs. Maybe a screenshot or design?"
|
|
46
|
+
|
|
47
|
+
- type: textarea
|
|
48
|
+
validations:
|
|
49
|
+
required: true
|
|
50
|
+
attributes:
|
|
51
|
+
label: "What is the motivation / use case for changing the behavior?"
|
|
52
|
+
description: "Describe the motivation or the concrete use case"
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
name: "\U0001F4A5 Regression"
|
|
2
|
+
description: "Report an unexpected behavior while upgrading your Nest application!"
|
|
3
|
+
labels: ["needs triage"]
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
## :warning: We use GitHub Issues to track bug reports, feature requests and regressions
|
|
9
|
+
|
|
10
|
+
If you are not sure that your issue is a bug, you could:
|
|
11
|
+
|
|
12
|
+
- use our [Discord community](https://discord.gg/NestJS)
|
|
13
|
+
- use [StackOverflow using the tag `nestjs`](https://stackoverflow.com/questions/tagged/nestjs)
|
|
14
|
+
- If it's just a quick question you can ping [our Twitter](https://twitter.com/nestframework)
|
|
15
|
+
|
|
16
|
+
**NOTE:** You don't need to answer questions that you know that aren't relevant.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
- type: checkboxes
|
|
21
|
+
attributes:
|
|
22
|
+
label: "Did you read the migration guide?"
|
|
23
|
+
description: "Check out the [migration guide here](https://docs.nestjs.com/migration-guide)!"
|
|
24
|
+
options:
|
|
25
|
+
- label: "I have read the whole migration guide"
|
|
26
|
+
required: false
|
|
27
|
+
|
|
28
|
+
- type: checkboxes
|
|
29
|
+
attributes:
|
|
30
|
+
label: "Is there an existing issue that is already proposing this?"
|
|
31
|
+
description: "Please search [here](./?q=is%3Aissue) to see if an issue already exists for the feature you are requesting"
|
|
32
|
+
options:
|
|
33
|
+
- label: "I have searched the existing issues"
|
|
34
|
+
required: true
|
|
35
|
+
|
|
36
|
+
- type: input
|
|
37
|
+
attributes:
|
|
38
|
+
label: "Potential Commit/PR that introduced the regression"
|
|
39
|
+
description: "If you have time to investigate, what PR/date/version introduced this issue"
|
|
40
|
+
placeholder: "PR #123 or commit 5b3c4a4"
|
|
41
|
+
|
|
42
|
+
- type: input
|
|
43
|
+
attributes:
|
|
44
|
+
label: "Versions"
|
|
45
|
+
description: "From which version of `@nestjs/cli` to which version you are upgrading"
|
|
46
|
+
placeholder: "8.1.0 -> 8.1.3"
|
|
47
|
+
|
|
48
|
+
- type: textarea
|
|
49
|
+
validations:
|
|
50
|
+
required: true
|
|
51
|
+
attributes:
|
|
52
|
+
label: "Describe the regression"
|
|
53
|
+
description: "A clear and concise description of what the regression is"
|
|
54
|
+
|
|
55
|
+
- type: textarea
|
|
56
|
+
attributes:
|
|
57
|
+
label: "Minimum reproduction code"
|
|
58
|
+
description: |
|
|
59
|
+
Please share a git repo, a gist, or step-by-step instructions. [Wtf is a minimum reproduction?](https://jmcdo29.github.io/wtf-is-a-minimum-reproduction)
|
|
60
|
+
**Tip:** If you leave a minimum repository, we will understand your issue faster!
|
|
61
|
+
value: |
|
|
62
|
+
```ts
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
- type: textarea
|
|
67
|
+
validations:
|
|
68
|
+
required: true
|
|
69
|
+
attributes:
|
|
70
|
+
label: "Expected behavior"
|
|
71
|
+
description: "A clear and concise description of what you expected to happend (or code)"
|
|
72
|
+
|
|
73
|
+
- type: textarea
|
|
74
|
+
attributes:
|
|
75
|
+
label: "Other"
|
|
76
|
+
description: |
|
|
77
|
+
Anything else relevant? eg: Logs, OS version, IDE, package manager, etc.
|
|
78
|
+
**Tip:** You can attach images, recordings or log files by clicking this area to highlight it and then dragging files in
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
## To encourage contributors to use issue templates, we don't allow blank issues
|
|
2
|
+
blank_issues_enabled: false
|
|
3
|
+
|
|
4
|
+
contact_links:
|
|
5
|
+
- name: "\u2753 Discord Community of NestJS"
|
|
6
|
+
url: "https://discord.gg/NestJS"
|
|
7
|
+
about: "Please ask support questions or discuss suggestions/enhancements here."
|
package/CONTRIBUTING.md
CHANGED
|
@@ -48,7 +48,7 @@ We want to fix all the issues as soon as possible, but before fixing a bug we ne
|
|
|
48
48
|
- version of NestJS-CLI used (`nest info`)
|
|
49
49
|
- and most importantly - a use-case that fails
|
|
50
50
|
|
|
51
|
-
Unfortunately, we are not able to investigate / fix bugs without a minimal reproduction, so if we don't hear back from you we are going to close an issue that
|
|
51
|
+
Unfortunately, we are not able to investigate / fix bugs without a minimal reproduction, so if we don't hear back from you we are going to close an issue that doesn't have enough info to be reproduced.
|
|
52
52
|
|
|
53
53
|
You can file new issues by filling out our [new issue form](https://github.com/nestjs/nest/issues/new).
|
|
54
54
|
|
|
@@ -127,8 +127,7 @@ To ensure consistency throughout the source code, keep these rules in mind as yo
|
|
|
127
127
|
// We're working on auto-documentation.
|
|
128
128
|
* All public API methods **must be documented**. (Details TBC). -->
|
|
129
129
|
* We follow [Google's JavaScript Style Guide][js-style-guide], but wrap all code at
|
|
130
|
-
**100 characters**. An automated formatter is available
|
|
131
|
-
[DEVELOPER.md](docs/DEVELOPER.md#clang-format).
|
|
130
|
+
**100 characters**. An automated formatter is available ( `npm run format` ).
|
|
132
131
|
|
|
133
132
|
## <a name="commit"></a> Commit Message Guidelines
|
|
134
133
|
|
|
@@ -150,7 +149,7 @@ format that includes a **type**, a **scope** and a **subject**:
|
|
|
150
149
|
|
|
151
150
|
The **header** is mandatory and the **scope** of the header is optional.
|
|
152
151
|
|
|
153
|
-
Any line of the commit message cannot be longer 100 characters! This allows the message to be easier
|
|
152
|
+
Any line of the commit message cannot be longer than 100 characters! This allows the message to be easier
|
|
154
153
|
to read on GitHub as well as in various git tools.
|
|
155
154
|
|
|
156
155
|
Footer should contain a [closing reference to an issue](https://help.github.com/articles/closing-issues-via-commit-messages/) if any.
|
|
@@ -217,7 +216,6 @@ changes to be accepted, the CLA must be signed. It's a quick process, we promise
|
|
|
217
216
|
<!-- [coc]: https://github.com/angular/code-of-conduct/blob/master/CODE_OF_CONDUCT.md -->
|
|
218
217
|
[commit-message-format]: https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#
|
|
219
218
|
[corporate-cla]: http://code.google.com/legal/corporate-cla-v1.0.html
|
|
220
|
-
[dev-doc]: https://github.com/nestjs/nest/blob/master/docs/DEVELOPER.md
|
|
221
219
|
[github]: https://github.com/nestjs/nest
|
|
222
220
|
[gitter]: https://gitter.im/nestjs/nest
|
|
223
221
|
[individual-cla]: http://code.google.com/legal/individual-cla-v1.0.html
|
package/commands/new.command.js
CHANGED
|
@@ -25,6 +25,7 @@ class NewCommand extends abstract_command_1.AbstractCommand {
|
|
|
25
25
|
.option('-p, --package-manager [package-manager]', 'Specify package manager.')
|
|
26
26
|
.option('-l, --language [language]', 'Programming language to be used (TypeScript or JavaScript).')
|
|
27
27
|
.option('-c, --collection [collectionName]', 'Schematics collection to use.')
|
|
28
|
+
.option('--strict', 'Enables strict mode in TypeScript.')
|
|
28
29
|
.action((name, command) => __awaiter(this, void 0, void 0, function* () {
|
|
29
30
|
const options = [];
|
|
30
31
|
const availableLanguages = ['js', 'ts', 'javascript', 'typescript'];
|
|
@@ -32,6 +33,7 @@ class NewCommand extends abstract_command_1.AbstractCommand {
|
|
|
32
33
|
options.push({ name: 'dry-run', value: !!command.dryRun });
|
|
33
34
|
options.push({ name: 'skip-git', value: !!command.skipGit });
|
|
34
35
|
options.push({ name: 'skip-install', value: !!command.skipInstall });
|
|
36
|
+
options.push({ name: 'strict', value: !!command.strict });
|
|
35
37
|
options.push({
|
|
36
38
|
name: 'package-manager',
|
|
37
39
|
value: command.packageManager,
|
|
@@ -2,8 +2,12 @@ import { Configuration } from '../configuration';
|
|
|
2
2
|
export declare class AssetsManager {
|
|
3
3
|
private watchAssetsKeyValue;
|
|
4
4
|
private watchers;
|
|
5
|
+
private actionInProgress;
|
|
5
6
|
/**
|
|
6
7
|
* Using on `nest build` to close file watch or the build process will not end
|
|
8
|
+
* Interval like process
|
|
9
|
+
* If no action has been taken recently close watchers
|
|
10
|
+
* If action has been taken recently flag and try again
|
|
7
11
|
*/
|
|
8
12
|
closeWatchers(): void;
|
|
9
13
|
copyAssets(configuration: Required<Configuration>, appName: string, outDir: string, watchAssetsMode: boolean): void;
|
|
@@ -10,13 +10,26 @@ class AssetsManager {
|
|
|
10
10
|
constructor() {
|
|
11
11
|
this.watchAssetsKeyValue = {};
|
|
12
12
|
this.watchers = [];
|
|
13
|
+
this.actionInProgress = false;
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
16
|
* Using on `nest build` to close file watch or the build process will not end
|
|
17
|
+
* Interval like process
|
|
18
|
+
* If no action has been taken recently close watchers
|
|
19
|
+
* If action has been taken recently flag and try again
|
|
16
20
|
*/
|
|
17
21
|
closeWatchers() {
|
|
18
|
-
|
|
19
|
-
const
|
|
22
|
+
// Consider adjusting this for larger files
|
|
23
|
+
const timeoutMs = 500;
|
|
24
|
+
const closeFn = () => {
|
|
25
|
+
if (this.actionInProgress) {
|
|
26
|
+
this.actionInProgress = false;
|
|
27
|
+
setTimeout(closeFn, timeoutMs);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
this.watchers.forEach((watcher) => watcher.close());
|
|
31
|
+
}
|
|
32
|
+
};
|
|
20
33
|
setTimeout(closeFn, timeoutMs);
|
|
21
34
|
}
|
|
22
35
|
copyAssets(configuration, appName, outDir, watchAssetsMode) {
|
|
@@ -73,6 +86,8 @@ class AssetsManager {
|
|
|
73
86
|
}
|
|
74
87
|
// Set path value to true for watching the first time
|
|
75
88
|
this.watchAssetsKeyValue[path] = true;
|
|
89
|
+
// Set action to true to avoid watches getting cutoff
|
|
90
|
+
this.actionInProgress = true;
|
|
76
91
|
const dest = copy_path_resolve_1.copyPathResolve(path, item.outDir, sourceRoot.split(path_1.sep).length);
|
|
77
92
|
// Copy to output dir if file is changed or added
|
|
78
93
|
if (action === 'change') {
|
|
@@ -29,7 +29,7 @@ const webpackDefaultsFactory = (sourceRoot, relativeSourceRoot, entryFilename, i
|
|
|
29
29
|
getCustomTransformers: (program) => ({
|
|
30
30
|
before: plugins.beforeHooks.map((hook) => hook(program)),
|
|
31
31
|
after: plugins.afterHooks.map((hook) => hook(program)),
|
|
32
|
-
|
|
32
|
+
afterDeclarations: plugins.afterDeclarationsHooks.map((hook) => hook(program)),
|
|
33
33
|
}),
|
|
34
34
|
},
|
|
35
35
|
},
|
|
@@ -30,7 +30,7 @@ class WebpackCompiler {
|
|
|
30
30
|
const projectWebpackOptions = typeof webpackConfigFactoryOrConfig !== 'function'
|
|
31
31
|
? webpackConfigFactoryOrConfig
|
|
32
32
|
: webpackConfigFactoryOrConfig(defaultOptions, webpack);
|
|
33
|
-
const webpackConfiguration = Object.assign(Object.assign({}, defaultOptions), projectWebpackOptions);
|
|
33
|
+
const webpackConfiguration = Object.assign(Object.assign(Object.assign({}, defaultOptions), { mode: watchMode ? 'development' : defaultOptions.mode }), projectWebpackOptions);
|
|
34
34
|
const compiler = webpack(webpackConfiguration);
|
|
35
35
|
const afterCallback = (err, stats) => {
|
|
36
36
|
if (err && stats === undefined) {
|
|
@@ -10,13 +10,13 @@ export declare abstract class AbstractPackageManager {
|
|
|
10
10
|
addDevelopment(dependencies: string[], tag: string): Promise<void>;
|
|
11
11
|
private add;
|
|
12
12
|
getProduction(): Promise<ProjectDependency[]>;
|
|
13
|
-
|
|
13
|
+
getDevelopment(): Promise<ProjectDependency[]>;
|
|
14
14
|
private readPackageJson;
|
|
15
15
|
updateProduction(dependencies: string[]): Promise<void>;
|
|
16
|
-
|
|
16
|
+
updateDevelopment(dependencies: string[]): Promise<void>;
|
|
17
17
|
private update;
|
|
18
18
|
upgradeProduction(dependencies: string[], tag: string): Promise<void>;
|
|
19
|
-
|
|
19
|
+
upgradeDevelopment(dependencies: string[], tag: string): Promise<void>;
|
|
20
20
|
deleteProduction(dependencies: string[]): Promise<void>;
|
|
21
21
|
deleteDevelopment(dependencies: string[]): Promise<void>;
|
|
22
22
|
delete(commandArguments: string): Promise<void>;
|
|
@@ -110,7 +110,7 @@ class AbstractPackageManager {
|
|
|
110
110
|
return dependencies;
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
|
-
|
|
113
|
+
getDevelopment() {
|
|
114
114
|
return __awaiter(this, void 0, void 0, function* () {
|
|
115
115
|
const packageJsonContent = yield this.readPackageJson();
|
|
116
116
|
const packageJsonDevDependencies = packageJsonContent.devDependencies;
|
|
@@ -141,7 +141,7 @@ class AbstractPackageManager {
|
|
|
141
141
|
yield this.update(commandArguments);
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
|
-
|
|
144
|
+
updateDevelopment(dependencies) {
|
|
145
145
|
return __awaiter(this, void 0, void 0, function* () {
|
|
146
146
|
const commandArguments = `${this.cli.update} ${dependencies.join(' ')}`;
|
|
147
147
|
yield this.update(commandArguments);
|
|
@@ -159,7 +159,7 @@ class AbstractPackageManager {
|
|
|
159
159
|
yield this.addProduction(dependencies, tag);
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
|
-
|
|
162
|
+
upgradeDevelopment(dependencies, tag) {
|
|
163
163
|
return __awaiter(this, void 0, void 0, function* () {
|
|
164
164
|
yield this.deleteDevelopment(dependencies);
|
|
165
165
|
yield this.addDevelopment(dependencies, tag);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/cli",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.5",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@cli)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -43,57 +43,57 @@
|
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://github.com/nestjs/nest-cli#readme",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@angular-devkit/core": "
|
|
47
|
-
"@angular-devkit/schematics": "
|
|
48
|
-
"@angular-devkit/schematics-cli": "
|
|
49
|
-
"@nestjs/schematics": "^8.0.
|
|
46
|
+
"@angular-devkit/core": "13.0.3",
|
|
47
|
+
"@angular-devkit/schematics": "13.0.3",
|
|
48
|
+
"@angular-devkit/schematics-cli": "13.0.3",
|
|
49
|
+
"@nestjs/schematics": "^8.0.3",
|
|
50
50
|
"chalk": "3.0.0",
|
|
51
51
|
"chokidar": "3.5.2",
|
|
52
|
-
"cli-table3": "0.
|
|
52
|
+
"cli-table3": "0.6.0",
|
|
53
53
|
"commander": "4.1.1",
|
|
54
|
-
"fork-ts-checker-webpack-plugin": "6.
|
|
54
|
+
"fork-ts-checker-webpack-plugin": "6.4.0",
|
|
55
55
|
"inquirer": "7.3.3",
|
|
56
|
-
"node-emoji": "1.
|
|
56
|
+
"node-emoji": "1.11.0",
|
|
57
57
|
"ora": "5.4.1",
|
|
58
58
|
"os-name": "4.0.1",
|
|
59
59
|
"rimraf": "3.0.2",
|
|
60
60
|
"shelljs": "0.8.4",
|
|
61
|
-
"source-map-support": "0.5.
|
|
61
|
+
"source-map-support": "0.5.20",
|
|
62
62
|
"tree-kill": "1.2.2",
|
|
63
|
-
"tsconfig-paths": "3.
|
|
64
|
-
"tsconfig-paths-webpack-plugin": "3.5.
|
|
63
|
+
"tsconfig-paths": "3.11.0",
|
|
64
|
+
"tsconfig-paths-webpack-plugin": "3.5.2",
|
|
65
65
|
"typescript": "4.3.5",
|
|
66
|
-
"webpack": "5.
|
|
66
|
+
"webpack": "5.64.1",
|
|
67
67
|
"webpack-node-externals": "3.0.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@commitlint/cli": "
|
|
71
|
-
"@commitlint/config-angular": "
|
|
70
|
+
"@commitlint/cli": "15.0.0",
|
|
71
|
+
"@commitlint/config-angular": "15.0.0",
|
|
72
72
|
"@types/copyfiles": "2.4.1",
|
|
73
73
|
"@types/inquirer": "7.3.3",
|
|
74
|
-
"@types/jest": "
|
|
75
|
-
"@types/node": "
|
|
74
|
+
"@types/jest": "27.0.2",
|
|
75
|
+
"@types/node": "16.11.7",
|
|
76
76
|
"@types/node-emoji": "1.8.1",
|
|
77
77
|
"@types/ora": "3.2.0",
|
|
78
78
|
"@types/os-name": "3.1.0",
|
|
79
|
-
"@types/rimraf": "3.0.
|
|
79
|
+
"@types/rimraf": "3.0.2",
|
|
80
80
|
"@types/shelljs": "0.8.9",
|
|
81
|
-
"@types/webpack-node-externals": "2.5.
|
|
82
|
-
"@typescript-eslint/eslint-plugin": "4.
|
|
83
|
-
"@typescript-eslint/parser": "4.
|
|
81
|
+
"@types/webpack-node-externals": "2.5.3",
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "5.4.0",
|
|
83
|
+
"@typescript-eslint/parser": "5.4.0",
|
|
84
84
|
"delete-empty": "3.0.0",
|
|
85
|
-
"eslint": "
|
|
85
|
+
"eslint": "8.2.0",
|
|
86
86
|
"eslint-config-prettier": "8.3.0",
|
|
87
|
-
"eslint-plugin-import": "2.
|
|
87
|
+
"eslint-plugin-import": "2.25.3",
|
|
88
88
|
"gulp": "4.0.2",
|
|
89
89
|
"gulp-clean": "0.4.0",
|
|
90
|
-
"husky": "7.0.
|
|
91
|
-
"jest": "27.
|
|
92
|
-
"prettier": "2.
|
|
93
|
-
"release-it": "14.
|
|
94
|
-
"ts-jest": "27.0.
|
|
95
|
-
"ts-loader": "9.2.
|
|
96
|
-
"ts-node": "10.
|
|
90
|
+
"husky": "7.0.4",
|
|
91
|
+
"jest": "27.3.1",
|
|
92
|
+
"prettier": "2.4.1",
|
|
93
|
+
"release-it": "14.11.7",
|
|
94
|
+
"ts-jest": "27.0.7",
|
|
95
|
+
"ts-loader": "9.2.6",
|
|
96
|
+
"ts-node": "10.4.0"
|
|
97
97
|
},
|
|
98
98
|
"husky": {
|
|
99
99
|
"hooks": {
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
|
|
3
|
-
|
|
4
|
-
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
|
|
5
|
-
-->
|
|
6
|
-
|
|
7
|
-
## I'm submitting a...
|
|
8
|
-
<!--
|
|
9
|
-
Please search GitHub for a similar issue or PR before submitting.
|
|
10
|
-
Check one of the following options with "x" -->
|
|
11
|
-
<pre><code>
|
|
12
|
-
[ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->
|
|
13
|
-
[ ] Bug report
|
|
14
|
-
[ ] Feature request
|
|
15
|
-
[ ] Documentation issue or request
|
|
16
|
-
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
|
|
17
|
-
</code></pre>
|
|
18
|
-
|
|
19
|
-
## Current behavior
|
|
20
|
-
<!-- Describe how the issue manifests. -->
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
## Expected behavior
|
|
24
|
-
<!-- Describe what the desired behavior would be. -->
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
## Minimal reproduction of the problem with instructions
|
|
28
|
-
<!-- Please share a repo, a gist, or step-by-step instructions. -->
|
|
29
|
-
|
|
30
|
-
## What is the motivation / use case for changing the behavior?
|
|
31
|
-
<!-- Describe the motivation or the concrete use case. -->
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
## Environment
|
|
35
|
-
<!--- Run `nest info` and paste it below -->
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
```
|