Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Commit

Permalink
Explicitly mark all packages with commonjs type
Browse files Browse the repository at this point in the history
See: https://nodejs.org/api/packages.html#packages_determining_module_system

> Package authors should include the "type" field, even in packages where all sources are CommonJS. Being explicit about the type of the package will future-proof the package in case the default type of Node.js ever changes, and it will also make things easier for build tools and loaders to determine how the files in the package should be interpreted.

Related issue: adeira/universe#2341

adeira-source-id: 7288ec22447e6de87afa3b2c0d510eb52772ecb3
  • Loading branch information
mrtnzlml authored and adeira-github-bot committed May 21, 2021
1 parent 98b57a6 commit 6f1cbf9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"license": "MIT",
"version": "2.1.0",
"main": "./src/fetchWithRetries.js",
"type": "commonjs",
"sideEffects": false,
"homepage": "https://github.com/adeira/universe/tree/master/src/fetch",
"description": "Production ready fetch function with advanced capabilities like retries with delay and request cancellation after timeout.",
Expand Down

0 comments on commit 6f1cbf9

Please sign in to comment.