Skip to content

Commit 9ae82b5

Browse files
authored
include declaration files in the cli build (#1293)
* declaration true * concrete type * changeset
1 parent 1c67085 commit 9ae82b5

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.changeset/late-geese-report.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphprotocol/graph-cli': minor
3+
---
4+
5+
Include declaration files

packages/cli/src/command-helpers/spinner.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ import { GluegunPrint, print } from 'gluegun';
22

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

5-
export const step = (spinner: Spinner, subject: string, text?: string) => {
5+
export const step: (spinner: Spinner, subject: string, text?: string) => Spinner = (
6+
spinner,
7+
subject,
8+
text,
9+
) => {
610
if (text) {
711
spinner.stopAndPersist({
812
text: print.colors.muted(`${subject} ${text}`),

packages/cli/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"esModuleInterop": true,
1111
"forceConsistentCasingInFileNames": true,
1212
"useUnknownInCatchVariables": false,
13-
"declaration": false,
13+
"declaration": true,
1414
"skipLibCheck": true,
1515
"allowJs": true
1616
},

0 commit comments

Comments
 (0)