Skip to content

Commit

Permalink
Merge pull request #19979 from storybookjs/tech/fix-async-exports-fil…
Browse files Browse the repository at this point in the history
…e-generation-script

change export-generating script to use exec util over shelljs
  • Loading branch information
ndelangen authored Nov 28, 2022
2 parents 6127de5 + 7118fc5 commit 279053c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion code/ui/manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
"react-sizeme": "^3.0.1",
"resolve-from": "^5.0.0",
"semver": "^7.3.7",
"shelljs": "^0.8.5",
"store2": "^2.12.0",
"ts-dedent": "^2.0.0",
"typescript": "^4.9.3"
Expand Down
4 changes: 2 additions & 2 deletions code/ui/manager/scripts/generate-exports-file.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable no-console */
import fs from 'fs-extra';
import path from 'path';
import shelljs from 'shelljs';
import { dedent } from 'ts-dedent';
import { exec } from '../../../../scripts/utils/exec';

const removeDefault = (input: string) => input !== 'default';

Expand All @@ -28,7 +28,7 @@ const run = async () => {
);

console.log('Linting...');
shelljs.exec(`yarn lint:js:cmd --fix ${location}`, {
await exec(`yarn lint:js:cmd --fix ${location}`, {
cwd: path.join(__dirname, '..', '..', '..'),
});
console.log('Done!');
Expand Down
1 change: 0 additions & 1 deletion code/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6598,7 +6598,6 @@ __metadata:
react-sizeme: ^3.0.1
resolve-from: ^5.0.0
semver: ^7.3.7
shelljs: ^0.8.5
store2: ^2.12.0
ts-dedent: ^2.0.0
typescript: ^4.9.3
Expand Down

0 comments on commit 279053c

Please sign in to comment.