Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Jul 24, 2024
1 parent ac778ce commit b9006ec
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 28 deletions.
1 change: 0 additions & 1 deletion packages/graphql-codegen-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
"@types/is-glob": "4.0.4",
"@types/js-yaml": "4.0.9",
"@types/micromatch": "^4.0.2",
"@types/mkdirp": "2.0.0",
"@types/shell-quote": "1.7.5",
"bdd-stdin": "0.2.0",
"change-case-all": "1.0.15",
Expand Down
9 changes: 7 additions & 2 deletions packages/utils/graphql-codegen-testing/src/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ export function validateTs(
const contents: string =
typeof pluginOutput === 'string'
? pluginOutput
: [...(pluginOutput.prepend || []), pluginOutput.content, ...(pluginOutput.append || [])].join('\n');
: [...new Set([...(pluginOutput.prepend || []), pluginOutput.content, ...(pluginOutput.append || [])])].join(
'\n'
);

const testFile = `test-file.${isTsx ? 'tsx' : 'ts'}`;
const errors: string[] = [];
Expand Down Expand Up @@ -147,7 +149,10 @@ export function validateTs(
});

if (relevantErrors && relevantErrors.length > 0) {
throw new Error(relevantErrors.join('\n'));
if (relevantErrors.length === 1) {
throw new Error(relevantErrors[0]);
}
throw new AggregateError(relevantErrors, relevantErrors.join('\n'));
}
}

Expand Down
13 changes: 0 additions & 13 deletions patches/listr2+4.0.5.patch

This file was deleted.

17 changes: 5 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4394,13 +4394,6 @@
resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.2.tgz#ee771e2ba4b3dc5b372935d549fd9617bf345b8c"
integrity sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==

"@types/[email protected]":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@types/mkdirp/-/mkdirp-2.0.0.tgz#d14f087a889c3744e7cc41e82ad762b047ebc636"
integrity sha512-c/iUqMymAlxLAyIK3u5SzrwkrkyOdv1XDc91T+b5FsY7Jr6ERhUD19jJHOhPW4GD6tmN6mFEorfSdks525pwdQ==
dependencies:
mkdirp "*"

"@types/ms@*":
version "0.7.31"
resolved "https://registry.yarnpkg.com/@types/ms/-/ms-0.7.31.tgz#31b7ca6407128a3d2bbc27fe2d21b345397f6197"
Expand Down Expand Up @@ -12105,16 +12098,16 @@ mj-context-menu@^0.6.1:
resolved "https://registry.yarnpkg.com/mj-context-menu/-/mj-context-menu-0.6.1.tgz#a043c5282bf7e1cf3821de07b13525ca6f85aa69"
integrity sha512-7NO5s6n10TIV96d4g2uDpG7ZDpIhMh0QNfGdJw/W47JswFcosz457wqz/b5sAKvl12sxINGFCn80NZHKwxQEXA==

mkdirp@*, mkdirp@^2.0.0:
version "2.1.6"
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-2.1.6.tgz#964fbcb12b2d8c5d6fbc62a963ac95a273e2cc19"
integrity sha512-+hEnITedc8LAtIP9u3HJDFIdcLV2vXP33sqLLIzkv1Db1zO/1OxbvYf0Y1OC/S/Qo5dxHXepofhmxL02PsKe+A==

mkdirp@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e"
integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==

mkdirp@^2.0.0:
version "2.1.6"
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-2.1.6.tgz#964fbcb12b2d8c5d6fbc62a963ac95a273e2cc19"
integrity sha512-+hEnITedc8LAtIP9u3HJDFIdcLV2vXP33sqLLIzkv1Db1zO/1OxbvYf0Y1OC/S/Qo5dxHXepofhmxL02PsKe+A==

[email protected]:
version "0.3.0"
resolved "https://registry.yarnpkg.com/mock-stdin/-/mock-stdin-0.3.0.tgz#f40d2a513a114e6d547480625b5ef5190744bd4d"
Expand Down

0 comments on commit b9006ec

Please sign in to comment.