Skip to content

Commit 9f4a34e

Browse files
authored
using npm exec to publish instead of scripts (#153)
* using npm exec to publish instead of scripts * removed publishConfig since it's enforced on lerna exec * fixed jellyfish engines.node to >=14.x
1 parent 6856375 commit 9f4a34e

File tree

12 files changed

+16
-59
lines changed

12 files changed

+16
-59
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@
1717
"workspaces": [
1818
"./packages/*"
1919
],
20+
"engines": {
21+
"node": ">=14.x"
22+
},
2023
"scripts": {
2124
"prepare": "husky install",
2225
"build": "lerna run build",
2326
"version": "lerna version $1 --yes --no-push --no-git-tag-version",
24-
"publish:next": "lerna run publish:next",
25-
"publish:latest": "lerna run publish:latest",
27+
"publish:next": "lerna exec -- npm publish --tag next --access public",
28+
"publish:latest": "lerna exec -- npm publish --tag latest --access public",
2629
"standard": "ts-standard --fix",
2730
"test": "jest",
2831
"test:ci": "jest --ci --coverage --forceExit",

packages/jellyfish-api-core/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
"repository": "DeFiCh/jellyfish",
1414
"bugs": "https://github.com/DeFiCh/jellyfish/issues",
1515
"license": "MIT",
16-
"publishConfig": {
17-
"access": "public"
18-
},
1916
"contributors": [
2017
{
2118
"name": "DeFiChain Foundation",
@@ -35,9 +32,7 @@
3532
"dist"
3633
],
3734
"scripts": {
38-
"build": "tsc",
39-
"publish:next": "npm publish --tag next --access public",
40-
"publish:latest": "npm publish --tag latest --access public"
35+
"build": "tsc"
4136
},
4237
"dependencies": {
4338
"@defichain/jellyfish-json": "0.0.0"

packages/jellyfish-api-jsonrpc/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
"repository": "DeFiCh/jellyfish",
1414
"bugs": "https://github.com/DeFiCh/jellyfish/issues",
1515
"license": "MIT",
16-
"publishConfig": {
17-
"access": "public"
18-
},
1916
"contributors": [
2017
{
2118
"name": "DeFiChain Foundation",
@@ -35,9 +32,7 @@
3532
"dist"
3633
],
3734
"scripts": {
38-
"build": "tsc",
39-
"publish:next": "npm publish --tag next --access public",
40-
"publish:latest": "npm publish --tag latest --access public"
35+
"build": "tsc"
4136
},
4237
"dependencies": {
4338
"@defichain/jellyfish-api-core": "0.0.0",

packages/jellyfish-crypto/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@
3232
"dist"
3333
],
3434
"scripts": {
35-
"build": "tsc",
36-
"publish:next": "npm publish --tag next --access public",
37-
"publish:latest": "npm publish --tag latest --access public"
35+
"build": "tsc"
3836
},
3937
"dependencies": {
4038
"bech32": "^2.0.0",

packages/jellyfish-json/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
"repository": "DeFiCh/jellyfish",
1414
"bugs": "https://github.com/DeFiCh/jellyfish/issues",
1515
"license": "MIT",
16-
"publishConfig": {
17-
"access": "public"
18-
},
1916
"contributors": [
2017
{
2118
"name": "DeFiChain Foundation",
@@ -35,9 +32,7 @@
3532
"dist"
3633
],
3734
"scripts": {
38-
"build": "tsc",
39-
"publish:next": "npm publish --tag next --access public",
40-
"publish:latest": "npm publish --tag latest --access public"
35+
"build": "tsc"
4136
},
4237
"peerDependencies": {
4338
"bignumber.js": "^9.0.1"

packages/jellyfish-network/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
"repository": "DeFiCh/jellyfish",
1414
"bugs": "https://github.com/DeFiCh/jellyfish/issues",
1515
"license": "MIT",
16-
"publishConfig": {
17-
"access": "public"
18-
},
1916
"contributors": [
2017
{
2118
"name": "DeFiChain Foundation",
@@ -35,9 +32,7 @@
3532
"dist"
3633
],
3734
"scripts": {
38-
"build": "tsc",
39-
"publish:next": "npm publish --tag next --access public",
40-
"publish:latest": "npm publish --tag latest --access public"
35+
"build": "tsc"
4136
},
4237
"devDependencies": {
4338
"typescript": ">=4.2.0"

packages/jellyfish-transaction/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@
3232
"dist"
3333
],
3434
"scripts": {
35-
"build": "tsc",
36-
"publish:next": "npm publish --tag next --access public",
37-
"publish:latest": "npm publish --tag latest --access public"
35+
"build": "tsc"
3836
},
3937
"peerDependencies": {
4038
"bignumber.js": "^9.0.1"

packages/jellyfish-wallet-mnemonic/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
"repository": "DeFiCh/jellyfish",
1414
"bugs": "https://github.com/DeFiCh/jellyfish/issues",
1515
"license": "MIT",
16-
"publishConfig": {
17-
"access": "public"
18-
},
1916
"contributors": [
2017
{
2118
"name": "DeFiChain Foundation",
@@ -35,9 +32,7 @@
3532
"dist"
3633
],
3734
"scripts": {
38-
"build": "tsc",
39-
"publish:next": "npm publish --tag next --access public",
40-
"publish:latest": "npm publish --tag latest --access public"
35+
"build": "tsc"
4136
},
4237
"dependencies": {
4338
"@defichain/jellyfish-wallet": "0.0.0",

packages/jellyfish-wallet-whale/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
"repository": "DeFiCh/jellyfish",
1414
"bugs": "https://github.com/DeFiCh/jellyfish/issues",
1515
"license": "MIT",
16-
"publishConfig": {
17-
"access": "public"
18-
},
1916
"contributors": [
2017
{
2118
"name": "DeFiChain Foundation",
@@ -35,9 +32,7 @@
3532
"dist"
3633
],
3734
"scripts": {
38-
"build": "tsc",
39-
"publish:next": "npm publish --tag next --access public",
40-
"publish:latest": "npm publish --tag latest --access public"
35+
"build": "tsc"
4136
},
4237
"dependencies": {
4338
"@defichain/jellyfish-crypto": "0.0.0",

packages/jellyfish-wallet/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
"repository": "DeFiCh/jellyfish",
1414
"bugs": "https://github.com/DeFiCh/jellyfish/issues",
1515
"license": "MIT",
16-
"publishConfig": {
17-
"access": "public"
18-
},
1916
"contributors": [
2017
{
2118
"name": "DeFiChain Foundation",
@@ -35,9 +32,7 @@
3532
"dist"
3633
],
3734
"scripts": {
38-
"build": "tsc",
39-
"publish:next": "npm publish --tag next --access public",
40-
"publish:latest": "npm publish --tag latest --access public"
35+
"build": "tsc"
4136
},
4237
"peerDependencies": {
4338
"bignumber.js": "^9.0.1"

packages/jellyfish/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
"repository": "DeFiCh/jellyfish",
1414
"bugs": "https://github.com/DeFiCh/jellyfish/issues",
1515
"license": "MIT",
16-
"publishConfig": {
17-
"access": "public"
18-
},
1916
"contributors": [
2017
{
2118
"name": "DeFiChain Foundation",
@@ -52,9 +49,7 @@
5249
"electron": ">=10.x"
5350
},
5451
"scripts": {
55-
"build": "parcel build src/jellyfish.ts",
56-
"publish:next": "npm publish --tag next --access public",
57-
"publish:latest": "npm publish --tag latest --access public"
52+
"build": "parcel build src/jellyfish.ts"
5853
},
5954
"dependencies": {
6055
"@defichain/jellyfish-api-core": "0.0.0",

packages/testcontainers/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@
3232
"dist"
3333
],
3434
"scripts": {
35-
"build": "tsc",
36-
"publish:next": "npm publish --tag next --access public",
37-
"publish:latest": "npm publish --tag latest --access public"
35+
"build": "tsc"
3836
},
3937
"dependencies": {
4038
"dockerode": "^3.2.1",

0 commit comments

Comments
 (0)