Skip to content

Commit

Permalink
Add relative file prefixes to the exports, following up on #270.
Browse files Browse the repository at this point in the history
Fixes 'Error [ERR_INVALID_PACKAGE_TARGET]: Invalid "exports" main target
"dist/index.js"'
  • Loading branch information
abernix committed Mar 10, 2021
1 parent cbe0055 commit f7d7cea
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
7 changes: 6 additions & 1 deletion gateway-js/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
- _Nothing yet! Stay tuned!_

## v0.21.1
## v0.24.3

- deps: `@apollo/query-planner-wasm`: Fix an error caused by a lacking relatively prefix on the items in `exports`, following up [PR #270](https://github.com/apollographql/federation/pull/270)

## v0.24.2
## v0.24.1

- Re-publish with adjustment to `lerna.json` to ensure that the newly-introduced `@apollo/query-planner` package (which wraps `@apollo/query-planner-wasm`) is published by the release pipeline. This is important because `@apollo/gateway` now depends on `@apollo/query-planner` as of [PR #453](https://github.com/apollographql/federation/pull/453)

Expand Down
6 changes: 5 additions & 1 deletion query-planner-wasm/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

> The changes noted within this `vNEXT` section have not been released yet. New PRs and commits which introduce changes should include an entry in this `vNEXT` section as part of their development. When a release is being prepared, a new header will be (manually) created below and the appropriate changes within that release will be moved into the new section.
- _Nothing yet! Stay tuned!_
- _Nothing yet! Stay tuned!_

## v0.2.2

- Fix an error caused by a lacking relatively prefix on the items in `exports`, following up [PR #270](https://github.com/ap ollographql/federation/pull/270)

## v0.2.0

Expand Down
4 changes: 2 additions & 2 deletions query-planner-wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
],
"main": "dist/index.js",
"exports": {
"require": "dist/index.js",
"import": "module/index.js"
"require": "./dist/index.js",
"import": "./module/index.js"
},
"types": "dist/index.d.ts"
}

0 comments on commit f7d7cea

Please sign in to comment.