@zohodesk/codestandard-validator 1.4.1-window-fix → 1.4.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.
|
@@ -29,7 +29,7 @@ async function installPlugins(pluginsToBeInstalled) {
|
|
|
29
29
|
Logger.log(Logger.INFO_TYPE, `Install command being executed: npm ${args.join(' ')}`);
|
|
30
30
|
const result = spawnSync('npm', args, {
|
|
31
31
|
cwd: getNodeModulesPath(),
|
|
32
|
-
shell:
|
|
32
|
+
shell: true,
|
|
33
33
|
encoding: 'utf8'
|
|
34
34
|
});
|
|
35
35
|
if (result.stdout) {
|
package/changeLog.md
CHANGED
|
@@ -72,3 +72,14 @@
|
|
|
72
72
|
4. Add `.feature` file support in `getSupportedLanguage()` and include feature files in pre-commit hook linting
|
|
73
73
|
5. Update `@zohodesk/codestandard-analytics` dependency to `1.1.6-node-18`
|
|
74
74
|
6. Update unit tests for mutation modules to match refactored API
|
|
75
|
+
|
|
76
|
+
# 1.4.1 - Windows Path and Pre-commit Stability Fixes
|
|
77
|
+
|
|
78
|
+
1. Fix plugin discovery path handling for scoped packages by resolving `package.json` directly, preventing malformed module paths on Windows.
|
|
79
|
+
2. Improve plugin version parsing and error handling to avoid hard failures during plugin validation when metadata is unavailable.
|
|
80
|
+
3. Harden pre-commit initialization flow by adding deterministic async ordering and centralized startup error handling.
|
|
81
|
+
4. Add timeout protection for remote commit-hash fetch to prevent long blocking in hook execution.
|
|
82
|
+
5. Improve fsUtils update safety using temporary file write + rename to reduce partial-write risk.
|
|
83
|
+
6. Derive project root from install path suffix instead of fixed directory traversal for cross-platform compatibility.
|
|
84
|
+
7. Normalize ESLint config and plugin resolution paths in pre-commit lint flows for Windows/macOS/Linux parity.
|
|
85
|
+
8. Add and update unit tests for plugin checks, install-path derivation, JSON update flow, and ESLint path resolution.
|