@lensmcp/core 1.26.22 → 1.26.24

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.
@@ -0,0 +1,6 @@
1
+ import { type LintIgnoresRead } from '@lensmcp/protocol-types';
2
+ export declare function lintIgnoresPath(root: string): string;
3
+ /** The checkout's ignores, read now. A file that is there and not a plain file ignores nothing, and says so. */
4
+ export declare function readLintIgnores(root: string): LintIgnoresRead & {
5
+ exists: boolean;
6
+ };
@@ -0,0 +1 @@
1
+ "use strict";var l=Object.defineProperty;var r=(t,n)=>l(t,"name",{value:n,configurable:!0});var u=Object.defineProperty,e=r((t,n)=>u(t,"name",{value:n,configurable:!0}),"r");import*as o from"node:fs";import*as f from"node:path";import{parseLintIgnores as p,LINT_IGNORES_FILE as a}from"@lensmcp/protocol-types";export function lintIgnoresPath(t){return f.join(t,a)}r(lintIgnoresPath,"lintIgnoresPath"),e(lintIgnoresPath,"lintIgnoresPath");function c(t){try{const n=o.lstatSync(t);return n.isSymbolicLink()||!n.isFile()?void 0:o.readFileSync(t,"utf8")}catch{return}}r(c,"f"),e(c,"plainText");export function readLintIgnores(t){const n=lintIgnoresPath(t),s=c(n);let i=s!==void 0;if(!i)try{return o.lstatSync(n),i=!0,{ignores:[],problems:[`${a} is not a plain file \u2014 no lint is ignored until it is`],exists:i}}catch{}return{...p(s),exists:i}}r(readLintIgnores,"readLintIgnores"),e(readLintIgnores,"readLintIgnores");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lensmcp/core",
3
- "version": "1.26.22",
3
+ "version": "1.26.24",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -106,10 +106,15 @@
106
106
  "types": "./lib/queue-signals.d.ts",
107
107
  "import": "./lib/queue-signals.js",
108
108
  "default": "./lib/queue-signals.js"
109
+ },
110
+ "./lint-ignores": {
111
+ "types": "./lib/lint-ignores.d.ts",
112
+ "import": "./lib/lint-ignores.js",
113
+ "default": "./lib/lint-ignores.js"
109
114
  }
110
115
  },
111
116
  "dependencies": {
112
- "@lensmcp/protocol-types": "1.26.22",
117
+ "@lensmcp/protocol-types": "1.26.24",
113
118
  "tslib": "^2.3.0"
114
119
  },
115
120
  "license": "Apache-2.0",