mb-run 1.0.2 → 1.0.3-dev-20260930-ab153da

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -23,6 +23,15 @@ If you like this project and find it useful, please consider giving it a star on
23
23
 
24
24
  <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="120"></a>
25
25
 
26
+ ## [1.0.3] - Dev branch
27
+
28
+ ### Fixed
29
+
30
+ - [upgrade]: Drop the npm-only `--no-fund --no-audit` flags from `bun link matterbridge` in the plugin `softReset:bun` script.
31
+ - [scripts]: Bump the vendored `scripts/clean.mjs` and `scripts/deep-clean.mjs` to v.1.3.1, which warn on unreadable paths instead of silently skipping them.
32
+
33
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
34
+
26
35
  ## [1.0.2] - 2026-09-29
27
36
 
28
37
  ### Added
package/dist/upgrade.js CHANGED
@@ -510,7 +510,7 @@ export async function runPackageJsonUpgrade(opts, pkgPath, pkgJson, isMonorepo =
510
510
  'chip:stop': automator?.chip === true ? 'node scripts/run-chip-tests.mjs --stop' : undefined,
511
511
  'reset': 'npm run deepClean && npm run softReset',
512
512
  'softReset': `npm install --no-fund --no-audit && npm prune --no-fund --no-audit${isPlugin ? ' && npm link --no-fund --no-audit matterbridge' : ''} && npm run build && npm run typecheck`,
513
- 'softReset:bun': `bun install && bun prune${isPlugin ? ' && bun link --no-fund --no-audit matterbridge' : ''} && bun run build && bun run typecheck`,
513
+ 'softReset:bun': `bun install && bun prune${isPlugin ? ' && bun link matterbridge' : ''} && bun run build && bun run typecheck`,
514
514
  'checkDependencies': `npm install --no-fund --no-audit --no-save npm-check-updates && ncu && npm run softReset`,
515
515
  'updateDependencies': `npm install --no-fund --no-audit --no-save npm-check-updates && ncu -u && npm run softReset`,
516
516
  'runMeBeforePublish': 'npm run cleanBuild && npm run format && npm run lint && npm run build && npm run typecheck' +
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "mb-run",
3
- "version": "1.0.2",
3
+ "version": "1.0.3-dev-20260930-ab153da",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "mb-run",
9
- "version": "1.0.2",
9
+ "version": "1.0.3-dev-20260930-ab153da",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "cross-spawn": "7.0.6",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mb-run",
3
- "version": "1.0.2",
3
+ "version": "1.0.3-dev-20260930-ab153da",
4
4
  "description": "Matterbridge command line executor",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * clean.mjs
3
- * Version: 1.3.0
3
+ * Version: 1.3.1
4
4
  *
5
5
  * Dependency-free replacement for `npx shx rm -rf *.tsbuildinfo dist build`.
6
6
  * Removes every *.tsbuildinfo file in the current directory and the dist and build directories.
@@ -26,7 +26,7 @@
26
26
  import { lstatSync, existsSync, readdirSync, readFileSync, rmSync } from 'node:fs';
27
27
  import path from 'node:path';
28
28
 
29
- const version = '1.3.0';
29
+ const version = '1.3.1';
30
30
  const scriptName = path.basename(import.meta.filename);
31
31
 
32
32
  /**
@@ -102,8 +102,10 @@ const rm = (dir, target) => {
102
102
  let stats;
103
103
  try {
104
104
  stats = lstatSync(path.resolve(dir, target));
105
- } catch {
106
- return; // Path does not exist, nothing to remove and nothing to log.
105
+ } catch (error) {
106
+ if (error.code === 'ENOENT') return; // Path does not exist, nothing to remove and nothing to log.
107
+ console.warn(`Skipped unreadable path (${error.code}): ${error.path ?? target}`);
108
+ return;
107
109
  }
108
110
 
109
111
  try {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * deep-clean.mjs
3
- * Version: 1.3.0
3
+ * Version: 1.3.1
4
4
  *
5
5
  * Dependency-free replacement for:
6
6
  * npx shx rm -rf *.tsbuildinfo dist build coverage jest temp bun.lock package-lock.json npm-shrinkwrap.json \
@@ -33,7 +33,7 @@
33
33
  import { existsSync, lstatSync, readdirSync, readFileSync, rmSync } from 'node:fs';
34
34
  import path from 'node:path';
35
35
 
36
- const version = '1.3.0';
36
+ const version = '1.3.1';
37
37
  const scriptName = path.basename(import.meta.filename);
38
38
 
39
39
  /**
@@ -111,8 +111,10 @@ const rm = (dir, target) => {
111
111
  let stats;
112
112
  try {
113
113
  stats = lstatSync(path.resolve(dir, target));
114
- } catch {
115
- return null; // Path does not exist, nothing to remove and nothing to log.
114
+ } catch (error) {
115
+ if (error.code === 'ENOENT') return null; // Path does not exist, nothing to remove and nothing to log.
116
+ console.warn(`Skipped unreadable path (${error.code}): ${error.path ?? target}`);
117
+ return null;
116
118
  }
117
119
 
118
120
  try {