Repository: svix/svix-webhooks (language: rust)

Issue:
Add Source Map to Package
## Bug Report

<!--
Thank you for reporting an issue.

Please fill in as much of the template below as you're able.
-->

### Version

<!--
List the versions of all `svix` crates you are using. The easiest way to get
this information is using `cargo tree`:

`cargo tree | grep svix`
-->
svix 1.21.0
svix-react 1.11.0

### Platform

<!---
Output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)
-->

### Description

<!--
Enter your issue details below this comment.

One way to structure the description:

<short summary of the bug>

I tried this code:

<code sample that causes the bug>

I expected to see this happen: <explanation>

Instead, this happened: <explanation>
-->
The source maps need to added to the package. I currently have 157 warnings whenever I build my client because of the lack of source mapping. I've seen other people bring up this issue as well.

I know I can turn source mapping off, but that makes debugging in production more difficult.

Please update the package to contain the source maps so these warnings will go away.



Discussion / hints:
Whoops, sorry about that. Also sorry for missing this ticket. Will take a look asap!
I think the reason why you're seeing such warnings is that in `svix` we are publishing the package with `sourceMaps` but without the corresponding TS files. I'll send a PR to publish `src` as well as `dist`, so the TS files are in the location pointed by the source maps. 

`svix-react` does not publish sourceMaps (yet), so it shouldn't have the same issue. 

Fix patch:
diff --git a/javascript/package.json b/javascript/package.json
index 0d01c5249..0489f1e85 100644
--- a/javascript/package.json
+++ b/javascript/package.json
@@ -15,7 +15,8 @@
   "main": "./dist/index.js",
   "typings": "./dist/index.d.ts",
   "files": [
-    "dist/**/*"
+    "src",
+    "dist"
   ],
   "scripts": {
     "build": "tsc",
@@ -46,4 +47,4 @@
     "ts-jest": "^27.0.3",
     "typescript": "^3.9.3"
   }
-}
+}
\ No newline at end of file


Test patch: