diff --git a/app/package.json b/app/package.json index a366dc5..6504e15 100644 --- a/app/package.json +++ b/app/package.json @@ -5,10 +5,8 @@ "scripts": { "build": "webpack --mode production", "clean": "rm -rf yarn.lock build node_modules/* && yarn", - "dev": "webpack --mode development", "docker": "yarn run build && docker build", "electron": "electron build/electron.js", - "forcelatus": "pkgs=$(find node_modules/@latus -maxdepth 1 -mindepth 1 -printf '@latus/%f '); yarn upgrade $pkgs", "lint": "eslint --cache --format codeframe --ext mjs,jsx,js src", "repl": "rlwrap -C qmp socat STDIO UNIX:$(ls /tmp/persea-*.sock | tail -n 1)", "start": "NODE_ENV=production node build/index.js", diff --git a/config/package/package.json b/config/package/package.json index b650a72..28e058c 100644 --- a/config/package/package.json +++ b/config/package/package.json @@ -6,7 +6,8 @@ "license": "MIT", "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", + "clean": "rm -rf yarn.lock node_modules $(node -e \"process.stdout.write(require('./package.json').files.filter((file) => {const parts = file.split('/'); return 1 === parts.length || 'test' !== parts[0];}).join(' '));\") && yarn", + "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": "yarn --silent run build --display none && mocha --colors test.js" }, diff --git a/packages/bootstrap/package.json b/packages/bootstrap/package.json index 253d950..5bbfba2 100644 --- a/packages/bootstrap/package.json +++ b/packages/bootstrap/package.json @@ -6,7 +6,8 @@ "license": "MIT", "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", + "clean": "rm -rf yarn.lock node_modules $(node -e \"process.stdout.write(require('./package.json').files.filter((file) => {const parts = file.split('/'); return 1 === parts.length || 'test' !== parts[0];}).join(' '));\") && yarn", + "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": "yarn --silent run build --display none && mocha --colors test.js" }, diff --git a/packages/core/package.json b/packages/core/package.json index 36629cf..d814fff 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -6,7 +6,8 @@ "license": "MIT", "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", + "clean": "rm -rf yarn.lock node_modules $(node -e \"process.stdout.write(require('./package.json').files.filter((file) => {const parts = file.split('/'); return 1 === parts.length || 'test' !== parts[0];}).join(' '));\") && yarn", + "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": "yarn --silent run build --display none && mocha --colors test.js" }, diff --git a/packages/json/package.json b/packages/json/package.json index 3f23ce0..be1a7b2 100644 --- a/packages/json/package.json +++ b/packages/json/package.json @@ -6,7 +6,8 @@ "license": "MIT", "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", + "clean": "rm -rf yarn.lock node_modules $(node -e \"process.stdout.write(require('./package.json').files.filter((file) => {const parts = file.split('/'); return 1 === parts.length || 'test' !== parts[0];}).join(' '));\") && yarn", + "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": "yarn --silent run build --display none && mocha --colors test.js" },