stormwarning / stylelint-config-recess-order

🗂️ Recess-based property sort order for Stylelint.
ISC License
354 stars 22 forks source link

Add groups to package.json exports #369

Closed inulty-dfe closed 8 months ago

inulty-dfe commented 8 months ago

Fix bug that prevents exporting propertyGroups

Upgrading from v4.6.0 to v5.0.0

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"
  },
changeset-bot[bot] commented 8 months ago

🦋 Changeset detected

Latest commit: a48b46fd219b35fdf6ee7f4175df9f58ca516566

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