diff --git a/package.json b/package.json index 649a0c2d..1d0209bb 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,6 @@ "name": "@cypress/code-coverage", "version": "0.0.0-development", "description": "Saves the code coverage collected during Cypress tests", - "main": "index.js", "scripts": { "start": "parcel serve cypress/index.html", "coverage:verify": "npx nyc report --check-coverage true --lines 80", @@ -24,6 +23,24 @@ "cypress": "*", "webpack": "^4 || ^5" }, + "exports": { + "./common-utils": "./common-utils.js", + "./cypress-config": "./cypress-config.js", + "./middleware/express": "./middleware/express.js", + "./middleware/hapi": "./middleware/hapi.js", + "./middleware/nextjs": "./middleware/nextjs.js", + "./package.json": "./package.json", + "./plugins": "./plugins.js", + "./support-utils": "./support-utils.js", + "./support": "./support.js", + "./task-utils": "./task-utils.js", + "./task": { + "types": "./task.d.ts", + "default": "./task.js" + }, + "./use-babelrc": "./use-babelrc.js", + "./*.js": "./*.js" + }, "repository": { "type": "git", "url": "https://github.com/cypress-io/code-coverage.git"