Add rushx support too

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
James McMeeking 2026-05-01 17:04:28 +01:00
parent 5cf2ffe201
commit 98a1ba7d10
No known key found for this signature in database
GPG key ID: C69A11061EE15228
16 changed files with 101 additions and 27 deletions

View file

@ -54,6 +54,12 @@ export const knownAikidoTools = [
ecoSystem: ECOSYSTEM_JS,
internalPackageManagerName: "rush",
},
{
tool: "rushx",
aikidoCommand: "aikido-rushx",
ecoSystem: ECOSYSTEM_JS,
internalPackageManagerName: "rushx",
},
{
tool: "bun",
aikidoCommand: "aikido-bun",

View file

@ -48,9 +48,8 @@ describe("Setup CI shell integration", () => {
knownAikidoTools: [
{ tool: "npm", aikidoCommand: "aikido-npm" },
{ tool: "yarn", aikidoCommand: "aikido-yarn" },
{ tool: "rush", aikidoCommand: "aikido-rush" },
],
getPackageManagerList: () => "npm, yarn, rush",
getPackageManagerList: () => "npm, yarn",
},
});
@ -108,10 +107,6 @@ describe("Setup CI shell integration", () => {
const yarnShimPath = path.join(mockShimsDir, "yarn");
assert.ok(fs.existsSync(yarnShimPath), "yarn shim should exist");
// Check if rush shim was created
const rushShimPath = path.join(mockShimsDir, "rush");
assert.ok(fs.existsSync(rushShimPath), "rush shim should exist");
// Check content of npm shim
const npmShimContent = fs.readFileSync(npmShimPath, "utf-8");
assert.ok(npmShimContent.includes("aikido-npm"), "npm shim should contain aikido-npm");
@ -138,9 +133,6 @@ describe("Setup CI shell integration", () => {
const yarnShimPath = path.join(mockShimsDir, "yarn.cmd");
assert.ok(fs.existsSync(yarnShimPath), "yarn.cmd shim should exist");
const rushShimPath = path.join(mockShimsDir, "rush.cmd");
assert.ok(fs.existsSync(rushShimPath), "rush.cmd shim should exist");
// Check content of npm.cmd shim
const npmShimContent = fs.readFileSync(npmShimPath, "utf-8");
assert.ok(npmShimContent.includes("aikido-npm"), "npm.cmd should contain aikido-npm");

View file

@ -19,6 +19,14 @@ function pnpx
wrapSafeChainCommand "pnpx" $argv
end
function rush
wrapSafeChainCommand "rush" $argv
end
function rushx
wrapSafeChainCommand "rushx" $argv
end
function bun
wrapSafeChainCommand "bun" $argv
end

View file

@ -28,6 +28,14 @@ function pnpx() {
wrapSafeChainCommand "pnpx" "$@"
}
function rush() {
wrapSafeChainCommand "rush" "$@"
}
function rushx() {
wrapSafeChainCommand "rushx" "$@"
}
function bun() {
wrapSafeChainCommand "bun" "$@"
}

View file

@ -22,6 +22,14 @@ function pnpx {
Invoke-WrappedCommand "pnpx" $args $MyInvocation.Line $MyInvocation.OffsetInLine
}
function rush {
Invoke-WrappedCommand "rush" $args $MyInvocation.Line $MyInvocation.OffsetInLine
}
function rushx {
Invoke-WrappedCommand "rushx" $args $MyInvocation.Line $MyInvocation.OffsetInLine
}
function bun {
Invoke-WrappedCommand "bun" $args $MyInvocation.Line $MyInvocation.OffsetInLine
}