mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-04 21:15:47 +00:00
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:
@@ -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",
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
"description": "XRP Ledger binary codec",
|
||||
"files": [
|
||||
"dist/*",
|
||||
"bin/*",
|
||||
"test/*"
|
||||
"src/*"
|
||||
],
|
||||
"main": "dist/",
|
||||
"directories": {
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
"prepublish": "npm run lint && npm test"
|
||||
},
|
||||
"files": [
|
||||
"dist/*"
|
||||
"dist/*",
|
||||
"src/*"
|
||||
],
|
||||
"main": "dist/",
|
||||
"directories": {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user