@storm-software/eslint 0.169.93 → 0.169.94
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/chunk-4CXNUMUG.js +2 -39
- package/dist/chunk-A32JZBPO.js +2 -6
- package/dist/chunk-DJ2ZXQYV.js +4 -10
- package/dist/chunk-FXLMJ2Y5.js +3 -9
- package/dist/{chunk-DPTIR64R.js → chunk-IWQLEJ77.js} +11 -19
- package/dist/chunk-O5CGESKJ.js +20 -29
- package/dist/chunk-PWQ34SJ2.js +4 -10
- package/dist/chunk-T4LUMNGJ.js +3 -21
- package/dist/chunk-UVJN4TQE.js +5 -12
- package/dist/preset.cjs +9387 -0
- package/dist/preset.d.cts +34 -0
- package/dist/preset.js +128 -329
- package/dist/types.cjs +2 -0
- package/dist/types.d.cts +18781 -0
- package/dist/types.js +1 -3
- package/dist/utils/banner-plugin.cjs +454 -0
- package/dist/utils/banner-plugin.d.cts +6 -0
- package/dist/utils/banner-plugin.js +4 -9
- package/dist/utils/combine.cjs +9 -0
- package/dist/utils/combine.d.cts +14 -0
- package/dist/utils/combine.js +3 -6
- package/dist/utils/constants.cjs +206 -0
- package/dist/utils/constants.d.cts +36 -0
- package/dist/utils/constants.js +2 -73
- package/dist/utils/correct-paths.cjs +232 -0
- package/dist/utils/correct-paths.d.cts +30 -0
- package/dist/utils/correct-paths.js +2 -33
- package/dist/utils/find-workspace-root.cjs +201 -0
- package/dist/utils/find-workspace-root.d.cts +16 -0
- package/dist/utils/find-workspace-root.js +3 -10
- package/dist/utils/format-config.cjs +20 -0
- package/dist/utils/format-config.d.cts +5 -0
- package/dist/utils/format-config.js +2 -7
- package/dist/utils/get-file-banner.cjs +103 -0
- package/dist/utils/get-file-banner.d.cts +12 -0
- package/dist/utils/get-file-banner.js +3 -8
- package/dist/utils/helpers.cjs +87 -0
- package/dist/utils/helpers.d.cts +55 -0
- package/dist/utils/helpers.js +2 -19
- package/dist/utils/index.cjs +224 -0
- package/dist/utils/index.d.cts +3 -0
- package/dist/utils/index.js +3 -79
- package/dist/utils/tsconfig-path.cjs +152 -0
- package/dist/utils/tsconfig-path.d.cts +3 -0
- package/dist/utils/tsconfig-path.js +3 -8
- package/package.json +44 -46
package/dist/chunk-4CXNUMUG.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
init_esm_shims
|
|
3
|
-
} from "./chunk-PWQ34SJ2.js";
|
|
1
|
+
import { init_esm_shims } from './chunk-PWQ34SJ2.js';
|
|
4
2
|
|
|
5
3
|
// src/utils/constants.ts
|
|
6
4
|
init_esm_shims();
|
|
@@ -173,39 +171,4 @@ var GLOB_EXCLUDE = [
|
|
|
173
171
|
"**/src/generators/*/schema.md"
|
|
174
172
|
];
|
|
175
173
|
|
|
176
|
-
export {
|
|
177
|
-
GLOB_CODE_BLOCK,
|
|
178
|
-
GLOB_CODE_FILE,
|
|
179
|
-
ACRONYMS_LIST,
|
|
180
|
-
GLOB_SRC_EXT,
|
|
181
|
-
GLOB_SRC,
|
|
182
|
-
GLOB_JS,
|
|
183
|
-
GLOB_JSX,
|
|
184
|
-
GLOB_TS,
|
|
185
|
-
GLOB_TSX,
|
|
186
|
-
GLOB_STYLE,
|
|
187
|
-
GLOB_CSS,
|
|
188
|
-
GLOB_POSTCSS,
|
|
189
|
-
GLOB_LESS,
|
|
190
|
-
GLOB_SCSS,
|
|
191
|
-
GLOB_JSON,
|
|
192
|
-
GLOB_JSON5,
|
|
193
|
-
GLOB_JSONC,
|
|
194
|
-
GLOB_MARKDOWN,
|
|
195
|
-
GLOB_MDX,
|
|
196
|
-
GLOB_MARKDOWN_IN_MARKDOWN,
|
|
197
|
-
GLOB_SVELTE,
|
|
198
|
-
GLOB_VUE,
|
|
199
|
-
GLOB_YAML,
|
|
200
|
-
GLOB_TOML,
|
|
201
|
-
GLOB_XML,
|
|
202
|
-
GLOB_SVG,
|
|
203
|
-
GLOB_HTML,
|
|
204
|
-
GLOB_ASTRO,
|
|
205
|
-
GLOB_ASTRO_TS,
|
|
206
|
-
GLOB_GRAPHQL,
|
|
207
|
-
GLOB_MARKDOWN_CODE,
|
|
208
|
-
GLOB_TESTS,
|
|
209
|
-
GLOB_ALL_SRC,
|
|
210
|
-
GLOB_EXCLUDE
|
|
211
|
-
};
|
|
174
|
+
export { ACRONYMS_LIST, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CODE_BLOCK, GLOB_CODE_FILE, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MDX, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML };
|
package/dist/chunk-A32JZBPO.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
init_esm_shims
|
|
3
|
-
} from "./chunk-PWQ34SJ2.js";
|
|
1
|
+
import { init_esm_shims } from './chunk-PWQ34SJ2.js';
|
|
4
2
|
|
|
5
3
|
// src/utils/format-config.ts
|
|
6
4
|
init_esm_shims();
|
|
@@ -20,6 +18,4 @@ var formatConfig = (name, config = []) => {
|
|
|
20
18
|
});
|
|
21
19
|
};
|
|
22
20
|
|
|
23
|
-
export {
|
|
24
|
-
formatConfig
|
|
25
|
-
};
|
|
21
|
+
export { formatConfig };
|
package/dist/chunk-DJ2ZXQYV.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from
|
|
4
|
-
import {
|
|
5
|
-
init_esm_shims
|
|
6
|
-
} from "./chunk-PWQ34SJ2.js";
|
|
1
|
+
import { joinPaths } from './chunk-T4LUMNGJ.js';
|
|
2
|
+
import { init_esm_shims } from './chunk-PWQ34SJ2.js';
|
|
3
|
+
import { existsSync, statSync } from 'node:fs';
|
|
7
4
|
|
|
8
5
|
// src/utils/tsconfig-path.ts
|
|
9
6
|
init_esm_shims();
|
|
10
|
-
import { existsSync, statSync } from "node:fs";
|
|
11
7
|
function getTsConfigPath(tsconfigPath = "./", workspaceRoot = "./") {
|
|
12
8
|
let result = "tsconfig.json";
|
|
13
9
|
if (tsconfigPath && existsSync(tsconfigPath) && statSync(tsconfigPath).isFile()) {
|
|
@@ -28,6 +24,4 @@ function getTsConfigPath(tsconfigPath = "./", workspaceRoot = "./") {
|
|
|
28
24
|
return result;
|
|
29
25
|
}
|
|
30
26
|
|
|
31
|
-
export {
|
|
32
|
-
getTsConfigPath
|
|
33
|
-
};
|
|
27
|
+
export { getTsConfigPath };
|
package/dist/chunk-FXLMJ2Y5.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-4CXNUMUG.js";
|
|
4
|
-
import {
|
|
5
|
-
init_esm_shims
|
|
6
|
-
} from "./chunk-PWQ34SJ2.js";
|
|
1
|
+
import { ACRONYMS_LIST } from './chunk-4CXNUMUG.js';
|
|
2
|
+
import { init_esm_shims } from './chunk-PWQ34SJ2.js';
|
|
7
3
|
|
|
8
4
|
// src/utils/get-file-banner.ts
|
|
9
5
|
init_esm_shims();
|
|
@@ -63,6 +59,4 @@ ${padding}\u26A1 ${(organization.charAt(0).toUpperCase() + organization.slice(1)
|
|
|
63
59
|
------------------------------------------------------------------- `;
|
|
64
60
|
};
|
|
65
61
|
|
|
66
|
-
export {
|
|
67
|
-
getFileBanner
|
|
68
|
-
};
|
|
62
|
+
export { getFileBanner };
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { init_esm_shims } from './chunk-PWQ34SJ2.js';
|
|
2
|
+
import { isPackageExists } from 'local-pkg';
|
|
3
|
+
import process from 'node:process';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
4
5
|
|
|
5
6
|
// src/utils/helpers.ts
|
|
6
7
|
init_esm_shims();
|
|
7
|
-
import { isPackageExists } from "local-pkg";
|
|
8
|
-
import process from "node:process";
|
|
9
|
-
import { fileURLToPath } from "node:url";
|
|
10
8
|
var scopeUrl = fileURLToPath(new URL(".", import.meta.url));
|
|
11
|
-
var isCwdInScope = isPackageExists("@storm-
|
|
9
|
+
var isCwdInScope = isPackageExists("@storm-software/eslint");
|
|
12
10
|
var parserPlain = {
|
|
13
11
|
meta: {
|
|
14
12
|
name: "parser-plain"
|
|
@@ -51,12 +49,14 @@ async function ensurePackages(packages) {
|
|
|
51
49
|
(i) => i && !isPackageInScope(i)
|
|
52
50
|
);
|
|
53
51
|
if (nonExistingPackages.length === 0) return;
|
|
54
|
-
const p = await import(
|
|
52
|
+
const p = await import('@clack/prompts');
|
|
55
53
|
const result = await p.confirm({
|
|
56
|
-
message: `${nonExistingPackages.length === 1 ? "Package is" : "Packages are"} required for this config: ${nonExistingPackages.join(
|
|
54
|
+
message: `${nonExistingPackages.length === 1 ? "Package is" : "Packages are"} required for this config: ${nonExistingPackages.join(
|
|
55
|
+
", "
|
|
56
|
+
)}. Do you want to install them?`
|
|
57
57
|
});
|
|
58
58
|
if (result)
|
|
59
|
-
await import(
|
|
59
|
+
await import('@antfu/install-pkg').then(
|
|
60
60
|
(i) => i.installPackage(nonExistingPackages, { dev: true })
|
|
61
61
|
);
|
|
62
62
|
}
|
|
@@ -72,12 +72,4 @@ function renameRules(rules, map) {
|
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
export {
|
|
76
|
-
parserPlain,
|
|
77
|
-
isInGitHooksOrLintStaged,
|
|
78
|
-
isInEditorEnv,
|
|
79
|
-
interopDefault,
|
|
80
|
-
isPackageInScope,
|
|
81
|
-
ensurePackages,
|
|
82
|
-
renameRules
|
|
83
|
-
};
|
|
75
|
+
export { ensurePackages, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, parserPlain, renameRules };
|
package/dist/chunk-O5CGESKJ.js
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
} from "./chunk-4CXNUMUG.js";
|
|
7
|
-
import {
|
|
8
|
-
init_esm_shims
|
|
9
|
-
} from "./chunk-PWQ34SJ2.js";
|
|
1
|
+
import { getFileBanner } from './chunk-FXLMJ2Y5.js';
|
|
2
|
+
import { GLOB_SRC } from './chunk-4CXNUMUG.js';
|
|
3
|
+
import { init_esm_shims } from './chunk-PWQ34SJ2.js';
|
|
4
|
+
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
5
|
+
import os from 'node:os';
|
|
10
6
|
|
|
11
7
|
// src/utils/banner-plugin.ts
|
|
12
8
|
init_esm_shims();
|
|
13
|
-
import { ESLintUtils } from "@typescript-eslint/utils";
|
|
14
|
-
import os from "node:os";
|
|
15
9
|
function match(actual, expected) {
|
|
16
10
|
if (expected.test) {
|
|
17
11
|
return expected.test(actual);
|
|
@@ -177,7 +171,6 @@ var bannerRule = ESLintUtils.RuleCreator(
|
|
|
177
171
|
}
|
|
178
172
|
const options = context.options;
|
|
179
173
|
const eol = getEOL({ lineEndings, ...options });
|
|
180
|
-
const canFix = true;
|
|
181
174
|
const bannerLines = banner.split(/\r?\n/);
|
|
182
175
|
let fixLines = bannerLines;
|
|
183
176
|
return {
|
|
@@ -194,7 +187,7 @@ var bannerRule = ESLintUtils.RuleCreator(
|
|
|
194
187
|
context.report({
|
|
195
188
|
loc: node.loc,
|
|
196
189
|
messageId: "missingBanner",
|
|
197
|
-
fix:
|
|
190
|
+
fix: genPrependFixer(commentType, node, fixLines, eol, numNewlines)
|
|
198
191
|
});
|
|
199
192
|
} else if (leadingComments[0].type.toLowerCase() !== commentType) {
|
|
200
193
|
context.report({
|
|
@@ -203,14 +196,14 @@ var bannerRule = ESLintUtils.RuleCreator(
|
|
|
203
196
|
data: {
|
|
204
197
|
commentType
|
|
205
198
|
},
|
|
206
|
-
fix:
|
|
199
|
+
fix: genReplaceFixer(
|
|
207
200
|
commentType,
|
|
208
201
|
context,
|
|
209
202
|
leadingComments,
|
|
210
203
|
fixLines,
|
|
211
204
|
eol,
|
|
212
205
|
numNewlines
|
|
213
|
-
)
|
|
206
|
+
)
|
|
214
207
|
});
|
|
215
208
|
} else {
|
|
216
209
|
if (commentType === "line") {
|
|
@@ -218,14 +211,14 @@ var bannerRule = ESLintUtils.RuleCreator(
|
|
|
218
211
|
context.report({
|
|
219
212
|
loc: node.loc,
|
|
220
213
|
messageId: "missingBanner",
|
|
221
|
-
fix:
|
|
214
|
+
fix: genReplaceFixer(
|
|
222
215
|
commentType,
|
|
223
216
|
context,
|
|
224
217
|
leadingComments,
|
|
225
218
|
fixLines,
|
|
226
219
|
eol,
|
|
227
220
|
numNewlines
|
|
228
|
-
)
|
|
221
|
+
)
|
|
229
222
|
});
|
|
230
223
|
return;
|
|
231
224
|
}
|
|
@@ -234,14 +227,14 @@ var bannerRule = ESLintUtils.RuleCreator(
|
|
|
234
227
|
context.report({
|
|
235
228
|
loc: node.loc,
|
|
236
229
|
messageId: "incorrectBanner",
|
|
237
|
-
fix:
|
|
230
|
+
fix: genReplaceFixer(
|
|
238
231
|
commentType,
|
|
239
232
|
context,
|
|
240
233
|
leadingComments,
|
|
241
234
|
fixLines,
|
|
242
235
|
eol,
|
|
243
236
|
numNewlines
|
|
244
|
-
)
|
|
237
|
+
)
|
|
245
238
|
});
|
|
246
239
|
return;
|
|
247
240
|
}
|
|
@@ -254,14 +247,14 @@ var bannerRule = ESLintUtils.RuleCreator(
|
|
|
254
247
|
context.report({
|
|
255
248
|
loc: node.loc,
|
|
256
249
|
messageId: "noNewlineAfterBanner",
|
|
257
|
-
fix:
|
|
250
|
+
fix: genReplaceFixer(
|
|
258
251
|
commentType,
|
|
259
252
|
context,
|
|
260
253
|
leadingComments,
|
|
261
254
|
fixLines,
|
|
262
255
|
eol,
|
|
263
256
|
numNewlines
|
|
264
|
-
)
|
|
257
|
+
)
|
|
265
258
|
});
|
|
266
259
|
}
|
|
267
260
|
} else {
|
|
@@ -279,20 +272,20 @@ var bannerRule = ESLintUtils.RuleCreator(
|
|
|
279
272
|
}
|
|
280
273
|
}
|
|
281
274
|
if (hasError) {
|
|
282
|
-
if (
|
|
275
|
+
if (bannerLines.length > 1) {
|
|
283
276
|
fixLines = [fixLines.join(eol)];
|
|
284
277
|
}
|
|
285
278
|
context.report({
|
|
286
279
|
loc: node.loc,
|
|
287
280
|
messageId: "incorrectBanner",
|
|
288
|
-
fix:
|
|
281
|
+
fix: genReplaceFixer(
|
|
289
282
|
commentType,
|
|
290
283
|
context,
|
|
291
284
|
leadingComments,
|
|
292
285
|
fixLines,
|
|
293
286
|
eol,
|
|
294
287
|
numNewlines
|
|
295
|
-
)
|
|
288
|
+
)
|
|
296
289
|
});
|
|
297
290
|
} else {
|
|
298
291
|
const postBlockBanner = context.getSourceCode().text.substr(
|
|
@@ -303,14 +296,14 @@ var bannerRule = ESLintUtils.RuleCreator(
|
|
|
303
296
|
context.report({
|
|
304
297
|
loc: node.loc,
|
|
305
298
|
messageId: "noNewlineAfterBanner",
|
|
306
|
-
fix:
|
|
299
|
+
fix: genReplaceFixer(
|
|
307
300
|
commentType,
|
|
308
301
|
context,
|
|
309
302
|
leadingComments,
|
|
310
303
|
fixLines,
|
|
311
304
|
eol,
|
|
312
305
|
numNewlines
|
|
313
|
-
)
|
|
306
|
+
)
|
|
314
307
|
});
|
|
315
308
|
}
|
|
316
309
|
}
|
|
@@ -353,6 +346,4 @@ plugin.configs && (plugin.configs.recommended = {
|
|
|
353
346
|
});
|
|
354
347
|
var banner_plugin_default = plugin;
|
|
355
348
|
|
|
356
|
-
export {
|
|
357
|
-
banner_plugin_default
|
|
358
|
-
};
|
|
349
|
+
export { banner_plugin_default };
|
package/dist/chunk-PWQ34SJ2.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import 'url';
|
|
2
|
+
import 'path';
|
|
3
|
+
|
|
1
4
|
var __create = Object.create;
|
|
2
5
|
var __defProp = Object.defineProperty;
|
|
3
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -26,18 +29,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
29
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
30
|
mod
|
|
28
31
|
));
|
|
29
|
-
|
|
30
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__62048a4dc615a7ea5da4008534e42c0e/node_modules/tsup/assets/esm_shims.js
|
|
31
|
-
import { fileURLToPath } from "url";
|
|
32
|
-
import path from "path";
|
|
33
32
|
var init_esm_shims = __esm({
|
|
34
33
|
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__62048a4dc615a7ea5da4008534e42c0e/node_modules/tsup/assets/esm_shims.js"() {
|
|
35
|
-
"use strict";
|
|
36
34
|
}
|
|
37
35
|
});
|
|
38
36
|
|
|
39
|
-
export {
|
|
40
|
-
__commonJS,
|
|
41
|
-
__toESM,
|
|
42
|
-
init_esm_shims
|
|
43
|
-
};
|
|
37
|
+
export { __commonJS, __toESM, init_esm_shims };
|
package/dist/chunk-T4LUMNGJ.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
init_esm_shims
|
|
3
|
-
} from "./chunk-PWQ34SJ2.js";
|
|
1
|
+
import { init_esm_shims } from './chunk-PWQ34SJ2.js';
|
|
4
2
|
|
|
5
3
|
// src/utils/correct-paths.ts
|
|
6
4
|
init_esm_shims();
|
|
@@ -107,8 +105,7 @@ function normalizeString(path, allowAboveRoot) {
|
|
|
107
105
|
char = "/";
|
|
108
106
|
}
|
|
109
107
|
if (char === "/") {
|
|
110
|
-
if (lastSlash === index - 1 || dots === 1) {
|
|
111
|
-
} else if (dots === 2) {
|
|
108
|
+
if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) {
|
|
112
109
|
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
113
110
|
if (res.length > 2) {
|
|
114
111
|
const lastSlashIndex = res.lastIndexOf("/");
|
|
@@ -220,19 +217,4 @@ var parse = function(p) {
|
|
|
220
217
|
};
|
|
221
218
|
};
|
|
222
219
|
|
|
223
|
-
export {
|
|
224
|
-
normalizeWindowsPath,
|
|
225
|
-
sep,
|
|
226
|
-
correctPaths,
|
|
227
|
-
joinPaths,
|
|
228
|
-
resolve,
|
|
229
|
-
normalizeString,
|
|
230
|
-
isAbsolute,
|
|
231
|
-
toNamespacedPath,
|
|
232
|
-
extname,
|
|
233
|
-
relative,
|
|
234
|
-
dirname,
|
|
235
|
-
format,
|
|
236
|
-
basename,
|
|
237
|
-
parse
|
|
238
|
-
};
|
|
220
|
+
export { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths, normalizeString, normalizeWindowsPath, parse, relative, resolve, sep, toNamespacedPath };
|
package/dist/chunk-UVJN4TQE.js
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from
|
|
4
|
-
import {
|
|
5
|
-
init_esm_shims
|
|
6
|
-
} from "./chunk-PWQ34SJ2.js";
|
|
1
|
+
import { correctPaths } from './chunk-T4LUMNGJ.js';
|
|
2
|
+
import { init_esm_shims } from './chunk-PWQ34SJ2.js';
|
|
3
|
+
import { existsSync } from 'node:fs';
|
|
4
|
+
import { join } from 'node:path';
|
|
7
5
|
|
|
8
6
|
// src/utils/find-workspace-root.ts
|
|
9
7
|
init_esm_shims();
|
|
10
|
-
import { existsSync } from "node:fs";
|
|
11
|
-
import { join } from "node:path";
|
|
12
8
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
13
9
|
var depth = 0;
|
|
14
10
|
function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
@@ -97,7 +93,4 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
|
|
|
97
93
|
return result;
|
|
98
94
|
}
|
|
99
95
|
|
|
100
|
-
export {
|
|
101
|
-
findWorkspaceRootSafe,
|
|
102
|
-
findWorkspaceRoot
|
|
103
|
-
};
|
|
96
|
+
export { findWorkspaceRoot, findWorkspaceRootSafe };
|