@versini/ui-styles 8.1.1 → 8.1.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/dist/cli/ui-doctor.js +11 -2
- package/dist/index.js +3 -3
- package/package.json +2 -2
package/dist/cli/ui-doctor.js
CHANGED
|
@@ -115,7 +115,13 @@ const DEFAULT_IGNORE = [
|
|
|
115
115
|
"coverage",
|
|
116
116
|
".next",
|
|
117
117
|
".rslib",
|
|
118
|
-
"tmp"
|
|
118
|
+
"tmp",
|
|
119
|
+
"__tests__"
|
|
120
|
+
];
|
|
121
|
+
const EXCLUDED_FILE_PATTERNS = [
|
|
122
|
+
/\.stories\.[jt]sx?$/,
|
|
123
|
+
/\.test\.[jt]sx?$/,
|
|
124
|
+
/\.spec\.[jt]sx?$/
|
|
119
125
|
];
|
|
120
126
|
function shouldIgnore(filePath, ignorePatterns) {
|
|
121
127
|
const parts = filePath.split(path.sep);
|
|
@@ -125,6 +131,9 @@ function hasAllowedExtension(filePath, extensions) {
|
|
|
125
131
|
const ext = path.extname(filePath).slice(1).toLowerCase();
|
|
126
132
|
return extensions.includes(ext);
|
|
127
133
|
}
|
|
134
|
+
function isExcludedFile(fileName) {
|
|
135
|
+
return EXCLUDED_FILE_PATTERNS.some((pattern) => pattern.test(fileName));
|
|
136
|
+
}
|
|
128
137
|
function scanDirectory(dirPath, rootPath, options, results) {
|
|
129
138
|
let entries;
|
|
130
139
|
try {
|
|
@@ -140,7 +149,7 @@ function scanDirectory(dirPath, rootPath, options, results) {
|
|
|
140
149
|
}
|
|
141
150
|
if (entry.isDirectory()) {
|
|
142
151
|
scanDirectory(fullPath, rootPath, options, results);
|
|
143
|
-
} else if (entry.isFile() && hasAllowedExtension(entry.name, options.extensions)) {
|
|
152
|
+
} else if (entry.isFile() && hasAllowedExtension(entry.name, options.extensions) && !isExcludedFile(entry.name)) {
|
|
144
153
|
try {
|
|
145
154
|
const content = fs.readFileSync(fullPath, "utf-8");
|
|
146
155
|
results.push({
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
@versini/ui-styles v8.1.
|
|
2
|
+
@versini/ui-styles v8.1.2
|
|
3
3
|
© 2025 gizmette.com
|
|
4
4
|
*/
|
|
5
5
|
try {
|
|
6
6
|
if (!window.__VERSINI_UI_STYLES__) {
|
|
7
7
|
window.__VERSINI_UI_STYLES__ = {
|
|
8
|
-
version: "8.1.
|
|
9
|
-
buildTime: "12/21/2025
|
|
8
|
+
version: "8.1.2",
|
|
9
|
+
buildTime: "12/21/2025 07:20 PM EST",
|
|
10
10
|
homepage: "https://www.npmjs.com/package/@versini/ui-styles",
|
|
11
11
|
license: "MIT",
|
|
12
12
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-styles",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"rollup-plugin-copy": "3.5.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "d37b46c4678d6f10019489e00e553dbd2adeec2c"
|
|
53
53
|
}
|