@mnci/cli 3.0.1 → 4.0.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.
- package/dist/cli.js +18 -2
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1538,7 +1538,23 @@ var FORMATTED_LANGUAGES = [
|
|
|
1538
1538
|
"yaml",
|
|
1539
1539
|
"markdown",
|
|
1540
1540
|
"css",
|
|
1541
|
-
"html"
|
|
1541
|
+
"html",
|
|
1542
|
+
// TOML is here for PARSING, not formatting, and the distinction is measured
|
|
1543
|
+
// rather than assumed: `eslint --fix` leaves a badly-laid-out `.toml`
|
|
1544
|
+
// byte-identical (the TOML block is `flat/base`, parser only — `flat/standard`
|
|
1545
|
+
// reported six errors on the `pyproject.toml` mnci itself generates), but it
|
|
1546
|
+
// DOES report `Parsing error: ...` on a malformed one.
|
|
1547
|
+
//
|
|
1548
|
+
// So the entry buys two things. `eslint.validate` gains toml, so a broken
|
|
1549
|
+
// `pyproject.toml` is flagged in the editor rather than at the next CI run.
|
|
1550
|
+
// And pinning the formatter to ESLint means format-on-save does nothing to the
|
|
1551
|
+
// file instead of handing it to whichever TOML formatter the user happens to
|
|
1552
|
+
// have installed — the same reasoning as every other entry here: nothing
|
|
1553
|
+
// reformats against an opinion no gate checks.
|
|
1554
|
+
//
|
|
1555
|
+
// Impossible under the Prettier stack, which is why it is only here now:
|
|
1556
|
+
// `npx prettier` on a `.toml` exits with "No parser could be inferred".
|
|
1557
|
+
"toml"
|
|
1542
1558
|
];
|
|
1543
1559
|
function vscodeSettings() {
|
|
1544
1560
|
const formatter = "dbaeumer.vscode-eslint";
|
|
@@ -1685,7 +1701,7 @@ function poolBlock(agent) {
|
|
|
1685
1701
|
return /^(?:ubuntu|windows|macos)-/i.test(agent) ? ` vmImage: ${agent}` : ` name: ${agent}`;
|
|
1686
1702
|
}
|
|
1687
1703
|
function azurePipelinesYaml(agent, variableGroup, pythonPublishUrl2, registryKind = "azure-artifacts") {
|
|
1688
|
-
const onMain = "and(succeeded(),
|
|
1704
|
+
const onMain = "and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), eq(variables['Build.SourceBranchName'], 'main'))";
|
|
1689
1705
|
const [npmAuthName, npmAuthValue] = npmAuthEnvVariable(registryKind, (name) => `$(${name})`);
|
|
1690
1706
|
return `name: monorepo-ci-$(Date:yyyyMMdd)$(Rev:.r)
|
|
1691
1707
|
|