update ava version, migrate to gacts/install-dnscontrol and use lockfiles

This commit is contained in:
dragsbruh committed 2026-07-26 18:53:24 +05:30
1 parent fb5e12dc36
commit a692aa1209
11 files changed
+1927 -43

No files matched your search

+9 -8
View File
@@ -1,8 +1,11 @@
const fs = require("fs");
const path = require("path");
import fs from "fs";
import path from "path";
const directoryPath = path.join(__dirname, "../domains");
const outputDir = path.join(__dirname, "../raw-api");
import internal from "./internal.json" with { type: "json" };
import reserved from "./reserved.json" with { type: "json" };
const directoryPath = "./domains";
const outputDir = "./raw-api";
const domainsOutputDir = path.join(outputDir, "v2", "domains");
if (!fs.existsSync(outputDir)) {
@@ -12,10 +15,6 @@ if (!fs.existsSync(domainsOutputDir)) {
fs.mkdirSync(domainsOutputDir, { recursive: true });
}
const internal = require(path.join(__dirname, "internal.json"));
const reserved = require(path.join(__dirname, "reserved.json"));
const v2 = [];
function writeDomainFile(entry) {
fs.writeFileSync(
path.join(domainsOutputDir, `${entry.subdomain}.json`),
@@ -23,6 +22,8 @@ function writeDomainFile(entry) {
);
}
const v2 = [];
for (const subdomain of internal) {
const entry = {
domain: `${subdomain}.is-a.dev`,