@mnci/cli 4.34.0 → 4.35.0
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/dist/cli.js +9 -1
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -695,6 +695,10 @@ var ESLINT_CONFIG_VERSION = ">=0.1.0 <1.0.0";
|
|
|
695
695
|
function eslintConfigSpec() {
|
|
696
696
|
return process.env.MNCI_ESLINT_CONFIG_SPEC ?? ESLINT_CONFIG_VERSION;
|
|
697
697
|
}
|
|
698
|
+
var CLI_VERSION = ">=4.0.0 <5.0.0";
|
|
699
|
+
function cliSpec() {
|
|
700
|
+
return process.env.MNCI_CLI_SPEC ?? CLI_VERSION;
|
|
701
|
+
}
|
|
698
702
|
var ESLINT_VERSION = "^10.8.0";
|
|
699
703
|
function devcontainerJson(workspaceName) {
|
|
700
704
|
return `${toJson({
|
|
@@ -786,6 +790,9 @@ function eslintToolchainDependencies(nxVersion) {
|
|
|
786
790
|
"@mnci/eslint-config": eslintConfigSpec()
|
|
787
791
|
};
|
|
788
792
|
}
|
|
793
|
+
function mnciToolchainDependencies(nxVersion) {
|
|
794
|
+
return { ...eslintToolchainDependencies(nxVersion), "@mnci/cli": cliSpec() };
|
|
795
|
+
}
|
|
789
796
|
var RETIRED_FORMATTER_FILES = [
|
|
790
797
|
".prettierrc",
|
|
791
798
|
".prettierrc.json",
|
|
@@ -2235,7 +2242,7 @@ function applyOverlay(workspaceRoot, options, onProgress = () => {
|
|
|
2235
2242
|
...existingDevDeps,
|
|
2236
2243
|
...TS_COMPILER_DEPENDENCIES,
|
|
2237
2244
|
// The preset pins `nx` itself; the ESLint plugins must match it exactly.
|
|
2238
|
-
...
|
|
2245
|
+
...mnciToolchainDependencies(existingDevDeps?.nx ?? "latest")
|
|
2239
2246
|
}),
|
|
2240
2247
|
LOCAL_REGISTRY_SCAFFOLDING.devDependency
|
|
2241
2248
|
);
|
|
@@ -8517,6 +8524,7 @@ function runUpgrade(workspaceRoot, options) {
|
|
|
8517
8524
|
);
|
|
8518
8525
|
runFormatter(workspaceRoot);
|
|
8519
8526
|
logger.success("Done. Review the changes with `git diff` before committing.");
|
|
8527
|
+
logger.info("Run `npm install` and commit package-lock.json too: the overlay may have added or moved a dependency, and CI installs with `npm ci`, which refuses a stale lockfile.");
|
|
8520
8528
|
}
|
|
8521
8529
|
|
|
8522
8530
|
// src/workspace-creation/interactive-wizard.use-case.ts
|