@nestjs/cli 8.2.1 → 8.2.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/compiler/hooks/tsconfig-paths.hook.js +6 -1
- package/package.json +18 -18
- package/test/lib/compiler/hooks/__snapshots__/tsconfig-paths.hook.spec.ts.snap +45 -0
- package/test/lib/compiler/hooks/fixtures/aliased-imports/src/bar.tsx +1 -0
- package/test/lib/compiler/hooks/fixtures/aliased-imports/src/baz.js +1 -0
- package/test/lib/compiler/hooks/fixtures/aliased-imports/src/qux.jsx +1 -0
- package/.commitlintrc.json +0 -28
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -25
- package/.release-it.json +0 -9
|
@@ -42,7 +42,12 @@ function tsconfigPathsBeforeHookFactory(compilerOptions) {
|
|
|
42
42
|
}
|
|
43
43
|
exports.tsconfigPathsBeforeHookFactory = tsconfigPathsBeforeHookFactory;
|
|
44
44
|
function getNotAliasedPath(sf, matcher, text) {
|
|
45
|
-
let result = matcher(text, undefined, undefined, [
|
|
45
|
+
let result = matcher(text, undefined, undefined, [
|
|
46
|
+
'.ts',
|
|
47
|
+
'.tsx',
|
|
48
|
+
'.js',
|
|
49
|
+
'.jsx',
|
|
50
|
+
]);
|
|
46
51
|
if (!result) {
|
|
47
52
|
return;
|
|
48
53
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/cli",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.2",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@cli)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://github.com/nestjs/nest-cli#readme",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@angular-devkit/core": "13.2.
|
|
47
|
-
"@angular-devkit/schematics": "13.2.
|
|
48
|
-
"@angular-devkit/schematics-cli": "13.2.
|
|
46
|
+
"@angular-devkit/core": "13.2.5",
|
|
47
|
+
"@angular-devkit/schematics": "13.2.5",
|
|
48
|
+
"@angular-devkit/schematics-cli": "13.2.5",
|
|
49
49
|
"@nestjs/schematics": "^8.0.3",
|
|
50
50
|
"chalk": "3.0.0",
|
|
51
51
|
"chokidar": "3.5.3",
|
|
52
52
|
"cli-table3": "0.6.1",
|
|
53
53
|
"commander": "4.1.1",
|
|
54
|
-
"fork-ts-checker-webpack-plugin": "
|
|
54
|
+
"fork-ts-checker-webpack-plugin": "7.2.1",
|
|
55
55
|
"inquirer": "7.3.3",
|
|
56
56
|
"node-emoji": "1.11.0",
|
|
57
57
|
"ora": "5.4.1",
|
|
@@ -62,38 +62,38 @@
|
|
|
62
62
|
"tree-kill": "1.2.2",
|
|
63
63
|
"tsconfig-paths": "3.12.0",
|
|
64
64
|
"tsconfig-paths-webpack-plugin": "3.5.2",
|
|
65
|
-
"typescript": "4.
|
|
65
|
+
"typescript": "4.6.2",
|
|
66
66
|
"webpack": "5.66.0",
|
|
67
67
|
"webpack-node-externals": "3.0.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@commitlint/cli": "16.1
|
|
71
|
-
"@commitlint/config-angular": "16.
|
|
70
|
+
"@commitlint/cli": "16.2.1",
|
|
71
|
+
"@commitlint/config-angular": "16.2.1",
|
|
72
72
|
"@types/copyfiles": "2.4.1",
|
|
73
73
|
"@types/inquirer": "7.3.3",
|
|
74
|
-
"@types/jest": "27.4.
|
|
75
|
-
"@types/node": "16.11.
|
|
74
|
+
"@types/jest": "27.4.1",
|
|
75
|
+
"@types/node": "16.11.26",
|
|
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.11",
|
|
81
81
|
"@types/webpack-node-externals": "2.5.3",
|
|
82
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
83
|
-
"@typescript-eslint/parser": "5.
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "5.13.0",
|
|
83
|
+
"@typescript-eslint/parser": "5.13.0",
|
|
84
84
|
"delete-empty": "3.0.0",
|
|
85
|
-
"eslint": "8.
|
|
86
|
-
"eslint-config-prettier": "8.
|
|
85
|
+
"eslint": "8.10.0",
|
|
86
|
+
"eslint-config-prettier": "8.5.0",
|
|
87
87
|
"eslint-plugin-import": "2.25.4",
|
|
88
88
|
"gulp": "4.0.2",
|
|
89
89
|
"gulp-clean": "0.4.0",
|
|
90
90
|
"husky": "7.0.4",
|
|
91
|
-
"jest": "27.
|
|
91
|
+
"jest": "27.5.1",
|
|
92
92
|
"prettier": "2.5.1",
|
|
93
|
-
"release-it": "14.12.
|
|
93
|
+
"release-it": "14.12.5",
|
|
94
94
|
"ts-jest": "27.1.3",
|
|
95
|
-
"ts-loader": "9.2.
|
|
96
|
-
"ts-node": "10.
|
|
95
|
+
"ts-loader": "9.2.7",
|
|
96
|
+
"ts-node": "10.6.0"
|
|
97
97
|
},
|
|
98
98
|
"husky": {
|
|
99
99
|
"hooks": {
|
|
@@ -21,3 +21,48 @@ Object.defineProperty(exports, \\"__esModule\\", { value: true });
|
|
|
21
21
|
",
|
|
22
22
|
}
|
|
23
23
|
`;
|
|
24
|
+
|
|
25
|
+
exports[`tsconfig paths hooks should replace path of every import using a path alias by its relative path 1`] = `
|
|
26
|
+
Map {
|
|
27
|
+
"dist/foo.js" => "\\"use strict\\";
|
|
28
|
+
Object.defineProperty(exports, \\"__esModule\\", { value: true });
|
|
29
|
+
exports.Foo = void 0;
|
|
30
|
+
class Foo {
|
|
31
|
+
}
|
|
32
|
+
exports.Foo = Foo;
|
|
33
|
+
",
|
|
34
|
+
"dist/bar.jsx" => "\\"use strict\\";
|
|
35
|
+
Object.defineProperty(exports, \\"__esModule\\", { value: true });
|
|
36
|
+
exports.Bar = void 0;
|
|
37
|
+
class Bar {
|
|
38
|
+
}
|
|
39
|
+
exports.Bar = Bar;
|
|
40
|
+
",
|
|
41
|
+
"dist/baz.js" => "\\"use strict\\";
|
|
42
|
+
Object.defineProperty(exports, \\"__esModule\\", { value: true });
|
|
43
|
+
exports.Baz = void 0;
|
|
44
|
+
class Baz {
|
|
45
|
+
}
|
|
46
|
+
exports.Baz = Baz;
|
|
47
|
+
",
|
|
48
|
+
"dist/qux.jsx" => "\\"use strict\\";
|
|
49
|
+
Object.defineProperty(exports, \\"__esModule\\", { value: true });
|
|
50
|
+
exports.Qux = void 0;
|
|
51
|
+
class Qux {
|
|
52
|
+
}
|
|
53
|
+
exports.Qux = Qux;
|
|
54
|
+
",
|
|
55
|
+
"dist/main.js" => "\\"use strict\\";
|
|
56
|
+
Object.defineProperty(exports, \\"__esModule\\", { value: true });
|
|
57
|
+
const foo_1 = require(\\"./foo\\");
|
|
58
|
+
const bar_1 = require(\\"./bar\\");
|
|
59
|
+
const baz_1 = require(\\"./baz\\");
|
|
60
|
+
const qux_1 = require(\\"./qux\\");
|
|
61
|
+
// use the imports so they do not get eliminated
|
|
62
|
+
console.log(foo_1.Foo);
|
|
63
|
+
console.log(bar_1.Bar);
|
|
64
|
+
console.log(baz_1.Baz);
|
|
65
|
+
console.log(qux_1.Qux);
|
|
66
|
+
",
|
|
67
|
+
}
|
|
68
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export class Bar {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export class Baz {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export class Qux {}
|
package/.commitlintrc.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": ["@commitlint/config-angular"],
|
|
3
|
-
"rules": {
|
|
4
|
-
"subject-case": [
|
|
5
|
-
2,
|
|
6
|
-
"always",
|
|
7
|
-
["sentence-case", "start-case", "pascal-case", "upper-case", "lower-case"]
|
|
8
|
-
],
|
|
9
|
-
"type-enum": [
|
|
10
|
-
2,
|
|
11
|
-
"always",
|
|
12
|
-
[
|
|
13
|
-
"build",
|
|
14
|
-
"chore",
|
|
15
|
-
"ci",
|
|
16
|
-
"docs",
|
|
17
|
-
"feat",
|
|
18
|
-
"fix",
|
|
19
|
-
"perf",
|
|
20
|
-
"refactor",
|
|
21
|
-
"revert",
|
|
22
|
-
"style",
|
|
23
|
-
"test",
|
|
24
|
-
"sample"
|
|
25
|
-
]
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
}
|
package/.eslintignore
DELETED
package/.eslintrc.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
parser: '@typescript-eslint/parser',
|
|
3
|
-
parserOptions: {
|
|
4
|
-
project: 'tsconfig.json',
|
|
5
|
-
sourceType: 'module',
|
|
6
|
-
},
|
|
7
|
-
plugins: ['@typescript-eslint/eslint-plugin'],
|
|
8
|
-
extends: [
|
|
9
|
-
'plugin:@typescript-eslint/eslint-recommended',
|
|
10
|
-
'plugin:@typescript-eslint/recommended',
|
|
11
|
-
'prettier'
|
|
12
|
-
],
|
|
13
|
-
root: true,
|
|
14
|
-
env: {
|
|
15
|
-
node: true,
|
|
16
|
-
jest: true,
|
|
17
|
-
},
|
|
18
|
-
rules: {
|
|
19
|
-
'@typescript-eslint/interface-name-prefix': 'off',
|
|
20
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
21
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
22
|
-
'@typescript-eslint/no-use-before-define': 'off',
|
|
23
|
-
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
24
|
-
},
|
|
25
|
-
};
|