-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(npm): updates external dependencies + minor refactor
Apart from the update - removes export default where also a regular export exists (which fixes lint issues that stem from a _breaking change_ in the minor eslint-plugin-import update) - fixes an issue stemming from a breaking change in prettier (which interestingly isn't part of the current bump set ?-/) Up'em just updated these outdated dependencies in package.json: @swc/core 1.7.22 -> 1.7.26 devDependencies (policy: latest) @types/node 22.5.1 -> 22.5.5 devDependencies (policy: latest) @typescript-eslint/eslint-plugin 8.3.0 -> 8.6.0 devDependencies (policy: latest) @typescript-eslint/parser 8.3.0 -> 8.6.0 devDependencies (policy: latest) @vue/compiler-sfc 3.4.38 -> 3.5.7 devDependencies (policy: latest) acorn-walk 8.3.3 -> 8.3.4 dependencies (policy: latest) eslint 8.57.0 -> 8.57.1 devDependencies (policy: wanted) eslint-plugin-import 2.29.1 -> 2.30.0 devDependencies (policy: latest) husky 9.1.5 -> 9.1.6 devDependencies (policy: latest) ignore 5.3.2 -> 6.0.2 dependencies (policy: latest) lint-staged 15.2.9 -> 15.2.10 devDependencies (policy: latest) picocolors 1.0.1 -> 1.1.0 dependencies (policy: latest) typescript 5.5.4 -> 5.6.2 devDependencies (policy: latest)
- Loading branch information
Showing
28 changed files
with
384 additions
and
351 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
import { join } from "node:path/posix"; | ||
import { isTypeScriptCompatible } from "../helpers.mjs"; | ||
import extractSwcDeps from "./extract-swc-deps.mjs"; | ||
import parse from "./parse.mjs"; | ||
import { getASTCached, isAvailable } from "./parse.mjs"; | ||
|
||
export function shouldUse({ parser }, pFileName) { | ||
return ( | ||
parser === "swc" && parse.isAvailable() && isTypeScriptCompatible(pFileName) | ||
); | ||
return parser === "swc" && isAvailable() && isTypeScriptCompatible(pFileName); | ||
} | ||
|
||
export function extract( | ||
{ baseDir, exoticRequireStrings, moduleSystems }, | ||
pFileName, | ||
) { | ||
return extractSwcDeps( | ||
parse.getASTCached(join(baseDir, pFileName)), | ||
getASTCached(join(baseDir, pFileName)), | ||
exoticRequireStrings, | ||
).filter(({ moduleSystem }) => moduleSystems.includes(moduleSystem)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.