@nestjs/cli 8.1.2 → 8.1.6
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/.eslintrc.js +1 -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 +2 -2
- package/commands/generate.command.js +1 -1
- package/lib/compiler/assets-manager.d.ts +4 -0
- package/lib/compiler/assets-manager.js +17 -2
- package/lib/compiler/hooks/tsconfig-paths.hook.js +1 -0
- package/lib/package-managers/abstract.package-manager.d.ts +3 -3
- package/lib/package-managers/abstract.package-manager.js +3 -3
- package/lib/utils/project-utils.js +1 -1
- package/lib/utils/tree-kill.js +3 -3
- package/package.json +25 -25
- package/test/lib/compiler/hooks/__snapshots__/tsconfig-paths.hook.spec.ts.snap +23 -0
- 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
|
package/.eslintrc.js
CHANGED
|
@@ -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
|
|
|
@@ -149,7 +149,7 @@ format that includes a **type**, a **scope** and a **subject**:
|
|
|
149
149
|
|
|
150
150
|
The **header** is mandatory and the **scope** of the header is optional.
|
|
151
151
|
|
|
152
|
-
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
|
|
153
153
|
to read on GitHub as well as in various git tools.
|
|
154
154
|
|
|
155
155
|
Footer should contain a [closing reference to an issue](https://help.github.com/articles/closing-issues-via-commit-messages/) if any.
|
|
@@ -62,7 +62,7 @@ class GenerateCommand extends abstract_command_1.AbstractCommand {
|
|
|
62
62
|
}
|
|
63
63
|
buildDescription() {
|
|
64
64
|
return ('Generate a Nest element.\n' +
|
|
65
|
-
|
|
65
|
+
` Schematics available on ${chalk.bold('@nestjs/schematics')} collection:\n` +
|
|
66
66
|
this.buildSchematicsListAsTable());
|
|
67
67
|
}
|
|
68
68
|
buildSchematicsListAsTable() {
|
|
@@ -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') {
|
|
@@ -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);
|
|
@@ -59,7 +59,7 @@ function askForProjectName(promptQuestion, projects) {
|
|
|
59
59
|
}
|
|
60
60
|
exports.askForProjectName = askForProjectName;
|
|
61
61
|
function moveDefaultProjectToStart(configuration, defaultProjectName, defaultLabel) {
|
|
62
|
-
let projects = Object.keys(configuration.projects);
|
|
62
|
+
let projects = configuration.projects != null ? Object.keys(configuration.projects) : [];
|
|
63
63
|
if (configuration.sourceRoot !== 'src') {
|
|
64
64
|
projects = projects.filter((p) => p !== defaultProjectName.replace(defaultLabel, ''));
|
|
65
65
|
}
|
package/lib/utils/tree-kill.js
CHANGED
|
@@ -23,7 +23,7 @@ function getAllPid() {
|
|
|
23
23
|
.slice(1);
|
|
24
24
|
return rows
|
|
25
25
|
.map(function (row) {
|
|
26
|
-
|
|
26
|
+
const parts = row.match(/\s*(\d+)\s*(\d+)/);
|
|
27
27
|
if (parts === null) {
|
|
28
28
|
return null;
|
|
29
29
|
}
|
|
@@ -38,8 +38,8 @@ function getAllPid() {
|
|
|
38
38
|
}
|
|
39
39
|
function getAllChilds(pid) {
|
|
40
40
|
const allpid = getAllPid();
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
const ppidHash = {};
|
|
42
|
+
const result = [];
|
|
43
43
|
allpid.forEach(function (item) {
|
|
44
44
|
ppidHash[item.ppid] = ppidHash[item.ppid] || [];
|
|
45
45
|
ppidHash[item.ppid].push(item.pid);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/cli",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.6",
|
|
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": "
|
|
46
|
+
"@angular-devkit/core": "13.1.1",
|
|
47
|
+
"@angular-devkit/schematics": "13.1.1",
|
|
48
|
+
"@angular-devkit/schematics-cli": "13.1.1",
|
|
49
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.5.0",
|
|
55
55
|
"inquirer": "7.3.3",
|
|
56
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.21",
|
|
62
62
|
"tree-kill": "1.2.2",
|
|
63
|
-
"tsconfig-paths": "3.
|
|
64
|
-
"tsconfig-paths-webpack-plugin": "3.5.
|
|
63
|
+
"tsconfig-paths": "3.12.0",
|
|
64
|
+
"tsconfig-paths-webpack-plugin": "3.5.2",
|
|
65
65
|
"typescript": "4.3.5",
|
|
66
|
-
"webpack": "5.
|
|
66
|
+
"webpack": "5.65.0",
|
|
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": "27.0.
|
|
75
|
-
"@types/node": "
|
|
74
|
+
"@types/jest": "27.0.3",
|
|
75
|
+
"@types/node": "16.11.12",
|
|
76
76
|
"@types/node-emoji": "1.8.1",
|
|
77
77
|
"@types/ora": "3.2.0",
|
|
78
78
|
"@types/os-name": "3.1.0",
|
|
79
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": "
|
|
83
|
-
"@typescript-eslint/parser": "
|
|
81
|
+
"@types/webpack-node-externals": "2.5.3",
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "5.6.0",
|
|
83
|
+
"@typescript-eslint/parser": "5.6.0",
|
|
84
84
|
"delete-empty": "3.0.0",
|
|
85
|
-
"eslint": "
|
|
85
|
+
"eslint": "8.4.1",
|
|
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.11.
|
|
94
|
-
"ts-jest": "27.
|
|
90
|
+
"husky": "7.0.4",
|
|
91
|
+
"jest": "27.4.4",
|
|
92
|
+
"prettier": "2.5.1",
|
|
93
|
+
"release-it": "14.11.8",
|
|
94
|
+
"ts-jest": "27.1.1",
|
|
95
95
|
"ts-loader": "9.2.6",
|
|
96
|
-
"ts-node": "10.
|
|
96
|
+
"ts-node": "10.4.0"
|
|
97
97
|
},
|
|
98
98
|
"husky": {
|
|
99
99
|
"hooks": {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`tsconfig paths hooks should remove unused imports 1`] = `
|
|
4
|
+
Map {
|
|
5
|
+
"dist/foo.js" => "\\"use strict\\";
|
|
6
|
+
Object.defineProperty(exports, \\"__esModule\\", { value: true });
|
|
7
|
+
exports.Foo = void 0;
|
|
8
|
+
class Foo {
|
|
9
|
+
}
|
|
10
|
+
exports.Foo = Foo;
|
|
11
|
+
",
|
|
12
|
+
"dist/bar.js" => "\\"use strict\\";
|
|
13
|
+
Object.defineProperty(exports, \\"__esModule\\", { value: true });
|
|
14
|
+
exports.Bar = void 0;
|
|
15
|
+
class Bar {
|
|
16
|
+
}
|
|
17
|
+
exports.Bar = Bar;
|
|
18
|
+
",
|
|
19
|
+
"dist/main.js" => "\\"use strict\\";
|
|
20
|
+
Object.defineProperty(exports, \\"__esModule\\", { value: true });
|
|
21
|
+
",
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
@@ -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
|
-
```
|