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",