mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-11 03:13:35 +00:00
update ava version, migrate to gacts/install-dnscontrol and use lockfiles
This commit is contained in:
1 parent
fb5e12dc36
commit
a692aa1209
11 files changed
+1927
-43
No files matched your search
+9
-8
@@ -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`,
|
||||
|
||||
Reference in new issue
Block a user