@nestjs/cli 10.4.2 → 10.4.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.
|
@@ -75,7 +75,17 @@ class AssetsManager {
|
|
|
75
75
|
this.watchers.push(watcher);
|
|
76
76
|
}
|
|
77
77
|
else {
|
|
78
|
-
const
|
|
78
|
+
const matchedPaths = (0, glob_1.sync)(item.glob, { ignore: item.exclude });
|
|
79
|
+
const files = item.glob.endsWith('*')
|
|
80
|
+
? matchedPaths.filter((matched) => (0, fs_1.statSync)(matched).isFile())
|
|
81
|
+
: matchedPaths.flatMap((matched) => {
|
|
82
|
+
if ((0, fs_1.statSync)(matched).isDirectory()) {
|
|
83
|
+
return (0, glob_1.sync)(`${matched}/**/*`, {
|
|
84
|
+
ignore: item.exclude,
|
|
85
|
+
}).filter((file) => (0, fs_1.statSync)(file).isFile());
|
|
86
|
+
}
|
|
87
|
+
return matched;
|
|
88
|
+
});
|
|
79
89
|
for (const path of files) {
|
|
80
90
|
this.actionOnFile({ ...option, path, action: 'change' });
|
|
81
91
|
}
|
|
@@ -89,12 +99,13 @@ class AssetsManager {
|
|
|
89
99
|
actionOnFile(option) {
|
|
90
100
|
const { action, item, path, sourceRoot, watchAssetsMode } = option;
|
|
91
101
|
const isWatchEnabled = watchAssetsMode || item.watchAssets;
|
|
102
|
+
const assetCheckKey = path + (item.outDir ?? '');
|
|
92
103
|
// Allow to do action for the first time before check watchMode
|
|
93
|
-
if (!isWatchEnabled && this.watchAssetsKeyValue[
|
|
104
|
+
if (!isWatchEnabled && this.watchAssetsKeyValue[assetCheckKey]) {
|
|
94
105
|
return;
|
|
95
106
|
}
|
|
96
107
|
// Set path value to true for watching the first time
|
|
97
|
-
this.watchAssetsKeyValue[
|
|
108
|
+
this.watchAssetsKeyValue[assetCheckKey] = true;
|
|
98
109
|
// Set action to true to avoid watches getting cutoff
|
|
99
110
|
this.actionInProgress = true;
|
|
100
111
|
const dest = (0, copy_path_resolve_1.copyPathResolve)(path, item.outDir, sourceRoot.split(path_1.sep).length);
|
|
@@ -16,8 +16,8 @@ function dealWith(inPath, up) {
|
|
|
16
16
|
if (!up) {
|
|
17
17
|
return inPath;
|
|
18
18
|
}
|
|
19
|
-
if (depth(inPath) < up) {
|
|
20
|
-
throw new Error('
|
|
19
|
+
if (depth(inPath) < up - 1) {
|
|
20
|
+
throw new Error('Path outside of project folder is not allowed');
|
|
21
21
|
}
|
|
22
22
|
return path.join(...path.normalize(inPath).split(path.sep).slice(up));
|
|
23
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/cli",
|
|
3
|
-
"version": "10.4.
|
|
3
|
+
"version": "10.4.4",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@cli)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -55,32 +55,32 @@
|
|
|
55
55
|
"tsconfig-paths": "4.2.0",
|
|
56
56
|
"tsconfig-paths-webpack-plugin": "4.1.0",
|
|
57
57
|
"typescript": "5.3.3",
|
|
58
|
-
"webpack": "5.
|
|
58
|
+
"webpack": "5.93.0",
|
|
59
59
|
"webpack-node-externals": "3.0.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@commitlint/cli": "19.
|
|
62
|
+
"@commitlint/cli": "19.4.0",
|
|
63
63
|
"@commitlint/config-angular": "19.3.0",
|
|
64
64
|
"@swc/cli": "0.4.0",
|
|
65
|
-
"@swc/core": "1.6
|
|
66
|
-
"@types/inquirer": "9.0.
|
|
65
|
+
"@swc/core": "1.7.6",
|
|
66
|
+
"@types/inquirer": "9.0.7",
|
|
67
67
|
"@types/jest": "29.5.12",
|
|
68
|
-
"@types/node": "20.14.
|
|
68
|
+
"@types/node": "20.14.14",
|
|
69
69
|
"@types/node-emoji": "1.8.2",
|
|
70
70
|
"@types/webpack-node-externals": "3.0.4",
|
|
71
|
-
"@typescript-eslint/eslint-plugin": "
|
|
72
|
-
"@typescript-eslint/parser": "
|
|
71
|
+
"@typescript-eslint/eslint-plugin": "8.0.1",
|
|
72
|
+
"@typescript-eslint/parser": "8.0.1",
|
|
73
73
|
"delete-empty": "3.0.0",
|
|
74
|
-
"eslint": "8.
|
|
74
|
+
"eslint": "9.8.0",
|
|
75
75
|
"eslint-config-prettier": "9.1.0",
|
|
76
76
|
"gulp": "5.0.0",
|
|
77
77
|
"gulp-clean": "0.4.0",
|
|
78
|
-
"husky": "9.
|
|
78
|
+
"husky": "9.1.4",
|
|
79
79
|
"jest": "29.7.0",
|
|
80
|
-
"lint-staged": "15.2.
|
|
81
|
-
"prettier": "3.3.
|
|
82
|
-
"release-it": "17.
|
|
83
|
-
"ts-jest": "29.
|
|
80
|
+
"lint-staged": "15.2.8",
|
|
81
|
+
"prettier": "3.3.3",
|
|
82
|
+
"release-it": "17.6.0",
|
|
83
|
+
"ts-jest": "29.2.3",
|
|
84
84
|
"ts-loader": "9.5.1",
|
|
85
85
|
"ts-node": "10.9.2"
|
|
86
86
|
},
|