Skip to content

Commit

Permalink
Fix(package.json): Corrected main file path in package.json (#1274)
Browse files Browse the repository at this point in the history
* fix main configuration in package.json
* pinned a breaking change in codecov & teeny-request
  • Loading branch information
jimmywarting committed Sep 6, 2021
1 parent b5e2e41 commit 152214c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,11 @@ Changelog

# 2.x release

## v2.6.2

- Fix: used full filename for main in package.json
- Other: pinned codecov & teeny-request (had one breaking change with spread operators)

## v2.6.1

**This is an important security release. It is strongly recommended to update as soon as possible.**
Expand Down
10 changes: 5 additions & 5 deletions package.json
@@ -1,8 +1,8 @@
{
"name": "node-fetch",
"version": "2.6.1",
"version": "2.6.2",
"description": "A light-weight module that brings window.fetch to node.js",
"main": "lib/index",
"main": "lib/index.js",
"browser": "./browser.js",
"module": "lib/index.mjs",
"files": [
Expand Down Expand Up @@ -48,7 +48,7 @@
"chai-as-promised": "^7.1.1",
"chai-iterator": "^1.1.1",
"chai-string": "~1.3.0",
"codecov": "^3.3.0",
"codecov": "3.3.0",
"cross-env": "^5.2.0",
"form-data": "^2.3.3",
"is-builtin-module": "^1.0.0",
Expand All @@ -60,7 +60,7 @@
"rollup": "^0.63.4",
"rollup-plugin-babel": "^3.0.7",
"string-to-arraybuffer": "^1.0.2",
"teeny-request": "3.7.0",
"whatwg-url": "^5.0.0"
},
"dependencies": {}
}
}
6 changes: 1 addition & 5 deletions rollup.config.js
Expand Up @@ -18,10 +18,6 @@ export default {
tweakDefault()
],
external: function (id) {
if (isBuiltin(id)) {
return true;
}
id = id.split('/').slice(0, id[0] === '@' ? 2 : 1).join('/');
return !!require('./package.json').dependencies[id];
return isBuiltin(id);
}
};

0 comments on commit 152214c

Please sign in to comment.