Skip to content

Commit

Permalink
chore: remove unused files from published package
Browse files Browse the repository at this point in the history
Prevents the following being included in the npm tarball:

- `src`: we may want to ship this if we shipped source maps, so
  users could click on internal lines in stack traces, but we don't
  ship source maps to npm, so these aren't needed.
- `miniflare-config-stubs`: these aren't used as of #633
  (https://github.com/cloudflare/workers-sdk/pull/633/files#diff-dd2c9d6fc577a3da1b7cf0b6b4a0705a1c71eb5d99c372d5bdda99476362f975L97-L102)
- `vendor`: this directory doesn't actually exist in the `wrangler`
   package directory, there is a root `vendor` directory, but files
   from that are copied to `wrangler-dist` during build

Closes #3013
  • Loading branch information
mrbbot committed May 11, 2023
1 parent 7e58071 commit 98ae50e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .changeset/spotty-apricots-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"wrangler": major
---

chore: remove unused files from published package

Specifically, the `src` and `miniflare-config-stubs` directories have been removed.
Empty file.

This file was deleted.

Empty file.
4 changes: 0 additions & 4 deletions packages/wrangler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,10 @@
"wrangler2": "./bin/wrangler.js"
},
"files": [
"src",
"bin",
"miniflare-config-stubs",
"miniflare-dist",
"wrangler-dist",
"templates",
"vendor",
"import_meta_url.js",
"kv-asset-handler.js",
"Cloudflare_CA.pem"
],
Expand Down

0 comments on commit 98ae50e

Please sign in to comment.