diff --git a/Gulpfile.js b/Gulpfile.js index 7438ba4090ea..e1314fe0caae 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -226,9 +226,19 @@ gulp.task("build-rollup", () => buildRollup(libBundles)); gulp.task("build-babel-standalone", () => buildRollup(standaloneBundle)); gulp.task("build-babel", () => buildBabel(/* exclude */ libBundles)); -gulp.task("build-babel-types", () => +gulp.task("build-babel-types-deps", () => + buildBabel( + /* exclude */ libBundles, + "packages/babel-helper-validator-identifier/src/**/*.js" + ) +); +gulp.task("build-babel-types-self", () => buildBabel(/* exclude */ libBundles, "packages/babel-types/src/**/*.js") ); +gulp.task( + "build-babel-types", + gulp.series("build-babel-types-deps", "build-babel-types-self") +); gulp.task("build", gulp.parallel("build-rollup", "build-babel")); gulp.task("default", gulp.series("build")); diff --git a/packages/babel-types/package.json b/packages/babel-types/package.json index da16e6d46f1f..11c5f02fe55e 100644 --- a/packages/babel-types/package.json +++ b/packages/babel-types/package.json @@ -13,7 +13,6 @@ "types": "lib/index.d.ts", "dependencies": { "@babel/helper-validator-identifier": "^7.9.0", - "esutils": "^2.0.2", "lodash": "^4.17.13", "to-fast-properties": "^2.0.0" },