Skip to content

Commit 3b9ca9e

Browse files
chore(deps): update dependency make-dir to v5 (#9969)
* chore(deps): update dependency make-dir to v5 * Replace makeDir with makeDirectorySync in tests * Replace makeDir with makeDirectorySync in tests --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
1 parent 7016f1b commit 3b9ca9e

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

packages/graphql-codegen-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
"bdd-stdin": "0.2.0",
119119
"change-case-all": "1.0.15",
120120
"js-yaml": "4.1.1",
121-
"make-dir": "4.0.0",
121+
"make-dir": "5.1.0",
122122
"prettier": "3.8.2"
123123
},
124124
"publishConfig": {

packages/graphql-codegen-cli/tests/generate-and-save.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { dirname, join } from 'path';
22
import logSymbols from 'log-symbols';
33
import { Types } from '@graphql-codegen/plugin-helpers';
44
import '@graphql-codegen/testing';
5-
import makeDir from 'make-dir';
5+
import { makeDirectorySync } from 'make-dir';
66
import { createContext } from '../src/config.js';
77
import { generate } from '../src/generate-and-save.js';
88
import * as fs from '../src/utils/file-system.js';
@@ -169,7 +169,7 @@ describe('generate-and-save', () => {
169169
vi.unmock('fs');
170170
const fs = await import('fs');
171171

172-
makeDir.sync(dirname(outputFile));
172+
makeDirectorySync(dirname(outputFile));
173173
if (fs.existsSync(outputFile)) {
174174
fs.unlinkSync(outputFile);
175175
}

packages/graphql-codegen-cli/tests/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os from 'os';
22
import { join, parse, relative, resolve } from 'path';
3-
import makeDir from 'make-dir';
3+
import { makeDirectorySync } from 'make-dir';
44
import * as rimraf from 'rimraf';
55

66
const fs = await vi.importActual<typeof import('fs')>('fs');
@@ -16,14 +16,14 @@ export class TempDir {
1616
// This ensures that temp files/dirs won't cause side effects for other tests.
1717
this.dir = resolve(tempDir, 'codegen', `${relativeParent}-dir`);
1818

19-
makeDir.sync(this.dir);
19+
makeDirectorySync(this.dir);
2020
}
2121

2222
createFile(file: string, contents: string): void {
2323
const filePath = join(this.dir, file);
2424
const fileDir = parse(filePath).dir;
2525

26-
makeDir.sync(fileDir);
26+
makeDirectorySync(fileDir);
2727

2828
fs.writeFileSync(filePath, `${contents}\n`);
2929
}

yarn.lock

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10622,12 +10622,10 @@ magic-string@^0.30.11, magic-string@^0.30.17, magic-string@^0.30.21:
1062210622
dependencies:
1062310623
"@jridgewell/sourcemap-codec" "^1.5.5"
1062410624

10625-
make-dir@4.0.0:
10626-
version "4.0.0"
10627-
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-4.0.0.tgz#c3c2307a771277cd9638305f915c29ae741b614e"
10628-
integrity sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==
10629-
dependencies:
10630-
semver "^7.5.3"
10625+
make-dir@5.1.0:
10626+
version "5.1.0"
10627+
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-5.1.0.tgz#59b2d9acf7ffa543d14238617a697458fa8dd5c9"
10628+
integrity sha512-IfpFq6UM39dUNiphpA6uDezNx/AvWyhwfICWPR3t1VspkgkMZrL+Rk1RbN1bx+aeNYwOrqGJgEgV3yotk+ZUVw==
1063110629

1063210630
make-error@^1.1.1:
1063310631
version "1.3.6"

0 commit comments

Comments
 (0)