@zohodesk/codestandard-validator 1.3.0 → 1.3.1-platform-14
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/.babelrc
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const {
|
|
4
4
|
existsSync,
|
|
5
|
-
|
|
5
|
+
rmSync
|
|
6
6
|
} = require('fs');
|
|
7
7
|
const {
|
|
8
8
|
Logger
|
|
@@ -20,7 +20,7 @@ function removeFolder(folderPath) {
|
|
|
20
20
|
try {
|
|
21
21
|
let isCommonConfigFolderPresent = existsSync(folderPath);
|
|
22
22
|
if (isCommonConfigFolderPresent) {
|
|
23
|
-
executeSynchronizedCommands(
|
|
23
|
+
executeSynchronizedCommands(rmSync, [folderPath, {
|
|
24
24
|
recursive: true,
|
|
25
25
|
force: true
|
|
26
26
|
}], 'common linter configuration folder removed successfully', 'Unable to remove the common linter configuration folder', false, false);
|
|
@@ -73,10 +73,22 @@ function getSupportedLanguage() {
|
|
|
73
73
|
return [...new Set(_language)];
|
|
74
74
|
}
|
|
75
75
|
function getRunningEnv() {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
if (process.env.npm_config_lint_env) {
|
|
77
|
+
return String(process.env.npm_config_lint_env).trim();
|
|
78
|
+
}
|
|
79
|
+
if (process.env.LINT_ENV) {
|
|
80
|
+
return String(process.env.LINT_ENV).trim();
|
|
81
|
+
}
|
|
82
|
+
if (process.env.CI === "true" || process.env.CI === "1") {
|
|
83
|
+
return "CI";
|
|
84
|
+
}
|
|
85
|
+
try {
|
|
86
|
+
return execSync("npm config get lint_env", {
|
|
87
|
+
shell: true
|
|
88
|
+
}).toString().trim();
|
|
89
|
+
} catch {
|
|
90
|
+
return "";
|
|
91
|
+
}
|
|
80
92
|
}
|
|
81
93
|
|
|
82
94
|
/**
|
package/changeLog.md
CHANGED
|
@@ -58,3 +58,8 @@
|
|
|
58
58
|
2. Fix typo in Config.js: `intialize` corrected to `initialize` for post-install execution
|
|
59
59
|
3. Remove unused `jest.setup.js` placeholder file
|
|
60
60
|
4. Version bump from `1.2.4-exp-7` to `1.2.4-exp-9`
|
|
61
|
+
|
|
62
|
+
# 1.3.1 - Bug Fixes
|
|
63
|
+
|
|
64
|
+
1. Replace asynchronous `fs.rm` with synchronous `fs.rmSync` in folder cleanup utility to align with synchronized command execution.
|
|
65
|
+
2. Update package version from `1.3.0` to `1.3.1`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/codestandard-validator",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1-platform-14",
|
|
4
4
|
"description": "library to enforce code standard using eslint",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@stryker-mutator/jest-runner": "8.7.1",
|
|
22
22
|
"@stryker-mutator/typescript-checker": "8.7.1",
|
|
23
23
|
"@zohodesk-private/client_deployment_tool": "0.0.5",
|
|
24
|
-
"@zohodesk/codestandard-analytics": "1.1.5",
|
|
24
|
+
"@zohodesk/codestandard-analytics": "1.1.5-node-14",
|
|
25
25
|
"eslint": "8.26.0",
|
|
26
26
|
"glob": "8.1.0",
|
|
27
27
|
"jest": "29.7.0",
|