Skip to content

Commit

Permalink
fix(gatsby-plugin-image): Add missing files (#29185)
Browse files Browse the repository at this point in the history
* Add types for resolver utils

* Fix
  • Loading branch information
ascorbic committed Jan 25, 2021
1 parent d6ef721 commit 0ac0ac8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/gatsby-plugin-image/graphql-utils.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./dist/src/resolver-utils"
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-image/graphql-utils.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "./dist/resolver-utils"
module.exports = require("./dist/resolver-utils")
7 changes: 5 additions & 2 deletions packages/gatsby-plugin-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.7.0-next.0",
"scripts": {
"build": "npm-run-all -s clean -p build:*",
"build:gatsby-node": "tsc --jsx react --downlevelIteration true --skipLibCheck true --esModuleInterop true --outDir dist/ src/gatsby-node.ts src/babel-plugin-parse-static-images.ts src/resolver-utils.ts src/types.d.ts",
"build:gatsby-node": "tsc --jsx react --downlevelIteration true --skipLibCheck true --esModuleInterop true --outDir dist/ src/gatsby-node.ts src/babel-plugin-parse-static-images.ts src/resolver-utils.ts src/types.d.ts -d --declarationDir dist/src",
"build:gatsby-ssr": "microbundle -i src/gatsby-ssr.tsx -f cjs -o ./[name].js --no-pkg-main --jsx React.createElement --no-compress --external=common-tags,react --no-sourcemap",
"build:server": "microbundle -f cjs,es --jsx React.createElement --define SERVER=true",
"build:browser": "microbundle -i src/index.browser.ts -f cjs,modern,es --jsx React.createElement -o dist/gatsby-image.browser --define SERVER=false",
Expand Down Expand Up @@ -33,7 +33,10 @@
"files": [
"dist/*",
"gatsby-node.js",
"gatsby-ssr.js"
"gatsby-ssr.js",
"gatsby-browser.js",
"graphql-utils.js",
"graphql-utils.d.ts"
],
"types": "dist/src/index.d.ts",
"homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-image#readme",
Expand Down

0 comments on commit 0ac0ac8

Please sign in to comment.