From 1aab0b7d338418d1500528855d68f48dc10b329f Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Tue, 20 Dec 2022 10:56:33 +0000 Subject: [PATCH] Fix empty dist folder in npm pacakge (#9125) Use a .npmignore file instead of the files property of package.json A bug in lerna seems to use the generated dist/package.json instead of the root file when determining files to add, resulting in an empty directory. Related: https://stackoverflow.com/questions/54912262/lerna-publish-and-npm-pack-failing-to-package-all-the-files-in-dist-folder --- packages/backend-core/.npmignore | 2 ++ packages/backend-core/package.json | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 packages/backend-core/.npmignore diff --git a/packages/backend-core/.npmignore b/packages/backend-core/.npmignore new file mode 100644 index 0000000000..ad6609ce51 --- /dev/null +++ b/packages/backend-core/.npmignore @@ -0,0 +1,2 @@ +* +!dist/* \ No newline at end of file diff --git a/packages/backend-core/package.json b/packages/backend-core/package.json index 6a8bd0499f..a64a159de3 100644 --- a/packages/backend-core/package.json +++ b/packages/backend-core/package.json @@ -1,8 +1,5 @@ { "name": "@budibase/backend-core", - "files": [ - "dist" - ], "version": "2.2.10-alpha.2", "description": "Budibase backend core libraries used in server and worker", "main": "dist/src/index.js",