@pob/root 27.17.0 → 28.1.0

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.
@@ -74,7 +74,8 @@ const hasOxlint = fs.existsSync(path.resolve(".oxlintrc.json"));
74
74
  const isOxlintSupportedFile = (filename) =>
75
75
  /\.[cm]?[jt]sx?$/.test(filename) && !filename.endsWith(".d.ts");
76
76
 
77
- const CODE_COMMANDS = [OXFMT, hasOxlint && OXLINT_FIX, ESLINT_FIX].filter(
77
+ // oxfmt runs after the linters, as their fixes are not formatted.
78
+ const CODE_COMMANDS = [hasOxlint && OXLINT_FIX, ESLINT_FIX, OXFMT].filter(
78
79
  Boolean,
79
80
  );
80
81
 
@@ -172,10 +173,10 @@ const createLegacyConfig = ({
172
173
  return [
173
174
  ...installAndDedupe,
174
175
  pkg.scripts?.checks ? `${pm.name} run checks` : undefined,
176
+ ESLINT_FIX,
175
177
  packagejsonFilenames.length === 0
176
178
  ? undefined
177
179
  : withFilenames("oxfmt", packagejsonFilenames),
178
- ESLINT_FIX,
179
180
  getGitAddPmFilesCommand(),
180
181
  ].filter(Boolean);
181
182
  },
@@ -266,9 +267,10 @@ const createConfig = ({
266
267
  return [
267
268
  ...(hasPmFiles ? installAndDedupe : []),
268
269
  hasPmFiles && pkg.scripts?.checks ? `${pm.name} run checks` : undefined,
269
- withFilenamesOrWholeProject(OXFMT, filenames),
270
270
  getOxlintCommand(),
271
271
  getEslintCommand(),
272
+ // after the linters, as their fixes are not formatted
273
+ withFilenamesOrWholeProject(OXFMT, filenames),
272
274
  hasPmFiles ? getGitAddPmFilesCommand() : undefined,
273
275
  // after the tasks above, so that the build sees the formatted and
274
276
  // fixed files
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/root",
3
- "version": "27.17.0",
3
+ "version": "28.1.0",
4
4
  "description": "root package",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/christophehurpeau/pob",
@@ -66,7 +66,7 @@
66
66
  "@commitlint/format": "21.2.3",
67
67
  "@commitlint/lint": "21.2.3",
68
68
  "@commitlint/types": "21.2.3",
69
- "@pob/version": "7.1.0",
69
+ "@pob/version": "8.1.0",
70
70
  "conventional-changelog-conventionalcommits": "^10.0.0",
71
71
  "conventional-changelog-writer": "^9.0.0",
72
72
  "conventional-commits-parser": "^7.0.0",
@@ -76,7 +76,7 @@
76
76
  "oxlint": "1.85.0",
77
77
  "oxlint-tsgolint": "7.0.2003",
78
78
  "picomatch": "^4.0.7",
79
- "pob-dependencies": "27.14.0",
79
+ "pob-dependencies": "28.1.0",
80
80
  "semver": "^7.7.3"
81
81
  },
82
82
  "engines": {