Skip to content

Commit

Permalink
include declaration files in the cli build (#1293)
Browse files Browse the repository at this point in the history
* declaration true

* concrete type

* changeset
  • Loading branch information
enisdenjo authored Apr 13, 2023
1 parent 1c67085 commit 9ae82b5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/late-geese-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphprotocol/graph-cli': minor
---

Include declaration files
6 changes: 5 additions & 1 deletion packages/cli/src/command-helpers/spinner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ import { GluegunPrint, print } from 'gluegun';

export type Spinner = ReturnType<GluegunPrint['spin']>;

export const step = (spinner: Spinner, subject: string, text?: string) => {
export const step: (spinner: Spinner, subject: string, text?: string) => Spinner = (
spinner,
subject,
text,
) => {
if (text) {
spinner.stopAndPersist({
text: print.colors.muted(`${subject} ${text}`),
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"useUnknownInCatchVariables": false,
"declaration": false,
"declaration": true,
"skipLibCheck": true,
"allowJs": true
},
Expand Down

0 comments on commit 9ae82b5

Please sign in to comment.