From 29e5c9f3f171ded717bac7d763c02cb87ea96fd7 Mon Sep 17 00:00:00 2001 From: Cecile Muller Date: Mon, 1 Feb 2021 11:56:29 +0100 Subject: [PATCH 1/2] fix: copy README to /package --- src/build.ts | 6 ++++++ test/postbuild.test.ts | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/src/build.ts b/src/build.ts index 1c046b2..cdc1a29 100644 --- a/src/build.ts +++ b/src/build.ts @@ -745,4 +745,10 @@ describe("Build", function () { join(folder, "icon.png") ); }); + it("README.md", async function () { + await copy( + join(__dirname, "README.md"), + join(folder, "README.md") + ); + }); }); diff --git a/test/postbuild.test.ts b/test/postbuild.test.ts index bd93efa..bf7bf51 100644 --- a/test/postbuild.test.ts +++ b/test/postbuild.test.ts @@ -57,4 +57,9 @@ describe("Postbuild", () => { const filepath = join(process.cwd(), "package/icon.png"); strictEqual(existsSync(filepath), true); }); + + it("/package/README.md", function () { + const filepath = join(process.cwd(), "package/README.md"); + strictEqual(existsSync(filepath), true); + }); }); From ecb9f5794fb84dfab00ebf55603f5ca04fd0b6f1 Mon Sep 17 00:00:00 2001 From: Cecile Muller Date: Mon, 1 Feb 2021 11:59:32 +0100 Subject: [PATCH 2/2] chore: fix path to README --- src/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build.ts b/src/build.ts index cdc1a29..41a6b8d 100644 --- a/src/build.ts +++ b/src/build.ts @@ -747,7 +747,7 @@ describe("Build", function () { }); it("README.md", async function () { await copy( - join(__dirname, "README.md"), + join(process.cwd(), "README.md"), join(folder, "README.md") ); });