@mnci/cli 4.17.1 → 4.17.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/README.md CHANGED
@@ -1521,7 +1521,7 @@ pipeline installs `golangci-lint` itself (see below).
1521
1521
  test file's import). That matters because the pipeline verifies only the
1522
1522
  affected projects on a pull request: a missing edge would let a lib change
1523
1523
  pass without testing the apps that use it. The e2e pins the edges and the
1524
- affected sets (russoedu/MoNecromanCi#260), since they are the plugin's
1524
+ affected sets (MoNecromanCI/MoNecromanCi#260), since they are the plugin's
1525
1525
  behaviour rather than mnci's.
1526
1526
  - **Lint is `golangci-lint`, pinned deliberately.** The plugin's `lint`
1527
1527
  executor defaults to `go fmt`, which only reformats — a green lint step
@@ -1572,7 +1572,7 @@ pipeline installs `golangci-lint` itself (see below).
1572
1572
  `linux-arm64` and `windows-arm64` are not built: they need an Intel macOS
1573
1573
  runner, an arm Linux runner or a cross-compiler. The legs are fixed in the
1574
1574
  generated pipeline today, so adding one means editing a file `mnci upgrade`
1575
- rewrites (russoedu/MoNecromanCi#269 is about giving that a safe place).
1575
+ rewrites (MoNecromanCI/MoNecromanCi#269 is about giving that a safe place).
1576
1576
  - **Releasing one.** With `--release` as well, each leg, on a push to main and
1577
1577
  after the `ci` job has tagged, runs
1578
1578
  `node tools/go-app-release.cjs assets --native`, which builds
package/dist/cli.js CHANGED
@@ -2405,7 +2405,7 @@ function writeProjectReadme(projectRoot, projectName, testRunner) {
2405
2405
  [
2406
2406
  `# ${projectName}`,
2407
2407
  "",
2408
- "Generated by [MoNecromanCI](https://github.com/russoedu/MoNecromanCi).",
2408
+ "Generated by [MoNecromanCI](https://github.com/MoNecromanCI/MoNecromanCi).",
2409
2409
  "",
2410
2410
  "## Building",
2411
2411
  "",
@@ -4560,6 +4560,7 @@ function addReactInternalLib(workspaceRoot, name, stack) {
4560
4560
  var import_node_fs15 = require("fs");
4561
4561
  var import_node_path19 = require("path");
4562
4562
  var VSCODE_EXTENSION_SCRIPT_PATH = "tools/vscode-extension.cjs";
4563
+ var VSCODE_ENGINE_FLOOR = "1.96.0";
4563
4564
  var VSCODE_SIDECAR_TARGETS = {
4564
4565
  "win32-x64": "windows-amd64",
4565
4566
  "win32-arm64": "windows-arm64",
@@ -4753,20 +4754,20 @@ function mapVscodeToStub(projectRoot, testRunner) {
4753
4754
  ${indent}${mapping}`));
4754
4755
  }
4755
4756
  function ensureVscodeToolchain(workspaceRoot) {
4756
- const missing = ["@types/vscode", "@vscode/vsce"].filter((name) => !hasPlugin(workspaceRoot, name));
4757
- if (missing.length === 0) {
4758
- return;
4757
+ const toInstall = [`@types/vscode@~${VSCODE_ENGINE_FLOOR}`];
4758
+ if (!hasPlugin(workspaceRoot, "@vscode/vsce")) {
4759
+ toInstall.push("@vscode/vsce");
4759
4760
  }
4760
- logger.step(`Installing the VS Code extension toolchain (${missing.join(", ")})`);
4761
- if (runShell("npm", ["install", "--save-dev", ...missing, "--no-audit", "--no-fund"], workspaceRoot) !== 0) {
4762
- throw new Error(`npm install of ${missing.join(", ")} failed`);
4761
+ logger.step(`Installing the VS Code extension toolchain (${toInstall.join(", ")})`);
4762
+ if (runShell("npm", ["install", "--save-dev", ...toInstall, "--no-audit", "--no-fund"], workspaceRoot) !== 0) {
4763
+ throw new Error(`npm install of ${toInstall.join(", ")} failed`);
4763
4764
  }
4764
4765
  }
4765
4766
  function defaultPublisher(workspaceRoot) {
4766
4767
  const { name } = readJson((0, import_node_path19.join)(workspaceRoot, "package.json"));
4767
4768
  return (name ?? "publisher").replace(/^@/, "").split("/", 1)[0];
4768
4769
  }
4769
- function reshapeManifest(projectRoot, name, publisher, typesVersion) {
4770
+ function reshapeManifest(projectRoot, name, publisher) {
4770
4771
  const manifestPath = (0, import_node_path19.join)(projectRoot, "package.json");
4771
4772
  const manifest = readJson(manifestPath);
4772
4773
  const { nx = {}, ...rest } = manifest;
@@ -4793,7 +4794,7 @@ function reshapeManifest(projectRoot, name, publisher, typesVersion) {
4793
4794
  displayName: name,
4794
4795
  version: rest.version ?? "0.0.1",
4795
4796
  publisher,
4796
- engines: { vscode: `^${typesVersion}` },
4797
+ engines: { vscode: `^${VSCODE_ENGINE_FLOOR}` },
4797
4798
  categories: ["Other"],
4798
4799
  main: "./dist/main.js",
4799
4800
  activationEvents: [],
@@ -4926,8 +4927,7 @@ function addVscodeExtension(workspaceRoot, name, stack, options = {}) {
4926
4927
  runNodeApp(workspaceRoot, name, stack, "none");
4927
4928
  ensureVscodeToolchain(workspaceRoot);
4928
4929
  const projectRoot = (0, import_node_path19.join)(workspaceRoot, "apps", name);
4929
- const typesVersion = readJson((0, import_node_path19.join)(workspaceRoot, "node_modules/@types/vscode/package.json")).version;
4930
- reshapeManifest(projectRoot, name, options.publisher ?? defaultPublisher(workspaceRoot), typesVersion);
4930
+ reshapeManifest(projectRoot, name, options.publisher ?? defaultPublisher(workspaceRoot));
4931
4931
  addVscodeTypes((0, import_node_path19.join)(projectRoot, "tsconfig.app.json"));
4932
4932
  addVscodeTypes((0, import_node_path19.join)(projectRoot, "tsconfig.spec.json"));
4933
4933
  writeFileEnsured((0, import_node_path19.join)(projectRoot, "src/main.ts"), vscodeExtensionMain(name));