Skip to content

Commit

Permalink
attempt to fix type errors in bitcoin_psbt through packing
Browse files Browse the repository at this point in the history
  • Loading branch information
lastmjs committed Jan 8, 2025
1 parent 05297e9 commit bc7c0dc
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
2 changes: 2 additions & 0 deletions examples/experimental/demo/basic_bitcoin/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/experimental/demo/basic_bitcoin/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "basic_bitcoin",
"version": "0.0.0",
"scripts": {
"install": "./scripts/install.sh",
"pretest": "tsx test/pretest.ts",
Expand Down
1 change: 1 addition & 0 deletions examples/experimental/demo/bitcoin_psbt/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.azle
.bitcoin
.dfx
basic_bitcoin-0.0.0.tgz
dfx_generated
node_modules
2 changes: 1 addition & 1 deletion examples/experimental/demo/bitcoin_psbt/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ module.exports = {
'^.+\\.ts$': ['ts-jest', { isolatedModules: true }],
'^.+\\.js$': 'ts-jest'
},
transformIgnorePatterns: ['/node_modules/(?!(azle)/)'] // Make sure azle is transformed
transformIgnorePatterns: ['/node_modules/(?!(azle|basic_bitcoin)/)'] // Make sure azle is transformed
};
24 changes: 10 additions & 14 deletions examples/experimental/demo/bitcoin_psbt/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/experimental/demo/bitcoin_psbt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"dependencies": {
"@bitcoin-js/tiny-secp256k1-asmjs": "^2.2.3",
"azle": "0.24.1",
"basic_bitcoin": "file:../basic_bitcoin",
"basic_bitcoin": "file:basic_bitcoin-0.0.0.tgz",
"bitcoinjs-lib": "^6.1.5",
"express": "^4.18.2",
"tiny-secp256k1": "^2.2.3"
Expand Down
10 changes: 5 additions & 5 deletions examples/experimental/demo/bitcoin_psbt/test/pretest.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { linkAndInstallPatch } from 'azle/test/jest_link';
import { execSync } from 'child_process';
import { join } from 'path';

function pretest(): void {
linkAndInstallPatch(
join('examples', 'experimental', 'demo', 'basic_bitcoin')
);
execSync(`npm install $(npm pack ../basic_bitcoin)`);

if (process.env.AZLE_END_TO_END_TEST_LINK_AZLE !== 'false') {
execSync(`npm link azle`);
}

execSync(`dfx canister uninstall-code bitcoin_psbt || true`, {
stdio: 'inherit'
Expand Down

0 comments on commit bc7c0dc

Please sign in to comment.