Skip to content

Commit

Permalink
Remove unused deps
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown committed Mar 11, 2024
1 parent 6972adf commit afa33d0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 23 deletions.
5 changes: 5 additions & 0 deletions .changeset/olive-melons-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ts-gql/compiler": patch
---

Remove unused deps
7 changes: 2 additions & 5 deletions packages/compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,9 @@
"@graphql-codegen/typescript-operations": "^2.3.5",
"@nodelib/fs.walk": "^1.2.4",
"@ts-gql/config": "^0.9.2",
"@types/babel__code-frame": "^7.0.1",
"@types/graceful-fs": "^4.1.3",
"@types/invariant": "^2.2.32",
"chokidar": "^3.4.0",
"fast-glob": "^3.2.4",
"find-pkg-json-field-up": "^1.0.1",
"graceful-fs": "^4.2.4",
"invariant": "^2.2.4",
"slash": "^3.0.0",
"strip-ansi": "^6.0.0"
},
Expand All @@ -47,6 +42,8 @@
},
"devDependencies": {
"@ts-gql/tag": "*",
"@types/babel__code-frame": "^7.0.1",
"@types/graceful-fs": "^4.1.3",
"fixturez": "^1.1.0",
"graphql": "^16.3.0",
"lazy-require.macro": "^0.1.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/compiler/src/watcher.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// https://gist.github.com/petehunt/bee47e20701329792153453409b1922b
import type { FSWatcher } from "chokidar";
import invariant from "invariant";
import assert from "node:assert";

interface WatcherFsEvent {
type: "add" | "unlink" | "change";
Expand All @@ -20,7 +20,7 @@ function createPromiseSignal<T>() {
return {
promise,
resolve(value: T) {
invariant(!resolved, "already resolved");
assert(!resolved, "already resolved");
resolved = true;
resolve!(value);
},
Expand All @@ -40,7 +40,7 @@ export const createWatcher = (watcher: FSWatcher) => {
}
}
async function start() {
invariant(!started, "already started");
assert(!started, "already started");
started = true;

ready = false;
Expand Down
18 changes: 3 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit afa33d0

Please sign in to comment.