From 6ccb5df6222a0e37e6083b6588b80d7d05894625 Mon Sep 17 00:00:00 2001 From: cha0s Date: Sun, 20 Dec 2020 13:52:36 -0600 Subject: [PATCH] refactor: targeted forcepub --- config/package/package.json | 2 +- packages/core/package.json | 2 +- packages/db/package.json | 2 +- packages/governor/package.json | 2 +- packages/http/package.json | 2 +- packages/react/package.json | 2 +- packages/redis/package.json | 2 +- packages/redux/package.json | 2 +- packages/repl/package.json | 2 +- packages/socket/package.json | 2 +- packages/user/package.json | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/config/package/package.json b/config/package/package.json index 525356b..1e63e5e 100644 --- a/config/package/package.json +++ b/config/package/package.json @@ -8,7 +8,7 @@ "build": "NODE_PATH=./node_modules webpack --mode production", "clean": "rm -f yarn.lock && yarn", "dev": "NODE_PATH=./node_modules webpack --mode development", - "forcepub": "npm unpublish --force $(node -e 'process.stdout.write(require(`./package.json`).name)') && npm publish", + "forcepub": "npm unpublish --force $(node -e 'const {name, version} = require(`./package.json`); process.stdout.write(`${name}@${version}`)') && npm publish", "link": "node -e \"Object.keys(require('./package.json').dependencies).filter((m) => 0 === m.indexOf('@latus/')).forEach((m) => require('child_process').spawn('yarn', ['link', m]));\"", "lint": "NODE_PATH=./node_modules eslint --format codeframe --ext mjs,js .", "test": "NODE_PATH=./node_modules mocha --config ../../config/.mocharc.js", diff --git a/packages/core/package.json b/packages/core/package.json index 5b17c43..1886d9f 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -8,7 +8,7 @@ "build": "NODE_PATH=./node_modules webpack --mode production", "clean": "rm -f yarn.lock && yarn", "dev": "NODE_PATH=./node_modules webpack --mode development", - "forcepub": "npm unpublish --force $(node -e 'process.stdout.write(require(`./package.json`).name)') && npm publish", + "forcepub": "npm unpublish --force $(node -e 'const {name, version} = require(`./package.json`); process.stdout.write(`${name}@${version}`)') && npm publish", "link": "node -e \"Object.keys(require('./package.json').dependencies).filter((m) => 0 === m.indexOf('@latus/')).forEach((m) => require('child_process').spawn('yarn', ['link', m]));\"", "lint": "NODE_PATH=./node_modules eslint --format codeframe --ext mjs,js .", "test": "NODE_PATH=./node_modules mocha --config ../../config/.mocharc.js", diff --git a/packages/db/package.json b/packages/db/package.json index ef2e5ff..6f56abc 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -8,7 +8,7 @@ "build": "NODE_PATH=./node_modules webpack --mode production", "clean": "rm -f yarn.lock && yarn", "dev": "NODE_PATH=./node_modules webpack --mode development", - "forcepub": "npm unpublish --force $(node -e 'process.stdout.write(require(`./package.json`).name)') && npm publish", + "forcepub": "npm unpublish --force $(node -e 'const {name, version} = require(`./package.json`); process.stdout.write(`${name}@${version}`)') && npm publish", "link": "node -e \"Object.keys(require('./package.json').dependencies).filter((m) => 0 === m.indexOf('@latus/')).forEach((m) => require('child_process').spawn('yarn', ['link', m]));\"", "lint": "NODE_PATH=./node_modules eslint --format codeframe --ext mjs,js .", "test": "NODE_PATH=./node_modules mocha --config ../../config/.mocharc.js", diff --git a/packages/governor/package.json b/packages/governor/package.json index 2ad35f9..1cc5df1 100644 --- a/packages/governor/package.json +++ b/packages/governor/package.json @@ -8,7 +8,7 @@ "build": "NODE_PATH=./node_modules webpack --mode production", "clean": "rm -f yarn.lock && yarn", "dev": "NODE_PATH=./node_modules webpack --mode development", - "forcepub": "npm unpublish --force $(node -e 'process.stdout.write(require(`./package.json`).name)') && npm publish", + "forcepub": "npm unpublish --force $(node -e 'const {name, version} = require(`./package.json`); process.stdout.write(`${name}@${version}`)') && npm publish", "link": "node -e \"Object.keys(require('./package.json').dependencies).filter((m) => 0 === m.indexOf('@latus/')).forEach((m) => require('child_process').spawn('yarn', ['link', m]));\"", "lint": "NODE_PATH=./node_modules eslint --format codeframe --ext mjs,js .", "test": "NODE_PATH=./node_modules mocha --config ../../config/.mocharc.js", diff --git a/packages/http/package.json b/packages/http/package.json index 7699754..42fb2a5 100644 --- a/packages/http/package.json +++ b/packages/http/package.json @@ -8,7 +8,7 @@ "build": "NODE_PATH=./node_modules webpack --mode production", "clean": "rm -f yarn.lock && yarn", "dev": "NODE_PATH=./node_modules webpack --mode development", - "forcepub": "npm unpublish --force $(node -e 'process.stdout.write(require(`./package.json`).name)') && npm publish", + "forcepub": "npm unpublish --force $(node -e 'const {name, version} = require(`./package.json`); process.stdout.write(`${name}@${version}`)') && npm publish", "link": "node -e \"Object.keys(require('./package.json').dependencies).filter((m) => 0 === m.indexOf('@latus/')).forEach((m) => require('child_process').spawn('yarn', ['link', m]));\"", "lint": "NODE_PATH=./node_modules eslint --format codeframe --ext mjs,js .", "test": "NODE_PATH=./node_modules mocha --config ../../config/.mocharc.js", diff --git a/packages/react/package.json b/packages/react/package.json index 4c686a2..271d72d 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -8,7 +8,7 @@ "build": "NODE_PATH=./node_modules webpack --mode production", "clean": "rm -f yarn.lock && yarn", "dev": "NODE_PATH=./node_modules webpack --mode development", - "forcepub": "npm unpublish --force $(node -e 'process.stdout.write(require(`./package.json`).name)') && npm publish", + "forcepub": "npm unpublish --force $(node -e 'const {name, version} = require(`./package.json`); process.stdout.write(`${name}@${version}`)') && npm publish", "link": "node -e \"Object.keys(require('./package.json').dependencies).filter((m) => 0 === m.indexOf('@latus/')).forEach((m) => require('child_process').spawn('yarn', ['link', m]));\"", "lint": "NODE_PATH=./node_modules eslint --format codeframe --ext mjs,js .", "test": "NODE_PATH=./node_modules mocha --config ../../config/.mocharc.js", diff --git a/packages/redis/package.json b/packages/redis/package.json index a89dd3b..e695eb8 100644 --- a/packages/redis/package.json +++ b/packages/redis/package.json @@ -8,7 +8,7 @@ "build": "NODE_PATH=./node_modules webpack --mode production", "clean": "rm -f yarn.lock && yarn", "dev": "NODE_PATH=./node_modules webpack --mode development", - "forcepub": "npm unpublish --force $(node -e 'process.stdout.write(require(`./package.json`).name)') && npm publish", + "forcepub": "npm unpublish --force $(node -e 'const {name, version} = require(`./package.json`); process.stdout.write(`${name}@${version}`)') && npm publish", "link": "node -e \"Object.keys(require('./package.json').dependencies).filter((m) => 0 === m.indexOf('@latus/')).forEach((m) => require('child_process').spawn('yarn', ['link', m]));\"", "lint": "NODE_PATH=./node_modules eslint --format codeframe --ext mjs,js .", "test": "NODE_PATH=./node_modules mocha --config ../../config/.mocharc.js", diff --git a/packages/redux/package.json b/packages/redux/package.json index 34a4f4f..5ed3817 100644 --- a/packages/redux/package.json +++ b/packages/redux/package.json @@ -8,7 +8,7 @@ "build": "NODE_PATH=./node_modules webpack --mode production", "clean": "rm -f yarn.lock && yarn", "dev": "NODE_PATH=./node_modules webpack --mode development", - "forcepub": "npm unpublish --force $(node -e 'process.stdout.write(require(`./package.json`).name)') && npm publish", + "forcepub": "npm unpublish --force $(node -e 'const {name, version} = require(`./package.json`); process.stdout.write(`${name}@${version}`)') && npm publish", "link": "node -e \"Object.keys(require('./package.json').dependencies).filter((m) => 0 === m.indexOf('@latus/')).forEach((m) => require('child_process').spawn('yarn', ['link', m]));\"", "lint": "NODE_PATH=./node_modules eslint --format codeframe --ext mjs,js .", "test": "NODE_PATH=./node_modules mocha --config ../../config/.mocharc.js", diff --git a/packages/repl/package.json b/packages/repl/package.json index 4d4108b..f776d65 100644 --- a/packages/repl/package.json +++ b/packages/repl/package.json @@ -8,7 +8,7 @@ "build": "NODE_PATH=./node_modules webpack --mode production", "clean": "rm -f yarn.lock && yarn", "dev": "NODE_PATH=./node_modules webpack --mode development", - "forcepub": "npm unpublish --force $(node -e 'process.stdout.write(require(`./package.json`).name)') && npm publish", + "forcepub": "npm unpublish --force $(node -e 'const {name, version} = require(`./package.json`); process.stdout.write(`${name}@${version}`)') && npm publish", "link": "node -e \"Object.keys(require('./package.json').dependencies).filter((m) => 0 === m.indexOf('@latus/')).forEach((m) => require('child_process').spawn('yarn', ['link', m]));\"", "lint": "NODE_PATH=./node_modules eslint --format codeframe --ext mjs,js .", "test": "NODE_PATH=./node_modules mocha --config ../../config/.mocharc.js", diff --git a/packages/socket/package.json b/packages/socket/package.json index d2c3002..2f151c3 100644 --- a/packages/socket/package.json +++ b/packages/socket/package.json @@ -8,7 +8,7 @@ "build": "NODE_PATH=./node_modules webpack --mode production", "clean": "rm -f yarn.lock && yarn", "dev": "NODE_PATH=./node_modules webpack --mode development", - "forcepub": "npm unpublish --force $(node -e 'process.stdout.write(require(`./package.json`).name)') && npm publish", + "forcepub": "npm unpublish --force $(node -e 'const {name, version} = require(`./package.json`); process.stdout.write(`${name}@${version}`)') && npm publish", "link": "node -e \"Object.keys(require('./package.json').dependencies).filter((m) => 0 === m.indexOf('@latus/')).forEach((m) => require('child_process').spawn('yarn', ['link', m]));\"", "lint": "NODE_PATH=./node_modules eslint --format codeframe --ext mjs,js .", "test": "NODE_PATH=./node_modules mocha --config ../../config/.mocharc.js", diff --git a/packages/user/package.json b/packages/user/package.json index a932fe4..f95111e 100644 --- a/packages/user/package.json +++ b/packages/user/package.json @@ -8,7 +8,7 @@ "build": "NODE_PATH=./node_modules webpack --mode production", "clean": "rm -f yarn.lock && yarn", "dev": "NODE_PATH=./node_modules webpack --mode development", - "forcepub": "npm unpublish --force $(node -e 'process.stdout.write(require(`./package.json`).name)') && npm publish", + "forcepub": "npm unpublish --force $(node -e 'const {name, version} = require(`./package.json`); process.stdout.write(`${name}@${version}`)') && npm publish", "link": "node -e \"Object.keys(require('./package.json').dependencies).filter((m) => 0 === m.indexOf('@latus/')).forEach((m) => require('child_process').spawn('yarn', ['link', m]));\"", "lint": "NODE_PATH=./node_modules eslint --format codeframe --ext mjs,js .", "test": "NODE_PATH=./node_modules mocha --config ../../config/.mocharc.js",