Skip to content

Commit ce79cd6

Browse files
committed
Update action related deps
1 parent 88a1ce8 commit ce79cd6

8 files changed

Lines changed: 5989 additions & 6476 deletions

File tree

‎.ncurc.cjs‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
module.exports = {
22
target: (dependencyName, [{ semver, version, operator, major, minor, patch, release, build }]) => {
3-
if (dependencyName === "@actions/http-client") return "patch"; // bloated via undici
4-
if (dependencyName === "semver") return "patch"; // Matching dep from @actions/*
5-
if (dependencyName === "@types/semver") return "patch"; // Matching dep from @actions/*
3+
if (dependencyName === "semver") return "minor"; // Matching dep from @actions/*
4+
if (dependencyName === "@types/semver") return "minor"; // Matching dep from @actions/*
65
if (dependencyName === "@types/node") return "minor";
76
if (dependencyName === "eslint") return "minor";
87
if (dependencyName === "@eslint/js") return "minor";
9-
if (dependencyName.startsWith("@actions/")) return "patch";
108
if (major === "0") return "minor";
119
return "latest";
1210
},

‎build.mjs‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import esbuild from "esbuild";
2+
3+
await esbuild.build({
4+
logLevel: "info",
5+
entryPoints: ["src/index.ts"],
6+
bundle: true,
7+
outfile: "dist/index.js",
8+
platform: "node",
9+
target: "node24",
10+
mainFields: ["module", "main"],
11+
plugins: [
12+
{
13+
name: "replace-undici",
14+
setup(build) {
15+
build.onLoad({ filter: /undici\/index.js$/ }, () => {
16+
return {
17+
contents: "module.exports = {}",
18+
};
19+
});
20+
},
21+
},
22+
],
23+
});

0 commit comments

Comments
 (0)