Skip to content

Commit

Permalink
using npm exec to publish instead of scripts (#153)
Browse files Browse the repository at this point in the history
* using npm exec to publish instead of scripts
* removed publishConfig since it's enforced on lerna exec
* fixed jellyfish engines.node to >=14.x
  • Loading branch information
fuxingloh authored Apr 22, 2021
1 parent 6856375 commit 9f4a34e
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 59 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@
"workspaces": [
"./packages/*"
],
"engines": {
"node": ">=14.x"
},
"scripts": {
"prepare": "husky install",
"build": "lerna run build",
"version": "lerna version $1 --yes --no-push --no-git-tag-version",
"publish:next": "lerna run publish:next",
"publish:latest": "lerna run publish:latest",
"publish:next": "lerna exec -- npm publish --tag next --access public",
"publish:latest": "lerna exec -- npm publish --tag latest --access public",
"standard": "ts-standard --fix",
"test": "jest",
"test:ci": "jest --ci --coverage --forceExit",
Expand Down
7 changes: 1 addition & 6 deletions packages/jellyfish-api-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
"repository": "DeFiCh/jellyfish",
"bugs": "https://github.com/DeFiCh/jellyfish/issues",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"contributors": [
{
"name": "DeFiChain Foundation",
Expand All @@ -35,9 +32,7 @@
"dist"
],
"scripts": {
"build": "tsc",
"publish:next": "npm publish --tag next --access public",
"publish:latest": "npm publish --tag latest --access public"
"build": "tsc"
},
"dependencies": {
"@defichain/jellyfish-json": "0.0.0"
Expand Down
7 changes: 1 addition & 6 deletions packages/jellyfish-api-jsonrpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
"repository": "DeFiCh/jellyfish",
"bugs": "https://github.com/DeFiCh/jellyfish/issues",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"contributors": [
{
"name": "DeFiChain Foundation",
Expand All @@ -35,9 +32,7 @@
"dist"
],
"scripts": {
"build": "tsc",
"publish:next": "npm publish --tag next --access public",
"publish:latest": "npm publish --tag latest --access public"
"build": "tsc"
},
"dependencies": {
"@defichain/jellyfish-api-core": "0.0.0",
Expand Down
4 changes: 1 addition & 3 deletions packages/jellyfish-crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@
"dist"
],
"scripts": {
"build": "tsc",
"publish:next": "npm publish --tag next --access public",
"publish:latest": "npm publish --tag latest --access public"
"build": "tsc"
},
"dependencies": {
"bech32": "^2.0.0",
Expand Down
7 changes: 1 addition & 6 deletions packages/jellyfish-json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
"repository": "DeFiCh/jellyfish",
"bugs": "https://github.com/DeFiCh/jellyfish/issues",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"contributors": [
{
"name": "DeFiChain Foundation",
Expand All @@ -35,9 +32,7 @@
"dist"
],
"scripts": {
"build": "tsc",
"publish:next": "npm publish --tag next --access public",
"publish:latest": "npm publish --tag latest --access public"
"build": "tsc"
},
"peerDependencies": {
"bignumber.js": "^9.0.1"
Expand Down
7 changes: 1 addition & 6 deletions packages/jellyfish-network/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
"repository": "DeFiCh/jellyfish",
"bugs": "https://github.com/DeFiCh/jellyfish/issues",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"contributors": [
{
"name": "DeFiChain Foundation",
Expand All @@ -35,9 +32,7 @@
"dist"
],
"scripts": {
"build": "tsc",
"publish:next": "npm publish --tag next --access public",
"publish:latest": "npm publish --tag latest --access public"
"build": "tsc"
},
"devDependencies": {
"typescript": ">=4.2.0"
Expand Down
4 changes: 1 addition & 3 deletions packages/jellyfish-transaction/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@
"dist"
],
"scripts": {
"build": "tsc",
"publish:next": "npm publish --tag next --access public",
"publish:latest": "npm publish --tag latest --access public"
"build": "tsc"
},
"peerDependencies": {
"bignumber.js": "^9.0.1"
Expand Down
7 changes: 1 addition & 6 deletions packages/jellyfish-wallet-mnemonic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
"repository": "DeFiCh/jellyfish",
"bugs": "https://github.com/DeFiCh/jellyfish/issues",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"contributors": [
{
"name": "DeFiChain Foundation",
Expand All @@ -35,9 +32,7 @@
"dist"
],
"scripts": {
"build": "tsc",
"publish:next": "npm publish --tag next --access public",
"publish:latest": "npm publish --tag latest --access public"
"build": "tsc"
},
"dependencies": {
"@defichain/jellyfish-wallet": "0.0.0",
Expand Down
7 changes: 1 addition & 6 deletions packages/jellyfish-wallet-whale/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
"repository": "DeFiCh/jellyfish",
"bugs": "https://github.com/DeFiCh/jellyfish/issues",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"contributors": [
{
"name": "DeFiChain Foundation",
Expand All @@ -35,9 +32,7 @@
"dist"
],
"scripts": {
"build": "tsc",
"publish:next": "npm publish --tag next --access public",
"publish:latest": "npm publish --tag latest --access public"
"build": "tsc"
},
"dependencies": {
"@defichain/jellyfish-crypto": "0.0.0",
Expand Down
7 changes: 1 addition & 6 deletions packages/jellyfish-wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
"repository": "DeFiCh/jellyfish",
"bugs": "https://github.com/DeFiCh/jellyfish/issues",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"contributors": [
{
"name": "DeFiChain Foundation",
Expand All @@ -35,9 +32,7 @@
"dist"
],
"scripts": {
"build": "tsc",
"publish:next": "npm publish --tag next --access public",
"publish:latest": "npm publish --tag latest --access public"
"build": "tsc"
},
"peerDependencies": {
"bignumber.js": "^9.0.1"
Expand Down
7 changes: 1 addition & 6 deletions packages/jellyfish/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
"repository": "DeFiCh/jellyfish",
"bugs": "https://github.com/DeFiCh/jellyfish/issues",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"contributors": [
{
"name": "DeFiChain Foundation",
Expand Down Expand Up @@ -52,9 +49,7 @@
"electron": ">=10.x"
},
"scripts": {
"build": "parcel build src/jellyfish.ts",
"publish:next": "npm publish --tag next --access public",
"publish:latest": "npm publish --tag latest --access public"
"build": "parcel build src/jellyfish.ts"
},
"dependencies": {
"@defichain/jellyfish-api-core": "0.0.0",
Expand Down
4 changes: 1 addition & 3 deletions packages/testcontainers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@
"dist"
],
"scripts": {
"build": "tsc",
"publish:next": "npm publish --tag next --access public",
"publish:latest": "npm publish --tag latest --access public"
"build": "tsc"
},
"dependencies": {
"dockerode": "^3.2.1",
Expand Down

0 comments on commit 9f4a34e

Please sign in to comment.