Skip to content

Commit

Permalink
Set dts resolve to false
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins committed Jun 5, 2024
1 parent f194fe9 commit dd1714f
Show file tree
Hide file tree
Showing 5 changed files with 315 additions and 5 deletions.
311 changes: 311 additions & 0 deletions dist/index.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/ids-host.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
recordToUrl,
weightedRandom,
} from "./ids-host.js";
import { SrvRecord } from "node:dns";
import type { SrvRecord } from "node:dns";
import { assert, describe, expect, test } from "vitest";

function mkRecord(
Expand Down
3 changes: 1 addition & 2 deletions src/ids-host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import { stringifyError } from "./errors.js";
import * as actionsCore from "@actions/core";
import got, { Got } from "got";
import { SrvRecord } from "node:dns";
import type { SrvRecord } from "node:dns";
import { resolveSrv } from "node:dns/promises";

const DEFAULT_LOOKUP = "_detsys_ids._tcp.install.determinate.systems.";
Expand All @@ -27,7 +27,6 @@ export class IdsHost {
private diagnosticsSuffix?: string;
private runtimeDiagnosticsUrl?: string;
private prioritizedURLs?: URL[];
private records?: SrvRecord[];
private client?: Got;

constructor(
Expand Down
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export default defineConfig({
sourcemap: true,
clean: true,
dts: {
resolve: true,
resolve: false,
},
});

0 comments on commit dd1714f

Please sign in to comment.