From 267e99dad31e14257f747a91f256e354d477691f Mon Sep 17 00:00:00 2001 From: Jonathan Budzenski Date: Wed, 13 Jul 2022 12:02:43 -0500 Subject: [PATCH] [8.3] Remove shelljs (#136049) (#136313) This is only used to remove a file. We can use del instead. --- package.json | 1 - .../integration_tests/team_assignment.test.js | 4 ++-- yarn.lock | 11 +---------- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index abf31c4e21435..cf5340c2b9fc4 100644 --- a/package.json +++ b/package.json @@ -947,7 +947,6 @@ "rxjs-marbles": "^5.0.6", "sass-loader": "^10.2.0", "selenium-webdriver": "^4.3.0", - "shelljs": "^0.8.4", "simple-git": "1.116.0", "sinon": "^7.4.2", "sort-package-json": "^1.53.1", diff --git a/src/dev/code_coverage/ingest_coverage/integration_tests/team_assignment.test.js b/src/dev/code_coverage/ingest_coverage/integration_tests/team_assignment.test.js index 8fe61ed76a923..9196e5bd12818 100644 --- a/src/dev/code_coverage/ingest_coverage/integration_tests/team_assignment.test.js +++ b/src/dev/code_coverage/ingest_coverage/integration_tests/team_assignment.test.js @@ -8,7 +8,7 @@ import { resolve } from 'path'; import execa from 'execa'; -import shell from 'shelljs'; +import del from 'del'; const ROOT_DIR = resolve(__dirname, '../../../../..'); const MOCKS_DIR = resolve(__dirname, './mocks'); @@ -31,7 +31,7 @@ describe('Team Assignment', () => { }); afterAll(() => { - shell.rm(teamAssignmentsPath); + del.sync(teamAssignmentsPath); }); describe(`when the codeowners file contains #CC#`, () => { diff --git a/yarn.lock b/yarn.lock index dc357b31a972c..8fd92ddbb7e61 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16825,7 +16825,7 @@ internal-slot@^1.0.3: resolved "https://registry.yarnpkg.com/internmap/-/internmap-2.0.3.tgz#6685f23755e43c524e251d29cbc97248e3061009" integrity sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg== -interpret@^1.0.0, interpret@^1.1.0, interpret@^1.4.0: +interpret@^1.1.0, interpret@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e" integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA== @@ -25855,15 +25855,6 @@ shell-quote@^1.4.2, shell-quote@^1.6.1: resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.2.tgz#67a7d02c76c9da24f99d20808fcaded0e0e04be2" integrity sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg== -shelljs@^0.8.4: - version "0.8.4" - resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.4.tgz#de7684feeb767f8716b326078a8a00875890e3c2" - integrity sha512-7gk3UZ9kOfPLIAbslLzyWeGiEqx9e3rxwZM0KE6EL8GlGwjym9Mrlx5/p33bWTu9YG6vcS4MBxYZDHYr5lr8BQ== - dependencies: - glob "^7.0.0" - interpret "^1.0.0" - rechoir "^0.6.2" - shellwords@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b"