diff --git a/packages/lisk-api-client/package.json b/packages/lisk-api-client/package.json index 4aa2c2e6c..8a7dd0230 100644 --- a/packages/lisk-api-client/package.json +++ b/packages/lisk-api-client/package.json @@ -20,13 +20,12 @@ "node": ">=6.3 <=10", "npm": ">=3 <=6" }, - "browser": "dist-browser/index.min.js", "main": "dist-node/index.js", "scripts": { "transpile": "babel src -d dist-node", "transpile:browsertest": "babel src -d ./browsertest.build/src && BABEL_ENV=browsertest babel test -d ./browsertest.build/test", - "browserify": "browserify ./dist-node/index.js -o ./dist-browser/index.js -s lisk --node", - "browserify:browsertest": "browserify ./browsertest.build/test/*.js ./browsertest.build/test/**/*.js -o ./browsertest.build/browsertest.js -s lisk", + "browserify": "browserify ./dist-node/index.js -o ./dist-browser/index.js -s liskAPIClient", + "browserify:browsertest": "browserify ./browsertest.build/test/*.js ./browsertest.build/test/**/*.js -o ./browsertest.build/browsertest.js -s liskAPIClient", "uglify": "uglifyjs -nm -o ./dist-browser/index.min.js ./dist-browser/index.js", "uglify:browsertest": "uglifyjs -o ./browsertest.build/browsertest.min.js ./browsertest.build/browsertest.js", "clean": "./scripts/clean.sh", diff --git a/packages/lisk-client/package.json b/packages/lisk-client/package.json index e4684c1e4..44ee8c91c 100644 --- a/packages/lisk-client/package.json +++ b/packages/lisk-client/package.json @@ -20,15 +20,14 @@ "node": ">=6.3 <=10", "npm": ">=3 <=6" }, - "browser": "dist-browser/index.min.js", "main": "dist-node/index.js", "scripts": { "prestart": "./scripts/prestart.sh", "start": "./scripts/start.sh", "transpile": "babel src -d dist-node", "transpile:browsertest": "babel src -d ./browsertest.build/src && BABEL_ENV=browsertest babel test -d ./browsertest.build/test", - "browserify": "browserify ./dist-node/index.js -o ./dist-browser/index.js -s lisk --node", - "browserify:browsertest": "browserify ./browsertest.build/test/*.js -o ./browsertest.build/browsertest.js -s lisk --node", + "browserify": "browserify ./dist-node/index.js -o ./dist-browser/index.js -s lisk", + "browserify:browsertest": "browserify ./browsertest.build/test/*.js -o ./browsertest.build/browsertest.js -s lisk", "uglify": "uglifyjs -nm -o ./dist-browser/index.min.js ./dist-browser/index.js", "uglify:browsertest": "uglifyjs -o ./browsertest.build/browsertest.min.js ./browsertest.build/browsertest.js", "clean": "./scripts/clean.sh", diff --git a/packages/lisk-constants/package.json b/packages/lisk-constants/package.json index 3e34386d3..7c1e5fbe9 100644 --- a/packages/lisk-constants/package.json +++ b/packages/lisk-constants/package.json @@ -20,13 +20,12 @@ "node": ">=6.3 <=10", "npm": ">=3 <=6" }, - "browser": "dist-browser/index.min.js", "main": "dist-node/index.js", "scripts": { "transpile": "babel src -d dist-node", "transpile:browsertest": "babel src -d ./browsertest.build/src && BABEL_ENV=browsertest babel test -d ./browsertest.build/test", - "browserify": "browserify ./dist-node/index.js -o ./dist-browser/index.js -s lisk --node", - "browserify:browsertest": "browserify ./browsertest.build/test/*.js -o ./browsertest.build/browsertest.js -s lisk", + "browserify": "browserify ./dist-node/index.js -o ./dist-browser/index.js -s liskConstants", + "browserify:browsertest": "browserify ./browsertest.build/test/*.js -o ./browsertest.build/browsertest.js -s liskConstants", "uglify": "uglifyjs -nm -o ./dist-browser/index.min.js ./dist-browser/index.js", "uglify:browsertest": "uglifyjs -o ./browsertest.build/browsertest.min.js ./browsertest.build/browsertest.js", "clean": "./scripts/clean.sh", diff --git a/packages/lisk-cryptography/package.json b/packages/lisk-cryptography/package.json index 3383b542d..65b0722a3 100644 --- a/packages/lisk-cryptography/package.json +++ b/packages/lisk-cryptography/package.json @@ -20,14 +20,13 @@ "node": ">=6.3 <=10", "npm": ">=3 <=6" }, - "browser": "dist-browser/index.min.js", "main": "dist-node/index.js", "scripts": { "transpile": "babel src -d dist-node", "transpile:browsertest": "babel src -d ./browsertest.build/src && BABEL_ENV=browsertest babel test -d ./browsertest.build/test", - "browserify": "browserify ./dist-node/index.js -o ./dist-browser/index.js -s lisk --node", - "browserify:browsertest": "browserify ./browsertest.build/test/*.js -o ./browsertest.build/browsertest.js -s lisk", - "uglify": "uglifyjs -nm -o ./dist-browser/index.min.js ./dist-browser/index.js", + "browserify": "browserify ./dist-node/index.js -o ./dist-browser/index.js", + "browserify:browsertest": "browserify ./browsertest.build/test/*.js -o ./browsertest.build/browsertest.js -s liskCryptography", + "uglify": "uglifyjs -nm -o ./dist-browser/index.min.js ./dist-browser/index.js -s liskCryptography", "uglify:browsertest": "uglifyjs -o ./browsertest.build/browsertest.min.js ./browsertest.build/browsertest.js", "clean": "./scripts/clean.sh", "format": "prettier --write \"*.{js,json}\" \"{src,test}/**/*.{js,json}\"", diff --git a/packages/lisk-elements/package.json b/packages/lisk-elements/package.json index 0b0680c95..52eabef6f 100644 --- a/packages/lisk-elements/package.json +++ b/packages/lisk-elements/package.json @@ -20,15 +20,14 @@ "node": ">=6.3 <=10", "npm": ">=3 <=6" }, - "browser": "dist-browser/index.min.js", "main": "dist-node/index.js", "scripts": { "prestart": "./scripts/prestart.sh", "start": "./scripts/start.sh", "transpile": "babel src -d dist-node", "transpile:browsertest": "babel src -d ./browsertest.build/src && BABEL_ENV=browsertest babel test -d ./browsertest.build/test", - "browserify": "browserify ./dist-node/index.js -o ./dist-browser/index.js -s lisk --node", - "browserify:browsertest": "browserify ./browsertest.build/test/*.js -o ./browsertest.build/browsertest.js -s lisk --node", + "browserify": "browserify ./dist-node/index.js -o ./dist-browser/index.js -s lisk", + "browserify:browsertest": "browserify ./browsertest.build/test/*.js -o ./browsertest.build/browsertest.js -s lisk", "uglify": "uglifyjs -nm -o ./dist-browser/index.min.js ./dist-browser/index.js", "uglify:browsertest": "uglifyjs -o ./browsertest.build/browsertest.min.js ./browsertest.build/browsertest.js", "clean": "./scripts/clean.sh", diff --git a/packages/lisk-passphrase/package.json b/packages/lisk-passphrase/package.json index e1dd94054..6fec5db86 100644 --- a/packages/lisk-passphrase/package.json +++ b/packages/lisk-passphrase/package.json @@ -20,13 +20,12 @@ "node": ">=6.3 <=10", "npm": ">=3 <=6" }, - "browser": "dist-browser/index.min.js", "main": "dist-node/index.js", "scripts": { "transpile": "babel src -d dist-node", "transpile:browsertest": "babel src -d ./browsertest.build/src && BABEL_ENV=browsertest babel test -d ./browsertest.build/test", - "browserify": "browserify ./dist-node/index.js -o ./dist-browser/index.js -s lisk --node", - "browserify:browsertest": "browserify ./browsertest.build/test/*.js -o ./browsertest.build/browsertest.js -s lisk", + "browserify": "browserify ./dist-node/index.js -o ./dist-browser/index.js -s liskPassphrase", + "browserify:browsertest": "browserify ./browsertest.build/test/*.js -o ./browsertest.build/browsertest.js -s liskPassphrase", "uglify": "uglifyjs -nm -o ./dist-browser/index.min.js ./dist-browser/index.js", "uglify:browsertest": "uglifyjs -o ./browsertest.build/browsertest.min.js ./browsertest.build/browsertest.js", "clean": "./scripts/clean.sh", diff --git a/packages/lisk-transactions/package.json b/packages/lisk-transactions/package.json index 14dbd98ce..817dc14df 100644 --- a/packages/lisk-transactions/package.json +++ b/packages/lisk-transactions/package.json @@ -20,13 +20,12 @@ "node": ">=6.3 <=10", "npm": ">=3 <=6" }, - "browser": "dist-browser/index.min.js", "main": "dist-node/index.js", "scripts": { "transpile": "babel src -d dist-node", "transpile:browsertest": "babel src -d ./browsertest.build/src && BABEL_ENV=browsertest babel test -d ./browsertest.build/test", - "browserify": "browserify ./dist-node/index.js -o ./dist-browser/index.js -s lisk --node", - "browserify:browsertest": "browserify ./browsertest.build/test/*.js -o ./browsertest.build/browsertest.js -s lisk", + "browserify": "browserify ./dist-node/index.js -o ./dist-browser/index.js -s liskTransactions", + "browserify:browsertest": "browserify ./browsertest.build/test/*.js -o ./browsertest.build/browsertest.js -s liskTransactions", "uglify": "uglifyjs -nm -o ./dist-browser/index.min.js ./dist-browser/index.js", "uglify:browsertest": "uglifyjs -o ./browsertest.build/browsertest.min.js ./browsertest.build/browsertest.js", "clean": "./scripts/clean.sh",