voidflow 0.12.0 → 0.12.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "voidflow",
3
- "version": "0.12.0",
3
+ "version": "0.12.3",
4
4
  "description": "Shared workflows, actions and tooling for @taraxvoid sites",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -52,5 +52,8 @@
52
52
  "devDependencies": {
53
53
  "@playwright/test": "^1.40.0",
54
54
  "@socketsecurity/bun-security-scanner": "^1.1.3"
55
+ },
56
+ "dependencies": {
57
+ "license-checker-rseidelsohn": "5.0.1"
55
58
  }
56
59
  }
@@ -2,14 +2,18 @@
2
2
  /**
3
3
  * Shared license policy check for the Astro/bun site stack: fail on GPL kudzu.
4
4
  *
5
- * Runs `license-checker` against the current working directory (the caller's
5
+ * Runs `license-checker-rseidelsohn` against the current working directory (the caller's
6
6
  * repo root) and exits non-zero if any installed package carries a blocked
7
- * license.
7
+ * license. The checker is voidflow's own exact-pinned dependency, resolved from
8
+ * voidflow's install rather than `bunx`, so every site runs the same version
9
+ * and nothing is fetched at check time.
8
10
  *
9
11
  * Usage: bun check-licenses.ts
10
12
  */
11
13
 
12
14
  import { spawnSync } from 'node:child_process'
15
+ import { readFileSync } from 'node:fs'
16
+ import { dirname, join } from 'node:path'
13
17
 
14
18
  export const FAIL_ON = [
15
19
  'GPL-1.0',
@@ -41,15 +45,26 @@ export const FAIL_ON = [
41
45
  // modifying/statically linking the library, not on depending on it as-is.
42
46
  ].join(';')
43
47
 
48
+ const checkerPkg = Bun.resolveSync(
49
+ 'license-checker-rseidelsohn/package.json',
50
+ import.meta.dir,
51
+ )
52
+ const checkerBin = join(
53
+ dirname(checkerPkg),
54
+ JSON.parse(readFileSync(checkerPkg, 'utf8')).bin[
55
+ 'license-checker-rseidelsohn'
56
+ ],
57
+ )
58
+
44
59
  const result = spawnSync(
45
- 'bunx',
46
- ['license-checker', '--summary', '--failOn', FAIL_ON],
60
+ process.execPath,
61
+ [checkerBin, '--summary', '--failOn', FAIL_ON],
47
62
  { cwd: process.cwd(), stdio: 'inherit' },
48
63
  )
49
64
 
50
65
  if (result.error) {
51
66
  console.error(
52
- `\ncheck:licenses failed - could not run license-checker: ${result.error.message}`,
67
+ `\ncheck:licenses failed - could not run license-checker-rseidelsohn: ${result.error.message}`,
53
68
  )
54
69
  process.exit(1)
55
70
  }