diff --git a/Gulpfile.mjs b/Gulpfile.mjs index 2dbd729f050d..7240855cfdf7 100644 --- a/Gulpfile.mjs +++ b/Gulpfile.mjs @@ -60,7 +60,10 @@ function mapSrcToLib(srcPath) { } function mapToDts(packageName) { - return packageName.replace(/\bpackages\b/, "dts"); + return packageName.replace( + /(?<\\|\/)(packages|eslint|codemods)(?=\\|\/)/, + "dts" + ); } function getIndexFromPackage(name) {