From d2537deed533a39f39e312a1dfcfbd048e1d83e5 Mon Sep 17 00:00:00 2001 From: Benjamin Goering <171782+gobengo@users.noreply.github.com> Date: Wed, 25 Oct 2023 11:19:58 -0700 Subject: [PATCH] fix: package.json files excludes 'src' and includes .js and .js.map in dist for packages that now export their module from dist (#1012) Motivation: * https://github.com/web3-storage/w3up/pull/1004/files#r1372070039 --- packages/access-client/package.json | 3 ++- packages/filecoin-client/package.json | 3 ++- packages/upload-client/package.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/access-client/package.json b/packages/access-client/package.json index 7f277cf08..50591ca33 100644 --- a/packages/access-client/package.json +++ b/packages/access-client/package.json @@ -52,7 +52,8 @@ } }, "files": [ - "src", + "dist/src/**/*.js", + "dist/src/**/*.js.map", "dist/src/**/*.d.ts", "dist/src/**/*.d.ts.map" ], diff --git a/packages/filecoin-client/package.json b/packages/filecoin-client/package.json index 4e2ec5c8f..19893b05a 100644 --- a/packages/filecoin-client/package.json +++ b/packages/filecoin-client/package.json @@ -51,7 +51,8 @@ } }, "files": [ - "src", + "dist/src/**/*.js", + "dist/src/**/*.js.map", "dist/src/**/*.d.ts", "dist/src/**/*.d.ts.map" ], diff --git a/packages/upload-client/package.json b/packages/upload-client/package.json index 81574f0e3..9817bdf88 100644 --- a/packages/upload-client/package.json +++ b/packages/upload-client/package.json @@ -60,7 +60,8 @@ } }, "files": [ - "src", + "dist/src/**/*.js", + "dist/src/**/*.js.map", "dist/src/**/*.d.ts", "dist/src/**/*.d.ts.map" ],