From b60cbb027b03b4f6d509933b0dca8681dbe47206 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Tue, 2 Jan 2024 15:08:16 -0700 Subject: [PATCH] fix: update legacy entry point --- CONTRIBUTING.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b0744dac2..0fc7ccca4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,7 +21,7 @@ pnpm link ../eslint-plugin-jsdoc ## Building the project After running `pnpm install` to get the latest dependencies and devDependencies, -you can run the following command to update the `dist` files, with `dist/index.js` +you can run the following command to update the `dist` files, with `dist/index.cjs` being the `main` entry point from `package.json`: ```shell diff --git a/package.json b/package.json index 989b2315d..d6ba23df8 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "*.js": "npm run lint-arg -- --fix" }, "type": "module", - "main": "./dist/index.js", + "main": "./dist/index.cjs", "types": "./dist/index.d.ts", "exports": { "types": "./dist/index.d.ts",