@mnci/cli 1.15.5 → 1.15.6
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 +2 -2
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -890,7 +890,7 @@ function addVendorEntry(pyprojectToml, lib) {
|
|
|
890
890
|
if (existing.length > 0) {
|
|
891
891
|
const merged = [...existing, lib].map((name) => `"${name}"`).join(", ");
|
|
892
892
|
return pyprojectToml.replace(
|
|
893
|
-
/^(\s*vendor\s*=\s*)\[
|
|
893
|
+
/^(\s*vendor\s*=\s*)\[[^\]]*\]/m,
|
|
894
894
|
(_match, prefix) => `${prefix}[${merged}]`
|
|
895
895
|
);
|
|
896
896
|
}
|
|
@@ -1519,7 +1519,7 @@ function npmAuthEnvVariable(registryKind, variableReference) {
|
|
|
1519
1519
|
return registryKind === "npm" ? ["NODE_AUTH_TOKEN", variableReference("NPM_TOKEN")] : ["PAT", variableReference("PAT")];
|
|
1520
1520
|
}
|
|
1521
1521
|
function poolBlock(agent) {
|
|
1522
|
-
return /^(ubuntu|windows|macos)-/i.test(agent) ? ` vmImage: ${agent}` : ` name: ${agent}`;
|
|
1522
|
+
return /^(?:ubuntu|windows|macos)-/i.test(agent) ? ` vmImage: ${agent}` : ` name: ${agent}`;
|
|
1523
1523
|
}
|
|
1524
1524
|
function azurePipelinesYaml(agent, variableGroup, pythonPublishUrl2, registryKind = "azure-artifacts") {
|
|
1525
1525
|
const onMain = `and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranchName'], 'main'))`;
|