Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix(package.json): Corrected main file path in package.json #1274

Merged
merged 9 commits into from Sep 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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);
}
};