diff --git a/app/package.json b/app/package.json index abcef29..20fd8d7 100644 --- a/app/package.json +++ b/app/package.json @@ -4,7 +4,7 @@ "license": "MIT", "scripts": { "build": "webpack --mode production", - "clean": "rm -rf yarn.lock node_modules/* && yarn", + "clean": "rm -rf yarn.lock build node_modules/* && yarn", "dev": "webpack --mode development", "docker": "yarn run build && docker build", "electron": "electron build/electron.js", diff --git a/config/package/package.json b/config/package/package.json index 86ff0c5..b650a72 100644 --- a/config/package/package.json +++ b/config/package/package.json @@ -7,11 +7,8 @@ "scripts": { "build": "NODE_PATH=./node_modules webpack --mode production", "clean": "rm -rf yarn.lock node_modules $(node -e \"process.stdout.write(require('./package.json').files.join(' '));\") && yarn", - "dev": "NODE_PATH=./node_modules webpack --mode development", - "forcepub": "npm unpublish --force $(node -e 'const {name, version} = require(`./package.json`); process.stdout.write(`${name}@${version}`)') && npm publish", "lint": "NODE_PATH=./node_modules eslint --format codeframe --ext mjs,js .", - "test": "mocha --colors test.js", - "watch": "NODE_PATH=./node_modules webpack --watch --mode development" + "test": "yarn --silent run build --display none && mocha --colors test.js" }, "files": [ "index.js", diff --git a/package.json b/package.json index 767047f..7b1d8b3 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,8 @@ "forcepub": "lerna run forcepub", "lint": "lerna run lint", "package": "node ./package.js", + "refresh": "yarn run clean && npx lerna exec link-all && yarn run build && yarn run test", + "refresh": "yarn run clean && npx lerna exec link-all && yarn run build && yarn run test", "test": "lerna run test --no-bail -- --silent", "watch": "lerna run watch --parallel" }, diff --git a/packages/core/package.json b/packages/core/package.json index f9e0270..36629cf 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -7,11 +7,8 @@ "scripts": { "build": "NODE_PATH=./node_modules webpack --mode production", "clean": "rm -rf yarn.lock node_modules $(node -e \"process.stdout.write(require('./package.json').files.join(' '));\") && yarn", - "dev": "NODE_PATH=./node_modules webpack --mode development", - "forcepub": "npm unpublish --force $(node -e 'const {name, version} = require(`./package.json`); process.stdout.write(`${name}@${version}`)') && npm publish", "lint": "NODE_PATH=./node_modules eslint --format codeframe --ext mjs,js .", - "test": "mocha --colors test.js", - "watch": "NODE_PATH=./node_modules webpack --watch --mode development" + "test": "yarn --silent run build --display none && mocha --colors test.js" }, "files": [ "index.js", diff --git a/packages/json/package.json b/packages/json/package.json index 3b61313..3f23ce0 100644 --- a/packages/json/package.json +++ b/packages/json/package.json @@ -7,11 +7,8 @@ "scripts": { "build": "NODE_PATH=./node_modules webpack --mode production", "clean": "rm -rf yarn.lock node_modules $(node -e \"process.stdout.write(require('./package.json').files.join(' '));\") && yarn", - "dev": "NODE_PATH=./node_modules webpack --mode development", - "forcepub": "npm unpublish --force $(node -e 'const {name, version} = require(`./package.json`); process.stdout.write(`${name}@${version}`)') && npm publish", "lint": "NODE_PATH=./node_modules eslint --format codeframe --ext mjs,js .", - "test": "mocha --colors test.js", - "watch": "NODE_PATH=./node_modules webpack --watch --mode development" + "test": "yarn --silent run build --display none && mocha --colors test.js" }, "files": [ "index.js",