@hublo/sentinel 1.2.0-alpha.11 → 1.2.0-alpha.12

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.
@@ -22,7 +22,7 @@ import {
22
22
  registerAdapters,
23
23
  resolve,
24
24
  resolveBin
25
- } from "../chunk-6VOQDDZD.js";
25
+ } from "../chunk-I4ATYZKK.js";
26
26
 
27
27
  // bin/sentinel.ts
28
28
  import { program } from "commander";
@@ -504,7 +504,7 @@ function composeDevScript(existing, command) {
504
504
  if (at === -1) return existing;
505
505
  const rest = (chunks[at] ?? "").replace(/^.*?(^|\s|\/)vite(\s|$)/, "");
506
506
  const options = appOptions(rest);
507
- chunks[at] = options === "" ? command : `${command} -- ${options}`;
507
+ chunks[at] = options === "" ? `${command} --` : `${command} -- ${options}`;
508
508
  return chunks.join(CHAIN);
509
509
  }
510
510
 
@@ -858,9 +858,9 @@ function buildScripts(cwd) {
858
858
  const own2 = moduleName(cwd);
859
859
  scripts[DEV_SCRIPT_NAME] = composeDevScript(
860
860
  existingDev,
861
- // Trailing `--` for the same reason as the build script: whatever the caller appends
862
- // reaches Vite, not sentinel's parser. It goes after `--module`, which is sentinel's own.
863
- `${selfCommand(cwd, "--run --dev") ?? SENTINEL_DEV_COMMAND} --module ${own2} --`
861
+ // No trailing `--` here: `composeDevScript` owns the separator, and adding one on both
862
+ // sides produced `-- --`, handing Vite an argument nobody wrote.
863
+ `${selfCommand(cwd, "--run --dev") ?? SENTINEL_DEV_COMMAND} --module ${own2}`
864
864
  );
865
865
  }
866
866
  return scripts;
@@ -6433,4 +6433,4 @@ export {
6433
6433
  detectFramework,
6434
6434
  dispatch
6435
6435
  };
6436
- //# sourceMappingURL=chunk-6VOQDDZD.js.map
6436
+ //# sourceMappingURL=chunk-I4ATYZKK.js.map
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  registerAdapters,
8
8
  resolve,
9
9
  setDefaultRunner
10
- } from "./chunk-6VOQDDZD.js";
10
+ } from "./chunk-I4ATYZKK.js";
11
11
  export {
12
12
  BaseAdapter,
13
13
  all,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hublo/sentinel",
3
- "version": "1.2.0-alpha.11",
3
+ "version": "1.2.0-alpha.12",
4
4
  "description": "One CLI that guards code health across Hublo repos: shared lint/typescript/build/test presets, static & dynamic analysis, and architecture checks.",
5
5
  "type": "module",
6
6
  "license": "MIT",