dependency-cruiser 18.1.1 → 18.2.0-beta-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dependency-cruiser",
3
- "version": "18.1.1",
3
+ "version": "18.2.0-beta-2",
4
4
  "description": "Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.",
5
5
  "keywords": [
6
6
  "static analysis",
@@ -4,6 +4,9 @@ export const RULES_FILE_NAME_SEARCH_ARRAY = [
4
4
  ".dependency-cruiser.js",
5
5
  ".dependency-cruiser.cjs",
6
6
  ".dependency-cruiser.mjs",
7
+ ".dependency-cruiser.ts",
8
+ ".dependency-cruiser.cts",
9
+ ".dependency-cruiser.mts",
7
10
  ];
8
11
  export const DEFAULT_BASELINE_FILE_NAME =
9
12
  ".dependency-cruiser-known-violations.json";
@@ -60,7 +60,7 @@ export default async function extractDepcruiseConfig(
60
60
  pBaseDirectory,
61
61
  await normalizeResolveOptions(
62
62
  {
63
- extensions: [".js", ".json", ".cjs", ".mjs"],
63
+ extensions: [".js", ".json", ".cjs", ".mjs", ".ts", ".cts", ".mts"],
64
64
  },
65
65
  {},
66
66
  ),
@@ -8,7 +8,9 @@ import { extname } from "node:path";
8
8
  */
9
9
  export default async function readConfig(pAbsolutePathToConfigFile) {
10
10
  if (
11
- [".js", ".cjs", ".mjs", ""].includes(extname(pAbsolutePathToConfigFile))
11
+ [".js", ".cjs", ".mjs", ".mts", ".cts", ".ts", ""].includes(
12
+ extname(pAbsolutePathToConfigFile),
13
+ )
12
14
  ) {
13
15
  const { default: config } = await import(
14
16
  `file://${pAbsolutePathToConfigFile}`
package/src/meta.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /* generated - don't edit */
2
2
  module.exports = {
3
- version: "18.1.1",
3
+ version: "18.2.0-beta-2",
4
4
  engines: {
5
5
  node: "^22||^24||>=26",
6
6
  },