chore(deps): update dependency camelcase to v8 (#15245)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: fisker <lionkay@gmail.com>
This commit is contained in:
1 parent
f24132eda3
commit
91e850b2bd
4 files changed
+13
-9
No files matched your search
@@ -1,8 +1,9 @@
|
||||
import path from "node:path";
|
||||
import { parse } from "@babel/parser";
|
||||
import { traverseFast as traverse } from "@babel/types";
|
||||
import babelGenerator from "@babel/generator";
|
||||
import { outdent } from "outdent";
|
||||
import { SOURCE_DIR } from "../../utils/index.js";
|
||||
import { SOURCE_DIR, PROJECT_ROOT } from "../../utils/index.js";
|
||||
import allTransforms from "./transforms/index.js";
|
||||
|
||||
const generate = babelGenerator.default;
|
||||
@@ -10,7 +11,10 @@ const generate = babelGenerator.default;
|
||||
/* Doesn't work for dependencies, optional call, computed property, and spread arguments */
|
||||
|
||||
function transform(original, file) {
|
||||
if (!file.startsWith(SOURCE_DIR)) {
|
||||
if (
|
||||
!file.startsWith(SOURCE_DIR) &&
|
||||
!file.startsWith(path.join(PROJECT_ROOT, "node_modules/camelcase/"))
|
||||
) {
|
||||
return original;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user