Skip to content

Commit

Permalink
Fix shell.js imports (#1319)
Browse files Browse the repository at this point in the history
Fix `* as sh from 'shelljs'` imports as they seem to fail when used in an es module
  • Loading branch information
tortmayr authored Apr 17, 2024
1 parent 063af47 commit 48d9289
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev-packages/cli/src/commands/release/release-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
********************************************************************************/
import * as sh from 'shelljs';
import sh from 'shelljs';
import { getShellConfig } from '../../util/command-util.js';
import { LOGGER } from '../../util/logger.js';
import { checkoutAndCd, commitAndTag, lernaSetVersion, publish, ReleaseOptions, updateLernaForDryRun, yarnInstall } from './common.js';
Expand Down
2 changes: 1 addition & 1 deletion dev-packages/cli/src/commands/update-next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import * as fs from 'fs';
import { glob } from 'glob';
import * as jq from 'node-jq';
import * as path from 'path';
import * as sh from 'shelljs';
import sh from 'shelljs';
import { baseCommand, configureShell } from '../util/command-util.js';
import { getUncommittedChanges } from '../util/git-util.js';
import { LOGGER, configureLogger } from '../util/logger.js';
Expand Down

0 comments on commit 48d9289

Please sign in to comment.