From 2dcfcc339a374de613a68af34d2d1c1a2414a6c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Zl=C3=A1mal?= Date: Fri, 21 May 2021 09:25:11 -0500 Subject: [PATCH] Explicitly mark all packages with `commonjs` type 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: https://github.com/adeira/universe/issues/2341 adeira-source-id: 7288ec22447e6de87afa3b2c0d510eb52772ecb3 --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 1f44d44..8b55a03 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "private": false, "version": "3.2.4", "main": "./src/index.js", + "type": "commonjs", "sideEffects": false, "homepage": "https://github.com/adeira/universe/tree/master/src/relay", "description": "Opinionated wrapper around Relay - a JavaScript framework for building data-driven React applications",