From f4dd597d32ea2b0ffa63ee44ab7806e9fe77062a Mon Sep 17 00:00:00 2001 From: Merlin Beutlberger Date: Mon, 13 Jun 2022 18:58:22 +0200 Subject: [PATCH] [INTERNAL] createBuildManifest: Require package.json relative Resolves depcheck issue for missing dependency to @ui5/project --- lib/buildHelpers/createBuildManifest.js | 2 +- test/lib/buildHelpers/createBuildManifest.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/buildHelpers/createBuildManifest.js b/lib/buildHelpers/createBuildManifest.js index 7f46915dd..784b4cb70 100644 --- a/lib/buildHelpers/createBuildManifest.js +++ b/lib/buildHelpers/createBuildManifest.js @@ -41,7 +41,7 @@ module.exports = async function(project, buildConfig) { timestamp: new Date().toISOString(), versions: { builderVersion: getVersion("@ui5/builder"), - projectVersion: getVersion("@ui5/project"), + projectVersion: getVersion("../../"), fsVersion: getVersion("@ui5/fs"), }, buildConfig, diff --git a/test/lib/buildHelpers/createBuildManifest.js b/test/lib/buildHelpers/createBuildManifest.js index c143a788e..1827fb419 100644 --- a/test/lib/buildHelpers/createBuildManifest.js +++ b/test/lib/buildHelpers/createBuildManifest.js @@ -71,7 +71,7 @@ test("Create application from project with build manifest", async (t) => { versions: { builderVersion: require("@ui5/builder/package.json").version, fsVersion: require("@ui5/fs/package.json").version, - projectVersion: require("@ui5/project/package.json").version, + projectVersion: require("../../../package.json").version, }, tags: { "/resources/id1/foo.js": { @@ -115,7 +115,7 @@ test("Create library from project with build manifest", async (t) => { versions: { builderVersion: require("@ui5/builder/package.json").version, fsVersion: require("@ui5/fs/package.json").version, - projectVersion: require("@ui5/project/package.json").version, + projectVersion: require("../../../package.json").version, }, tags: { "/resources/library/d/foo.js": {