From 849a04e82abc6debfa989d9361ae6a314ca5fc3a Mon Sep 17 00:00:00 2001 From: Charlotte Som Date: Tue, 26 Nov 2024 14:30:55 +0000 Subject: [PATCH] switch to commonjs for pds script --- pds/{index.mjs => index.js} | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) rename pds/{index.mjs => index.js} (67%) diff --git a/pds/index.mjs b/pds/index.js similarity index 67% rename from pds/index.mjs rename to pds/index.js index fe43f2b..ab443e0 100644 --- a/pds/index.mjs +++ b/pds/index.js @@ -1,10 +1,12 @@ -import "dotenv/config"; +"use strict" -import { envStr } from "@atproto/common"; -import { PDS, envToCfg, envToSecrets, readEnv } from "@atproto/pds"; -import pkg from "@atproto/pds/package.json" with { type: "json" }; +require("dotenv").config(); -import process from "node:process"; +const { envStr } = require("@atproto/common"); +const { PDS, envToCfg, envToSecrets, readEnv } = require("@atproto/pds"); +const pkg = require("@atproto/pds/package.json"); + +const process = require("node:process") const main = async () => { const env = readEnv();