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:
renovate[bot]andfisker authored and GitHub committed 2023-08-15 09:20:40 +08:00
1 parent f24132eda3
commit 91e850b2bd
4 files changed
+13 -9

No files matched your search

+6 -2
View File
@@ -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;
}