Skip to content

Commit ed4619d

Browse files
committed
include new types files in npm package
1 parent ae93976 commit ed4619d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/gatsby/.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@
1010
# Gatsby specific
1111
!gatsby-browser.js
1212
!gatsby-node.js
13+
!gatsby-browser.d.ts
14+
!gatsby-node.d.ts

packages/gatsby/scripts/prepack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import * as fs from 'fs';
77
import * as path from 'path';
88

9-
const PACKAGE_ASSETS = ['gatsby-browser.js', 'gatsby-node.js'];
9+
const PACKAGE_ASSETS = ['gatsby-browser.js', 'gatsby-browser.d.ts', 'gatsby-node.js', 'gatsby-node.d.ts'];
1010

1111
export function prepack(buildDir: string): boolean {
1212
// copy package-specific assets to build dir

0 commit comments

Comments
 (0)