Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+28
@@ -0,0 +1,28 @@
|
||||
import { build } from "esbuild";
|
||||
|
||||
const sourcemap = process.env.SOURCEMAP === "true" || process.env.BUILD_SOURCEMAPS === "true";
|
||||
|
||||
const externalBarePackagesPlugin = {
|
||||
name: "external-bare-packages",
|
||||
setup(builder) {
|
||||
builder.onResolve({ filter: /^[^./]|^\.[^./]|^\.\.[^/]/ }, (args) => {
|
||||
if (args.path.startsWith("@hivegrid/")) return undefined;
|
||||
return { path: args.path, external: true };
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
await build({
|
||||
entryPoints: ["src/index.ts", "src/deploy-health.ts"],
|
||||
outdir: "dist",
|
||||
bundle: true,
|
||||
platform: "node",
|
||||
format: "esm",
|
||||
target: "node24",
|
||||
sourcemap,
|
||||
banner: {
|
||||
js: 'import { createRequire as __hivegridCreateRequire } from "node:module"; const require = __hivegridCreateRequire(import.meta.url);',
|
||||
},
|
||||
logLevel: "warning",
|
||||
plugins: [externalBarePackagesPlugin],
|
||||
});
|
||||
Reference in new issue
Block a user