Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Fix npm packages not having the distribution files (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Schniz authored Aug 29, 2022
1 parent 0a9353d commit 4874edc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .changeset/quick-rats-ring.md
Original file line number Diff line number Diff line change
@@ -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
11 changes: 6 additions & 5 deletions packages/@next-fetch/react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 6 additions & 5 deletions packages/@next-fetch/swr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

1 comment on commit 4874edc

@vercel
Copy link

@vercel vercel bot commented on 4874edc Aug 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.