Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add groups to package.json exports #369

Merged
merged 2 commits into from
Mar 5, 2024
Merged

Conversation

inulty-dfe
Copy link
Contributor

Fix bug that prevents exporting propertyGroups

Upgrading from v4.6.0 to v5.0.0

  • Changed .stylelintrc.js to .stylelintrc.mjs

From:

const propertyGroups = require("stylelint-config-recess-order/groups");

module.exports = {

To:

import propertyGroups from "stylelint-config-recess-order/groups";

export default {

Error:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './groups' is not defined by "exports" in /home/user/Code/app/node_modules/stylelint-config-recess-order/package.json imported from /home/user/Code/app/.stylelintrc.mjs

Solution

  "exports": {
    ".": "./index.js",
    "./groups": "./groups.js"
  },

  Fix bug that prevents exporting propertyGroups
Copy link

changeset-bot bot commented Mar 4, 2024

🦋 Changeset detected

Latest commit: a48b46f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
stylelint-config-recess-order Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@stormwarning stormwarning merged commit 58107ed into stormwarning:main Mar 5, 2024
@github-actions github-actions bot mentioned this pull request Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants