Add main field to package.json for backwards compatibiltiy

Fixes #536
This commit is contained in:
Sindre Sorhus 2022-03-09 01:42:04 +07:00
parent 4d5c4795ad
commit 85f7e96f75

View file

@ -6,6 +6,7 @@
"repository": "chalk/chalk", "repository": "chalk/chalk",
"funding": "https://github.com/chalk/chalk?sponsor=1", "funding": "https://github.com/chalk/chalk?sponsor=1",
"type": "module", "type": "module",
"main": "./source/index.js",
"exports": "./source/index.js", "exports": "./source/index.js",
"imports": { "imports": {
"#ansi-styles": "./source/vendor/ansi-styles/index.js", "#ansi-styles": "./source/vendor/ansi-styles/index.js",