Skip to content

Commit 24e1607

Browse files
mrbbotpetebacondarwin
authored andcommittedMay 17, 2023
chore: remove unused files from published package (#3191)
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

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed
 

‎.changeset/spotty-apricots-eat.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"wrangler": major
3+
---
4+
5+
chore: remove unused files from published package
6+
7+
Specifically, the `src` and `miniflare-config-stubs` directories have been removed.

‎packages/wrangler/miniflare-config-stubs/.env.empty

Whitespace-only changes.

‎packages/wrangler/miniflare-config-stubs/package.empty.json

-1
This file was deleted.

‎packages/wrangler/miniflare-config-stubs/wrangler.empty.toml

Whitespace-only changes.

‎packages/wrangler/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,10 @@
4242
"wrangler2": "./bin/wrangler.js"
4343
},
4444
"files": [
45-
"src",
4645
"bin",
47-
"miniflare-config-stubs",
4846
"miniflare-dist",
4947
"wrangler-dist",
5048
"templates",
51-
"vendor",
52-
"import_meta_url.js",
5349
"kv-asset-handler.js",
5450
"Cloudflare_CA.pem"
5551
],

0 commit comments

Comments
 (0)
Please sign in to comment.