Skip to content

Commit 48eaa57

Browse files
mkazlauskasginnun
authored andcommitted
chore(e2e): update webpack config to build with blockfrost as a dependency
1 parent a6a4d44 commit 48eaa57

File tree

4 files changed

+33
-14
lines changed

4 files changed

+33
-14
lines changed

packages/e2e/package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,19 @@
22
"name": "@cardano-sdk/e2e",
33
"version": "0.39.0",
44
"description": "End to end tests for the cardano-js-sdk packages.",
5-
"engines": {
6-
"node": ">=16.20.2"
7-
},
8-
"main": "dist/cjs/index.js",
9-
"module": "dist/esm/index.js",
5+
"repository": "https://github.com/input-output-hk/cardano-js-sdk",
6+
"license": "Apache-2.0",
7+
"sideEffects": [
8+
"./test/web-extension/extension/**/*.ts"
9+
],
1010
"exports": {
1111
".": {
1212
"import": "./dist/esm/index.js",
1313
"require": "./dist/cjs/index.js"
1414
}
1515
},
16-
"sideEffects": [
17-
"./test/web-extension/extension/**/*.ts"
18-
],
16+
"main": "dist/cjs/index.js",
17+
"module": "dist/esm/index.js",
1918
"scripts": {
2019
"artillery:stake-pool-query": "WORKERS=1 node -r ts-node/register ../../node_modules/.bin/artillery run test/artillery/StakePoolSearch.yml",
2120
"artillery:wallet-restoration": "WORKERS=1 node -r ts-node/register ../../node_modules/.bin/artillery run --dotenv ./.env test/artillery/wallet-restoration/WalletRestoration.yml",
@@ -73,11 +72,6 @@
7372
"wait-for-network-epoch-3": "DB_SYNC_CONNECTION_STRING='postgresql://postgres:doNoUseThisSecret!@localhost:5435/cexplorer' ts-node src/scripts/is-local-network-ready.ts",
7473
"wait-for-network-init": "local-network/scripts/wait-local-network-init.sh"
7574
},
76-
"repository": "https://github.com/input-output-hk/cardano-js-sdk",
77-
"license": "Apache-2.0",
78-
"publishConfig": {
79-
"access": "public"
80-
},
8175
"dependencies": {
8276
"@cardano-foundation/ledgerjs-hw-app-cardano": "^7.1.2",
8377
"@cardano-ogmios/client": "6.5.0",
@@ -97,6 +91,7 @@
9791
"@cardano-sdk/util-rxjs": "workspace:~",
9892
"@cardano-sdk/wallet": "workspace:~",
9993
"@dcspark/cardano-multiplatform-lib-nodejs": "^3.1.1",
94+
"@emurgo/cardano-serialization-lib-asmjs": "^11.5.0",
10095
"@vespaiach/axios-fetch-adapter": "^0.3.0",
10196
"axios": "^0.28.0",
10297
"bunyan": "^1.8.15",
@@ -181,5 +176,11 @@
181176
"webpack": "^5.72.0",
182177
"webpack-cli": "^4.9.2",
183178
"webpack-merge": "^5.8.0"
179+
},
180+
"engines": {
181+
"node": ">=16.20.2"
182+
},
183+
"publishConfig": {
184+
"access": "public"
184185
}
185186
}

