fix: source-maps find their designated source (#2435)

fix: source-maps find their designate source

We weren't including the `src` folder in the files published too npm.
This caused errors such as the following seen in the sandbox and by
users on discord.

```
WARNING in ./node_modules/xrpl/dist/npm/utils/xrpConversion.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/sandbox/node_modules/xrpl/src/utils/xrpConversion.ts' file: Error: ENOENT: no such file or directory, open '/sandbox/node_modules/xrpl/src/utils/xrpConversion.ts'
```
This commit is contained in:
Caleb Kniffen
2023-08-15 10:37:05 -05:00
committed by GitHub
parent 352abae003
commit 2192e11267
4 changed files with 7 additions and 6 deletions

View File

@@ -4,7 +4,7 @@
"description": "encodes/decodes base58 encoded XRP Ledger identifiers",
"files": [
"dist/*",
"build/*"
"src/*"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@@ -4,8 +4,7 @@
"description": "XRP Ledger binary codec",
"files": [
"dist/*",
"bin/*",
"test/*"
"src/*"
],
"main": "dist/",
"directories": {

View File

@@ -10,7 +10,8 @@
"prepublish": "npm run lint && npm test"
},
"files": [
"dist/*"
"dist/*",
"src/*"
],
"main": "dist/",
"directories": {

View File

@@ -4,11 +4,12 @@
"license": "ISC",
"description": "A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser",
"files": [
"dist/npm/*",
"build/xrpl-latest-min.js",
"build/xrpl-latest-min.js.map",
"build/xrpl-latest.js",
"build/xrpl-latest.js.map"
"build/xrpl-latest.js.map",
"dist/npm/*",
"src/*"
],
"main": "dist/npm/",
"unpkg": "build/xrpl-latest-min.js",