From 4874edc27701733b8fe00f879037707bfc4e72f7 Mon Sep 17 00:00:00 2001 From: Gal Schlezinger Date: Mon, 29 Aug 2022 10:19:19 +0300 Subject: [PATCH] Fix npm packages not having the distribution files (#18) --- .changeset/quick-rats-ring.md | 6 ++++++ packages/@next-fetch/react-query/package.json | 11 ++++++----- packages/@next-fetch/swr/package.json | 11 ++++++----- 3 files changed, 18 insertions(+), 10 deletions(-) create mode 100644 .changeset/quick-rats-ring.md diff --git a/.changeset/quick-rats-ring.md b/.changeset/quick-rats-ring.md new file mode 100644 index 0000000..a9cc8db --- /dev/null +++ b/.changeset/quick-rats-ring.md @@ -0,0 +1,6 @@ +--- +"@next-fetch/react-query": patch +"@next-fetch/swr": patch +--- + +Update `package.json#files` to ensure the necessary files exist in the npm distribution diff --git a/packages/@next-fetch/react-query/package.json b/packages/@next-fetch/react-query/package.json index 7d99db0..f93b60f 100644 --- a/packages/@next-fetch/react-query/package.json +++ b/packages/@next-fetch/react-query/package.json @@ -7,11 +7,12 @@ "types": "dist/index.d.ts", "sideEffects": false, "files": [ - "./client-loader/package.json", - "./client/package.json", - "./dist/**/*", - "./server-loader/package.json", - "./server/package.json" + "client-loader/package.json", + "client/package.json", + "dist/**/*", + "form/package.json", + "server-loader/package.json", + "server/package.json" ], "scripts": { "build": "tsup", diff --git a/packages/@next-fetch/swr/package.json b/packages/@next-fetch/swr/package.json index b07486b..de44224 100644 --- a/packages/@next-fetch/swr/package.json +++ b/packages/@next-fetch/swr/package.json @@ -7,11 +7,12 @@ "types": "dist/index.d.ts", "sideEffects": false, "files": [ - "./client-loader/package.json", - "./client/package.json", - "./dist/**/*", - "./server-loader/package.json", - "./server/package.json" + "client-loader/package.json", + "client/package.json", + "dist/**/*", + "form/package.json", + "server-loader/package.json", + "server/package.json" ], "scripts": { "build": "tsup",