packages/e2e/test/web-extension/webpack.config.base.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ module.exports = {
5353
/@dcspark\/cardano-multiplatform-lib-nodejs/,
5454
'@dcspark/cardano-multiplatform-lib-browser'
5555
),
56+
new NormalModuleReplacementPlugin(
57+
/@emurgo\/cardano-serialization-lib-nodejs/,
58+
'@emurgo/cardano-serialization-lib-asmjs'
59+
),
5660
new NormalModuleReplacementPlugin(/blake2b$/, 'blake2b-no-wasm'),
5761
new NormalModuleReplacementPlugin(
5862
/@emurgo\/cardano-message-signing-nodejs/,
@@ -73,16 +77,21 @@ module.exports = {
7377
'@cardano-sdk/cardano-services': false,
7478
buffer: require.resolve('buffer/'),
7579
crypto: require.resolve('crypto-browserify'),
80+
dns: false,
7681
events: require.resolve('events/'),
7782
fs: false,
7883
'get-port-please': false,
7984
http: false,
85+
http2: false,
86+
https: false,
8087
net: false,
8188
os: false,
8289
path: false,
8390
perf_hooks: false,
8491
stream: require.resolve('readable-stream'),
85-
util: require.resolve('util/')
92+
tls: false,
93+
util: require.resolve('util/'),
94+
zlib: false
8695
}
8796
},
8897
watchOptions: {

yarn-project.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ cacheEntries = {
410410
"@discoveryjs/json-ext@npm:0.5.7" = { filename = "@discoveryjs-json-ext-npm-0.5.7-fe04af1f31-2176d301cc.zip"; sha512 = "2176d301cc258ea5c2324402997cf8134ebb212469c0d397591636cea8d3c02f2b3cf9fd58dcb748c7a0dade77ebdc1b10284fa63e608c033a1db52fddc69918"; };
411411
"@emurgo/cardano-message-signing-asmjs@npm:1.0.1" = { filename = "@emurgo-cardano-message-signing-asmjs-npm-1.0.1-acb89efd8d-2cdb4c2fbf.zip"; sha512 = "2cdb4c2fbf78632b6256e2300dab6cab0bdbae7c9e80d3f619e1f09fc53b3ec7ab659ae4c9094dac3e1cbdb756d0bc0d2927f4619b34b1766e97a7d198aa9e3a"; };
412412
"@emurgo/cardano-message-signing-nodejs@npm:1.0.1" = { filename = "@emurgo-cardano-message-signing-nodejs-npm-1.0.1-b8b8c49564-0849d3cc4d.zip"; sha512 = "0849d3cc4dc3d33072afeaa44c7316f62d2cde1e2f7449cf24ac8b2a65a89ff17f301572c89a6890433054098084a57c01013c4a37d956ef7bc33bce90fc048f"; };
413+
"@emurgo/cardano-serialization-lib-asmjs@npm:11.5.0" = { filename = "@emurgo-cardano-serialization-lib-asmjs-npm-11.5.0-42e52fb4ae-5c91535271.zip"; sha512 = "5c915352718aa28ade92b5c2f9a0367e706312b989170fcc5b057c15e9b30783a8f77db343ef839478ec1250268fd6c03c59661cec2d548b1bff7dd7981c730f"; };
413414
"@emurgo/cardano-serialization-lib-browser@npm:11.5.0" = { filename = "@emurgo-cardano-serialization-lib-browser-npm-11.5.0-7adf873254-4c45dca4ca.zip"; sha512 = "4c45dca4ca6cea5298f5852671084263182b83a2eabae92deefaa079e1460bd719314b4177509b8e7c890ebe8e0f35f64eb92c26bc83a91edb46c0cbacb8a173"; };
414415
"@emurgo/cardano-serialization-lib-nodejs@npm:11.0.0" = { filename = "@emurgo-cardano-serialization-lib-nodejs-npm-11.0.0-1fa6537d87-b22b707e83.zip"; sha512 = "b22b707e83ecd254a9888e24ada14d07fa8d37c749bd49e67b4b9ca13a3a42cc1b5198b1118d751cee94b479d5b7addd15af5d875cb5c91418f69f3a98d5276e"; };
415416
"@emurgo/cardano-serialization-lib-nodejs@npm:11.5.0" = { filename = "@emurgo-cardano-serialization-lib-nodejs-npm-11.5.0-8c2e047031-f9e271704e.zip"; sha512 = "f9e271704ef12eb018bc0a15b8c6f83c61db694a422674267be6c546a9a89dd8b200781aca3f97dd5bb4291b0c84f6c60177fcf7e550964188a4ed6a8efd0316"; };

yarn.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3374,6 +3374,7 @@ __metadata:
33743374
"@dcspark/cardano-multiplatform-lib-browser": ^3.1.1
33753375
"@dcspark/cardano-multiplatform-lib-nodejs": ^3.1.1
33763376
"@emurgo/cardano-message-signing-asmjs": ^1.0.1
3377+
"@emurgo/cardano-serialization-lib-asmjs": ^11.5.0
33773378
"@types/bunyan": ^1.8.8
33783379
"@types/chalk": ^2.2.0
33793380
"@types/convict": ^6.1.2
@@ -4114,6 +4115,13 @@ __metadata:
41144115
languageName: node
41154116
linkType: hard
41164117

4118+
"@emurgo/cardano-serialization-lib-asmjs@npm:^11.5.0":
4119+
version: 11.5.0
4120+
resolution: "@emurgo/cardano-serialization-lib-asmjs@npm:11.5.0"
4121+
checksum: 5c915352718aa28ade92b5c2f9a0367e706312b989170fcc5b057c15e9b30783a8f77db343ef839478ec1250268fd6c03c59661cec2d548b1bff7dd7981c730f
4122+
languageName: node
4123+
linkType: hard
4124+
41174125
"@emurgo/cardano-serialization-lib-browser@npm:^11.0.0":
41184126
version: 11.5.0
41194127
resolution: "@emurgo/cardano-serialization-lib-browser@npm:11.5.0"

0 commit comments

Comments
 (0)