From 7370923bcb9ddbe6bf177df62333651d8cdbc9e4 Mon Sep 17 00:00:00 2001 From: Lucas Holmquist Date: Wed, 1 Feb 2023 10:38:44 -0500 Subject: [PATCH] chore: add the type property to the package.json. 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. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index ce31e98..87c59c3 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "author": "", "license": "Apache-2.0", "typings": "index.d.ts", + "type": "commonjs", "scripts": { "lint": "eslint --ignore-path .gitignore .", "lint:fix": "npm run lint -- --fix",