From aaf17bf5038c9f91a5800abe38c8909156ac0945 Mon Sep 17 00:00:00 2001 From: rich Date: Fri, 13 Sep 2024 11:26:49 +0100 Subject: [PATCH] Fix broken paths I broke these in #31 --- index.js | 2 +- package.json | 2 +- utils/githubApi/fetchAllRepos.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index cf340f8..07af5d1 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ import { createServer } from "http"; import nunjucks from "nunjucks"; -import { getReposFromJson, mapRepoFromStorageToUi } from "./utils.js"; +import { getReposFromJson, mapRepoFromStorageToUi } from "./utils/index.js"; import { OctokitApp } from "./octokitApp.js"; nunjucks.configure({ diff --git a/package.json b/package.json index e103676..0de63f5 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "lint": "eslint .", "lint:fix": "eslint . --fix", "format": "prettier --write .", - "seed": "node --env-file=.env ./dataScripts/fetchAllRepos.js" + "seed": "node --env-file=.env ./utils/githubApi/fetchAllRepos.js" }, "author": "dxw", "license": "MIT", diff --git a/utils/githubApi/fetchAllRepos.js b/utils/githubApi/fetchAllRepos.js index 2b4e7af..70d9ace 100644 --- a/utils/githubApi/fetchAllRepos.js +++ b/utils/githubApi/fetchAllRepos.js @@ -1,6 +1,6 @@ import { OctokitApp } from "../../octokitApp.js"; import { writeFile, mkdir } from "fs/promises"; -import { mapRepoFromApiForStorage } from "../utils.js"; +import { mapRepoFromApiForStorage } from "../index.js"; import path from "path"; import { getDependenciesForRepo,