Skip to content

Commit 96342d9

Browse files
committed
Release 4.56.0
1 parent c7dca6a commit 96342d9

File tree

7 files changed

+2459
-2453
lines changed

7 files changed

+2459
-2453
lines changed

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
"description": "Tired of pushing to test your .gitlab-ci.yml?",
55
"main": "src/index.js",
66
"bin": "src/index.js",
7-
"version": "4.55.0",
7+
"version": "4.56.0",
88
"scripts": {
99
"esbuild": "esbuild src/index.ts --outfile=bin/index.cjs --bundle --platform=node --format=cjs --minify --external:yargs --external:re2 --sourcemap=inline",
10-
"pkg-linux": "npx tsx scripts/install-re2-bin.ts --platform linux --platform-arch=x64 && pkg bin/index.cjs --public --options=enable-source-maps --no-bytecode -t node20-linux-x64 -o bin/linux/gitlab-ci-local && chmod +x bin/linux/gitlab-ci-local && gzip -c bin/linux/gitlab-ci-local > bin/linux.gz",
11-
"pkg-macos": "npx tsx scripts/install-re2-bin.ts --platform darwin --platform-arch=x64 && pkg bin/index.cjs --public --options=enable-source-maps --no-bytecode -t node20-macos-x64 -o bin/macos/gitlab-ci-local && gzip -c bin/macos/gitlab-ci-local > bin/macos.gz",
12-
"pkg-win": "npx tsx scripts/install-re2-bin.ts --platform win32 --platform-arch=x64 && pkg bin/index.cjs --public --options=enable-source-maps --no-bytecode -t node20-win-x64 -o bin/win/gitlab-ci-local && gzip -c bin/win/gitlab-ci-local.exe > bin/win.gz",
10+
"pkg-linux": "npx tsx scripts/install-re2-bin.ts --platform linux --platform-arch=x64 && pkg bin/index.cjs --public --options=enable-source-maps --no-bytecode -t linux-x64 -o bin/linux/gitlab-ci-local && chmod +x bin/linux/gitlab-ci-local && gzip -c bin/linux/gitlab-ci-local > bin/linux.gz",
11+
"pkg-macos": "npx tsx scripts/install-re2-bin.ts --platform darwin --platform-arch=x64 && pkg bin/index.cjs --public --options=enable-source-maps --no-bytecode -t macos-x64 -o bin/macos/gitlab-ci-local && gzip -c bin/macos/gitlab-ci-local > bin/macos.gz",
12+
"pkg-win": "npx tsx scripts/install-re2-bin.ts --platform win32 --platform-arch=x64 && pkg bin/index.cjs --public --options=enable-source-maps --no-bytecode -t win-x64 -o bin/win/gitlab-ci-local && gzip -c bin/win/gitlab-ci-local.exe > bin/win.gz",
1313
"pkg-all": "npm run pkg-linux && npm run pkg-macos && npm run pkg-win && npm ci",
1414
"cleanup": "git clean -fX tests/ && git clean -fX src/",
1515
"build": " npm run cleanup && tsc",
@@ -25,7 +25,7 @@
2525
},
2626
"dependencies": {
2727
"ajv": "8.x.x",
28-
"axios": "^1.7.7",
28+
"axios": "1.x.x",
2929
"base64url": "3.x.x",
3030
"camelcase": "6.x.x",
3131
"chalk": "4.x.x",
@@ -36,8 +36,8 @@
3636
"fs-extra": "11.x.x",
3737
"globby": "11.x.x",
3838
"js-yaml": "4.x.x",
39-
"jsonpointer": "^5.0.1",
40-
"micromatch": "^4.0.7",
39+
"jsonpointer": "5.x.x",
40+
"micromatch": "4.x.x",
4141
"object-traversal": "1.x.x",
4242
"p-map": "4.x.x",
4343
"pretty-hrtime": "1.x.x",
@@ -54,7 +54,7 @@
5454
"@types/fs-extra": "11.x.x",
5555
"@types/jest-when": "3.x.x",
5656
"@types/js-yaml": "4.x.x",
57-
"@types/micromatch": "^4.0.7",
57+
"@types/micromatch": "4.x.x",
5858
"@types/node": "22.x",
5959
"@types/pretty-hrtime": "1.x.x",
6060
"@types/split2": "4.x.x",
@@ -64,13 +64,13 @@
6464
"@yao-pkg/pkg": "^6.0.0",
6565
"axios-mock-adapter": "2.x",
6666
"depcheck": "1.x.x",
67-
"esbuild": "^0.24.0",
67+
"esbuild": "0.24.x",
6868
"eslint": "8.x.x",
6969
"jest": "29.x.x",
7070
"jest-when": "3.x.x",
71-
"nodemon": "^3.1.1",
71+
"nodemon": "3.x.x",
7272
"ts-jest": "29.x.x",
73-
"tsx": "^4.19.1",
73+
"tsx": "4.x.x",
7474
"typescript": "5.x.x"
7575
},
7676
"engines": {
@@ -79,7 +79,7 @@
7979
"pkg": {
8080
"assets": [
8181
"package.json",
82-
"src/schema/schema.json"
82+
"**/src/schema/schema.json"
8383
],
8484
"scripts": [
8585
"src/**/*.js"

scripts/install-re2-bin.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,15 @@ const main = async () => {
5555
choices: ["x64", "arm64"],
5656
demandOption: true,
5757
})
58+
.option("platformABI", {
59+
type: "string",
60+
choices: ["127", "115"],
61+
default: "127",
62+
demandOption: true,
63+
})
5864
.argv;
5965

60-
const {platform, platformArch} = argv;
61-
const platformABI = process.versions.modules;
66+
const {platform, platformArch, platformABI} = argv;
6267
const re2Version = JSON.parse(fs.readFileSync("./node_modules/re2/package.json", "utf8")).version;
6368
const url = `https://github.com/uhop/node-re2/releases/download/${re2Version}/${platform}-${platformArch}-${platformABI}.gz`;
6469

src/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env node
22
import chalk from "chalk";
3-
import {readFileSync} from "fs";
43
import yargs from "yargs";
54
import {Parser} from "./parser.js";
65
import * as state from "./state.js";
@@ -14,8 +13,6 @@ import {GitlabRunnerPresetValues} from "./gitlab-preset.js";
1413

1514
const jobs: Job[] = [];
1615

17-
const version = JSON.parse(readFileSync("package.json", "utf8"))["version"];
18-
1916
process.on("SIGINT", async (_: string, code: number) => {
2017
await cleanupJobResources(jobs);
2118
process.exit(code);
@@ -28,7 +25,7 @@ process.on("SIGUSR2", async () => await cleanupJobResources(jobs));
2825
const yparser = yargs(process.argv.slice(2));
2926
yparser.parserConfiguration({"greedy-arrays": false})
3027
.showHelpOnFail(false)
31-
.version(version)
28+
.version("4.56.0")
3229
.wrap(yparser.terminalWidth?.())
3330
.command({
3431
handler: async (argv) => {

src/schema/index.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
import {readFileSync} from "fs";
2-
const schema: any = JSON.parse(readFileSync("src/schema/schema.json", "utf8"));
1+
/* eslint-disable @typescript-eslint/ban-ts-comment */
2+
import {schema} from "./schema.js";
3+
4+
// @ts-ignore
35
schema.definitions.job_template.properties.gclInjectSSHAgent = {
46
"type": "boolean",
57
};
8+
// @ts-ignore
69
schema.definitions.job_template.properties.gclInteractive = {
710
"type": "boolean",
811
};
12+
// @ts-ignore
913
schema.definitions.job_template.properties.gclArtifactsToSource = {
1014
"type": "boolean",
1115
};
12-
16+
// @ts-ignore
1317
schema.definitions.job_template.properties.gclDescription = {
1418
"type": "string",
1519
};

0 commit comments

Comments
 (0)