Mirror: The spec-compliant minimum of client-side GraphQL.

Fix the `@ts-ignore` directive on TS import in type declaration output (#27)

* Fix the directive syntax for ignoring errors due to unavailable peer dependencies

* Add a changeset

* Update .changeset/serious-hotels-shake.md

---------

Co-authored-by: Phil Pluckthun <phil@kitten.sh>

Changed files
+6 -1
.changeset
scripts
+5
.changeset/serious-hotels-shake.md
···
+
---
+
"@0no-co/graphql.web": patch
+
---
+
+
Fix `@ts-ignore` on TypeScript peer dependency import in typings not being applied due to a leading `!` character.
+1 -1
scripts/rollup.config.mjs
···
renderChunk(code, chunk) {
if (chunk.fileName.endsWith('d.ts')) {
const gqlImportRe = /(import\s+(?:[*\s{}\w\d]+)\s*from\s*'graphql';?)/g;
-
code = code.replace(gqlImportRe, x => '/*!@ts-ignore*/\n' + x);
+
code = code.replace(gqlImportRe, x => '/*@ts-ignore*/\n' + x);
code = prettier.format(code, {
filepath: chunk.fileName,