diff --git a/component-generator/utils.js b/component-generator/utils.js index f742c3bff54..2ee0543fda5 100644 --- a/component-generator/utils.js +++ b/component-generator/utils.js @@ -1,7 +1,7 @@ const { InvalidOptionArgumentError } = require('commander'); const fs = require('fs'); const path = require('path'); -const { exec } = require('child_process'); +const { exec } = require('node:child_process'); require('dotenv').config(); /** diff --git a/generate-changelog.js b/generate-changelog.js index c66ce82d62b..c8a0693092c 100644 --- a/generate-changelog.js +++ b/generate-changelog.js @@ -1,5 +1,5 @@ const { program } = require('commander'); -const { execSync } = require('child_process'); +const { execSync } = require('node:child_process'); const fs = require('fs'); program diff --git a/lib/__tests__/build-scss.test.js b/lib/__tests__/build-scss.test.js index 5f7e61b6475..c8ddc00bdaa 100644 --- a/lib/__tests__/build-scss.test.js +++ b/lib/__tests__/build-scss.test.js @@ -1,6 +1,6 @@ const fs = require('fs'); const path = require('path'); -const { spawn } = require('child_process'); +const { spawn } = require('node:child_process'); const os = require('os'); const sass = require('sass'); diff --git a/lib/__tests__/install-theme.test.js b/lib/__tests__/install-theme.test.js index 084e3c6a358..1289b1fb4fb 100644 --- a/lib/__tests__/install-theme.test.js +++ b/lib/__tests__/install-theme.test.js @@ -1,10 +1,10 @@ const inquirer = require('inquirer'); -const childProcess = require('child_process'); +const childProcess = require('node:child_process'); const themeCommand = require('../install-theme'); jest.mock('inquirer'); -jest.mock('child_process'); +jest.mock('node:child_process'); describe('install-theme', () => { beforeEach(() => { diff --git a/lib/install-theme.js b/lib/install-theme.js index e3da7079d1f..64ceb548ca8 100644 --- a/lib/install-theme.js +++ b/lib/install-theme.js @@ -1,5 +1,5 @@ const inquirer = require('inquirer'); -const childProcess = require('child_process'); +const childProcess = require('node:child_process'); /** * Prompts the user to enter the @edx/brand package they want to install. diff --git a/package.json b/package.json index 0ea414c17fb..aa85a78402c 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,6 @@ "axios": "^1.0.0", "bootstrap": "^4.6.2", "chalk": "^4.1.2", - "child_process": "^1.0.2", "chroma-js": "^3.0.0", "classnames": "^2.3.1", "cli-progress": "^3.12.0",