Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/cli-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ concurrency:
jobs:
ci:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: ["22.13.0", "24"]
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v4
Expand All @@ -22,7 +26,7 @@ jobs:
- name: 🪢 Set up Node
uses: actions/setup-node@v4
with:
node-version: "24"
node-version: ${{ matrix.node-version }}
cache-dependency-path: "./pnpm-lock.yaml"
cache: "pnpm"

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"gm-cli": "dist/cli.js"
},
"engines": {
"node": ">=24"
"node": ">=22.13.0"
},
"scripts": {
"prebuild": "tsc -p tsconfig.json",
Expand Down Expand Up @@ -72,4 +72,4 @@
"tiny-open": "^1.2.0",
"zod": "^4.3.6"
}
}
}
2 changes: 1 addition & 1 deletion src/gm-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export async function readGmOptions(
gmOptions = parseResults.options;
} else {
throw new KnownError(
"Failed to parse 'gm-options.json file. Errors:\n{parseResults.error}",
`Failed to parse 'gm-options.json file. Errors:\n${parseResults.error}`,
);
}

Expand Down
10 changes: 10 additions & 0 deletions src/gms2/use-gms2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,16 @@ export async function useGms2(
);
igorAction = action;
extraArgs = ["-tf", targetFile, ...packageArgs];

// Igor uses the build cache output directory for intermediate package files.
// Clear those intermediates before every package operation so a previous
// package with a different output name cannot leave a file that Igor tries
// to move again. See https://github.com/YoYoGames/gm-cli/issues/243.
await ctx.fs.rm(ctx.path.join(buildCacheDir, "output"), {
recursive: true,
force: true,
});

successMessage = `Package created: ${targetFile}`;
}

Expand Down