From dd9e30f8a1bf68aff23aaef775f5748c700c75e9 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Mon, 31 Jan 2022 18:23:53 +0100 Subject: [PATCH] build: fix package linking --- tools/link-package.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/link-package.js b/tools/link-package.js index d125d394..a305a9e2 100644 --- a/tools/link-package.js +++ b/tools/link-package.js @@ -7,7 +7,7 @@ import path from "node:path"; import yargs from "yargs"; import { hideBin } from "yargs/helpers"; -import { destinationDirectory, distDirectory, foundryconfigFile, name, sourceDirectory } from "./const.js"; +import { destinationDirectory, distDirectory, foundryconfigFile, name } from "./const.js"; /** * Get the data path of Foundry VTT based on what is configured in the {@link foundryconfigFile}. @@ -29,7 +29,7 @@ function getDataPath() { * @param {boolean} clean Whether to remove the link instead of creating it */ async function linkPackage(clean) { - if (!fs.existsSync(path.resolve(sourceDirectory, "system.json"))) { + if (!fs.existsSync(path.resolve("system.json"))) { throw new Error("Could not find system.json"); }