@principal-ai/principal-view-cli 0.1.15 → 0.1.16
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/commands/lint.d.ts.map +1 -1
- package/dist/commands/lint.js +5 -2
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../src/commands/lint.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA8PpC,wBAAgB,iBAAiB,IAAI,OAAO,
|
|
1
|
+
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../src/commands/lint.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA8PpC,wBAAgB,iBAAiB,IAAI,OAAO,CA8K3C"}
|
package/dist/commands/lint.js
CHANGED
|
@@ -284,10 +284,13 @@ export function createLintCommand() {
|
|
|
284
284
|
ignore: privuConfig.exclude || ['**/node_modules/**'],
|
|
285
285
|
expandDirectories: false,
|
|
286
286
|
});
|
|
287
|
-
// Filter out library files and
|
|
287
|
+
// Filter out library files, config files, and canvas files (canvas files use `validate` command)
|
|
288
288
|
const configFiles = matchedFiles.filter((f) => {
|
|
289
289
|
const name = basename(f).toLowerCase();
|
|
290
|
-
|
|
290
|
+
const isLibraryFile = name.startsWith('library.');
|
|
291
|
+
const isConfigFile = name.startsWith('.privurc');
|
|
292
|
+
const isCanvasFile = f.toLowerCase().endsWith('.canvas');
|
|
293
|
+
return !isLibraryFile && !isConfigFile && !isCanvasFile;
|
|
291
294
|
});
|
|
292
295
|
if (configFiles.length === 0) {
|
|
293
296
|
if (options.json) {
|
package/dist/index.cjs
CHANGED
|
@@ -17379,7 +17379,10 @@ function createLintCommand() {
|
|
|
17379
17379
|
});
|
|
17380
17380
|
const configFiles = matchedFiles.filter((f) => {
|
|
17381
17381
|
const name = (0, import_node_path11.basename)(f).toLowerCase();
|
|
17382
|
-
|
|
17382
|
+
const isLibraryFile = name.startsWith("library.");
|
|
17383
|
+
const isConfigFile = name.startsWith(".privurc");
|
|
17384
|
+
const isCanvasFile = f.toLowerCase().endsWith(".canvas");
|
|
17385
|
+
return !isLibraryFile && !isConfigFile && !isCanvasFile;
|
|
17383
17386
|
});
|
|
17384
17387
|
if (configFiles.length === 0) {
|
|
17385
17388
|
if (options.json) {
|