@html-validate/prettier-config 3.1.13 → 3.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1656,20 +1656,16 @@ var sortScripts = onObject((scripts, packageJson) => {
1656
1656
  return sortObjectByKeyNameList(scripts, names);
1657
1657
  });
1658
1658
  var sortConditions = (conditions) => {
1659
- const {
1660
- typesConditions = [],
1661
- defaultConditions = [],
1662
- restConditions = []
1663
- } = objectGroupBy(conditions, (condition) => {
1664
- if (condition === "types" || condition.startsWith("types@")) {
1665
- return "typesConditions";
1666
- }
1667
- if (condition === "default") {
1668
- return "defaultConditions";
1659
+ const { defaultConditions = [], restConditions = [] } = objectGroupBy(
1660
+ conditions,
1661
+ (condition) => {
1662
+ if (condition === "default") {
1663
+ return "defaultConditions";
1664
+ }
1665
+ return "restConditions";
1669
1666
  }
1670
- return "restConditions";
1671
- });
1672
- return [...typesConditions, ...restConditions, ...defaultConditions];
1667
+ );
1668
+ return [...restConditions, ...defaultConditions];
1673
1669
  };
1674
1670
  var sortExports = onObject((exports) => {
1675
1671
  const { paths = [], conditions = [] } = objectGroupBy(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@html-validate/prettier-config",
3
- "version": "3.1.13",
3
+ "version": "3.1.15",
4
4
  "description": "Prettier sharable config used by the various HTML-validate packages",
5
5
  "keywords": [
6
6
  "prettier"
@@ -27,7 +27,7 @@
27
27
  ],
28
28
  "dependencies": {
29
29
  "lint-staged": "16.2.7",
30
- "prettier": "3.8.0"
30
+ "prettier": "3.8.1"
31
31
  },
32
32
  "engines": {
33
33
  "node": ">= 20.18"