-
Notifications
You must be signed in to change notification settings - Fork 108
import fixes #1480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import fixes #1480
Changes from 12 commits
dc4f8bd
4253f98
b2c1a39
ef68e96
a95978d
ba5e2ce
bb4ec58
814ac76
63ec81f
1f44095
24175b1
f72dd40
4ad387c
9bbc050
eee141e
57173dd
d5a0709
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| --- | ||
| '@xchainjs/xchain-mayachain-query': patch | ||
| '@xchainjs/xchain-thorchain-query': patch | ||
| '@xchainjs/xchain-mayachain': patch | ||
| '@xchainjs/xchain-thorchain': patch | ||
| '@xchainjs/xchain-arbitrum': patch | ||
| '@xchainjs/xchain-ethereum': patch | ||
| '@xchainjs/xchain-litecoin': patch | ||
| '@xchainjs/xchain-bitcoin': patch | ||
| 'xchainjs-estimate-swap': patch | ||
| '@xchainjs/xchain-cosmos': patch | ||
| '@xchainjs/xchain-kujira': patch | ||
| '@xchainjs/xchain-wallet': patch | ||
| '@xchainjs/xchain-avax': patch | ||
| '@xchainjs/xchain-base': patch | ||
| '@xchainjs/xchain-doge': patch | ||
| '@xchainjs/xchain-util': patch | ||
| '@xchainjs/xchain-bsc': patch | ||
| '@xchainjs/xchain-evm': patch | ||
| 'xchainjs-liquidity': patch | ||
| 'xchainjs-check-tx': patch | ||
| 'xchainjs-loans': patch | ||
| 'txJammer': patch | ||
| --- | ||
|
|
||
| require bignumber.js 9.1.2 for esm support | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| // This statement declares a module augmentation for the external module 'coinselect/accumulative'. | ||
| declare module 'coinselect/accumulative' | ||
| // This statement declares a module augmentation for the external module 'coinselect/accumulative.js'. | ||
| declare module 'coinselect/accumulative.js' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| /** | ||
| * Declaration file for the 'coinselect/accumulative' module. | ||
| * Declaration file for the 'coinselect/accumulative.js' module. | ||
| * This module likely provides functions or utilities related to coin selection algorithms, | ||
| * specifically the 'accumulative' algorithm. | ||
| */ | ||
| declare module 'coinselect/accumulative' | ||
| declare module 'coinselect/accumulative.js' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| declare module 'coinselect/accumulative' | ||
| declare module 'coinselect/accumulative.js' | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| /** | ||
| * Declaration file for the 'coinselect/accumulative' module. | ||
| * Declaration file for the 'coinselect/accumulative.js' module. | ||
| * | ||
| * 'coinselect/accumulative' is a module used for selecting and accumulating unspent transaction outputs (UTXOs). | ||
| * 'coinselect/accumulative.js' is a module used for selecting and accumulating unspent transaction outputs (UTXOs). | ||
| * This declaration file allows TypeScript to recognize and properly handle the module. | ||
| */ | ||
| declare module 'coinselect/accumulative' | ||
| declare module 'coinselect/accumulative.js' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| /** | ||
| * Declaration file for the 'coinselect/accumulative' module. | ||
| * Declaration file for the 'coinselect/accumulative.js' module. | ||
| * This module is used for selecting UTXOs for transactions. | ||
| */ | ||
| declare module 'coinselect/accumulative' | ||
| declare module 'coinselect/accumulative.js' |
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -17,6 +17,8 @@ tput setaf 2 | |||||||||||||||
| echo "Generating $MSG_COMPILED_OUTPUTFILE" | ||||||||||||||||
| tput sgr0 | ||||||||||||||||
| yarn run pbjs -w commonjs -t static-module $TMP_DIR/mayanode/proto/mayachain/v1/common/common.proto $TMP_DIR/mayanode/proto/mayachain/v1/x/mayachain/types/msg_deposit.proto $TMP_DIR/mayanode/proto/mayachain/v1/x/mayachain/types/msg_send.proto $TMP_DIR/mayanode/third_party/proto/cosmos/base/v1beta1/coin.proto -o $MSG_COMPILED_OUTPUTFILE | ||||||||||||||||
| # Fix import to be ESM-compatible (no omitted file extension) | ||||||||||||||||
| sed -i -E 's|"(protobufjs/minimal)"|"\1.js"|' "$MSG_COMPILED_OUTPUTFILE" | ||||||||||||||||
|
Comment on lines
+20
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion
On GNU sed (typical in CI images) the current command is fine, but BSD sed (macOS) requires the backup-suffix immediately after -# Fix import to be ESM-compatible (no omitted file extension)
-sed -i -E 's|"(protobufjs/minimal)"|"\1.js"|' "$MSG_COMPILED_OUTPUTFILE"
+# Fix import to be ESM-compatible (no omitted file extension)
+# Works on both GNU and BSD sed.
+sed -E 's|"(protobufjs/minimal)"|"\1.js"|' "$MSG_COMPILED_OUTPUTFILE" \
+ | tee "$MSG_COMPILED_OUTPUTFILE.tmp" \
+ && mv "$MSG_COMPILED_OUTPUTFILE.tmp" "$MSG_COMPILED_OUTPUTFILE"Alternatively, use 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||
|
|
||||||||||||||||
| tput setaf 2 | ||||||||||||||||
| echo "Generating $MSG_COMPILED_TYPES_OUTPUTFILE" | ||||||||||||||||
|
|
||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Verify all package names exist (and match casing) in the workspace before merging.
If any entry here doesn’t exactly match a package.json "name", Changesets will skip it or error, and you’ll miss expected releases. "txJammer" in particular stands out due to uppercase letters, which is uncommon for npm package names and may not match the actual workspace name.
Run the script below to:
🏁 Script executed:
Length of output: 407
I’ve adjusted the verification script to avoid process-substitution and ensure we reliably extract both the declared and actual package names. Please run this instead:
🏁 Script executed:
Length of output: 3224
Review frontmatter package names need correction before merging
Please address the following before merging:
.changeset/ripe-heads-stop.mdbut nopackage.jsonin the workspace has that name. Either remove it or correct it to match the actual package name.package.json, which is uncommon for npm packages. Ensure this casing is deliberate and matches across both the workspace and changeset.🤖 Prompt for AI Agents