mb-run 1.0.2 → 1.0.3-dev-20261001-31de29d

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,16 @@ 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
+ - [oxc]: Exclude `scripts` directories from the vendored root lint and format configs.
31
+ - [upgrade]: Drop the npm-only `--no-fund --no-audit` flags from `bun link matterbridge` in the plugin `softReset:bun` script.
32
+ - [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.
33
+
34
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
35
+
26
36
  ## [1.0.2] - 2026-09-29
27
37
 
28
38
  ### 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-20261001-31de29d",
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-20261001-31de29d",
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-20261001-31de29d",
4
4
  "description": "Matterbridge command line executor",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",
@@ -17,6 +17,7 @@
17
17
  "**/node_modules/**",
18
18
  "**/out/**",
19
19
  "**/screenshots/**",
20
+ "**/scripts/**",
20
21
  "vendor/**",
21
22
  "**/package-lock.json",
22
23
  "**/bun.lock"
@@ -17,6 +17,7 @@
17
17
  "**/node_modules/**",
18
18
  "**/out/**",
19
19
  "**/screenshots/**",
20
+ "**/scripts/**",
20
21
  "vendor/**",
21
22
  "**/package-lock.json",
22
23
  "**/bun.lock"
@@ -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.
@@ -22,11 +22,12 @@
22
22
  */
23
23
 
24
24
  /* oxlint-disable no-console */
25
+ /* oxlint-disable typescript/prefer-nullish-coalescing */
25
26
 
26
27
  import { lstatSync, existsSync, readdirSync, readFileSync, rmSync } from 'node:fs';
27
28
  import path from 'node:path';
28
29
 
29
- const version = '1.3.0';
30
+ const version = '1.3.1';
30
31
  const scriptName = path.basename(import.meta.filename);
31
32
 
32
33
  /**
@@ -102,8 +103,10 @@ const rm = (dir, target) => {
102
103
  let stats;
103
104
  try {
104
105
  stats = lstatSync(path.resolve(dir, target));
105
- } catch {
106
- return; // Path does not exist, nothing to remove and nothing to log.
106
+ } catch (error) {
107
+ if (error.code === 'ENOENT') return; // Path does not exist, nothing to remove and nothing to log.
108
+ console.warn(`Skipped unreadable path (${error.code}): ${error.path ?? target}`);
109
+ return;
107
110
  }
108
111
 
109
112
  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 \
@@ -29,11 +29,12 @@
29
29
  */
30
30
 
31
31
  /* oxlint-disable no-console */
32
+ /* oxlint-disable typescript/prefer-nullish-coalescing */
32
33
 
33
34
  import { existsSync, lstatSync, readdirSync, readFileSync, rmSync } from 'node:fs';
34
35
  import path from 'node:path';
35
36
 
36
- const version = '1.3.0';
37
+ const version = '1.3.1';
37
38
  const scriptName = path.basename(import.meta.filename);
38
39
 
39
40
  /**
@@ -111,8 +112,10 @@ const rm = (dir, target) => {
111
112
  let stats;
112
113
  try {
113
114
  stats = lstatSync(path.resolve(dir, target));
114
- } catch {
115
- return null; // Path does not exist, nothing to remove and nothing to log.
115
+ } catch (error) {
116
+ if (error.code === 'ENOENT') return null; // Path does not exist, nothing to remove and nothing to log.
117
+ console.warn(`Skipped unreadable path (${error.code}): ${error.path ?? target}`);
118
+ return null;
116
119
  }
117
120
 
118
121
  try {
@@ -9,6 +9,7 @@
9
9
  */
10
10
 
11
11
  /* oxlint-disable no-console */
12
+ /* oxlint-disable typescript/prefer-nullish-coalescing */
12
13
 
13
14
  import { spawnSync } from 'node:child_process';
14
15
  import { createInterface } from 'node:readline';
@@ -10,6 +10,7 @@
10
10
  */
11
11
 
12
12
  /* oxlint-disable no-console */
13
+ /* oxlint-disable typescript/prefer-nullish-coalescing */
13
14
 
14
15
  import { execFileSync } from 'node:child_process';
15
16
  import fs from 'node:fs/promises';