skuba 16.4.1 → 16.4.2
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/lib/cli/build/index.js +2 -2
- package/lib/cli/buildPackage/index.js +1 -1
- package/lib/cli/format/index.js +2 -2
- package/lib/cli/init/getConfig.js +1 -1
- package/lib/cli/init/index.js +4 -4
- package/lib/cli/lint/index.js +1 -1
- package/lib/cli/lint/internalLints/upgrade/index.js +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/12.0.2/index.js +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/13.1.1/index.js +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/14.1.1/index.js +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/15.0.1/index.js +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/15.2.0/index.js +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/15.3.0/index.js +3 -3
- package/lib/cli/lint/internalLints/upgrade/patches/16.2.0/index.js +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/16.3.0/index.js +30 -3
- package/lib/cli/migrate/index.js +1 -1
- package/lib/cli/node/index.js +2 -2
- package/lib/cli/release/index.js +1 -1
- package/lib/cli/start/index.js +2 -2
- package/lib/cli/test/index.js +2 -2
- package/lib/{esm-plj-gAtS.js → esm-VGJqNFmS.js} +3 -3
- package/lib/{exec-CZE-4ATI.js → exec-DzuyyUDB.js} +8 -5
- package/lib/{internal-Dv5vXWoz.js → internal-BB4JuAyc.js} +1 -1
- package/lib/{lint-t0Wr_q--.js → lint-CiUf3vs7.js} +3 -3
- package/lib/{migrate-BUR6eBfd.js → migrate-BmTkvUaT.js} +2 -2
- package/lib/{oxfmt-BIwAeSxt.js → oxfmt-D1RbTuFf.js} +1 -1
- package/lib/{patchPnpmWorkspace-DGEYX7LZ.js → patchPnpmWorkspace-CLHj-0vi.js} +1 -1
- package/lib/{removePnpmPlugin-Ca98xUbu.js → removePnpmPlugin-cff2sXqQ.js} +2 -2
- package/lib/{tsc-c1dfKqAN.js → tsc-YMcR2-sT.js} +1 -1
- package/lib/{upgrade-DhfvMzO6.js → upgrade-BttaNuuJ.js} +1 -1
- package/package.json +7 -7
- package/template/greeter/_package.json +1 -1
- package/template/oss-npm-package/_package.json +1 -1
- package/lib/{getConfig-BIXbaMGR.js → getConfig-DHlb_4Kn.js} +2 -2
package/lib/cli/build/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import { n as createLogger, r as log } from "../../logging-dBdNGphe.js";
|
|
|
3
3
|
import { n as getEntryPointFromManifest, r as getManifestProperties } from "../../manifest-G-s4xuXk.js";
|
|
4
4
|
import { t as copyFile } from "../../copy-D_QX75Y3.js";
|
|
5
5
|
import { n as crawlDirectory, t as buildPatternToFilepathMap } from "../../dir-DTg75iov.js";
|
|
6
|
-
import { a as parseTscArgs, i as tsc, n as readTsBuildConfig, t as getCustomConditions } from "../../tsc-
|
|
7
|
-
import { r as exec } from "../../exec-
|
|
6
|
+
import { a as parseTscArgs, i as tsc, n as readTsBuildConfig, t as getCustomConditions } from "../../tsc-YMcR2-sT.js";
|
|
7
|
+
import { r as exec } from "../../exec-DzuyyUDB.js";
|
|
8
8
|
import path from "path";
|
|
9
9
|
import { inspect } from "util";
|
|
10
10
|
import { styleText as styleText$1 } from "node:util";
|
package/lib/cli/format/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as hasDebugFlag } from "../../args-DJggB7Xj.js";
|
|
2
2
|
import { n as createLogger, r as log } from "../../logging-dBdNGphe.js";
|
|
3
3
|
import { t as runESLint } from "../../eslint-Cl-TDfFU.js";
|
|
4
|
-
import { t as runOxfmt } from "../../oxfmt-
|
|
5
|
-
import { t as internalLint } from "../../internal-
|
|
4
|
+
import { t as runOxfmt } from "../../oxfmt-D1RbTuFf.js";
|
|
5
|
+
import { t as internalLint } from "../../internal-BB4JuAyc.js";
|
|
6
6
|
import { styleText } from "node:util";
|
|
7
7
|
//#region src/cli/format/index.ts
|
|
8
8
|
const format = async (args = process.argv.slice(2), overrideConfigFile) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as getTemplateConfig, n as configureFromPrompt, r as getConfig, t as baseToTemplateData } from "../../getConfig-
|
|
1
|
+
import { i as getTemplateConfig, n as configureFromPrompt, r as getConfig, t as baseToTemplateData } from "../../getConfig-DHlb_4Kn.js";
|
|
2
2
|
export { baseToTemplateData, configureFromPrompt, getConfig, getTemplateConfig };
|
package/lib/cli/init/index.js
CHANGED
|
@@ -10,13 +10,13 @@ import { BASE_TEMPLATE_DIR, ensureTemplateConfigDeletion } from "../../utils/tem
|
|
|
10
10
|
import { n as copyFiles, r as createEjsRenderer } from "../../copy-D_QX75Y3.js";
|
|
11
11
|
import { t as pathExists } from "../../fs-BGCl1tAd.js";
|
|
12
12
|
import { a as findWorkspaceRoot, r as createInclusionFilter } from "../../dir-DTg75iov.js";
|
|
13
|
-
import { n as ensureCommands, t as createExec } from "../../exec-
|
|
14
|
-
import { t as runOxfmt } from "../../oxfmt-
|
|
13
|
+
import { n as ensureCommands, t as createExec } from "../../exec-DzuyyUDB.js";
|
|
14
|
+
import { t as runOxfmt } from "../../oxfmt-D1RbTuFf.js";
|
|
15
15
|
import { t as createDestinationFileReader } from "../../project-KAYvnrzq.js";
|
|
16
|
-
import { t as patchPnpmWorkspace } from "../../patchPnpmWorkspace-
|
|
16
|
+
import { t as patchPnpmWorkspace } from "../../patchPnpmWorkspace-CLHj-0vi.js";
|
|
17
17
|
import { t as getDestinationManifest } from "../../package-TZrfV52d.js";
|
|
18
18
|
import { t as formatPackage } from "../../package-Ay1zmR5v.js";
|
|
19
|
-
import { a as readJSONFromStdIn, c as isGitHubOrg, i as getTemplateConfig, l as isGitHubTeam, o as confirmExistingRepo, r as getConfig, s as runForm, u as initialiseRepo } from "../../getConfig-
|
|
19
|
+
import { a as readJSONFromStdIn, c as isGitHubOrg, i as getTemplateConfig, l as isGitHubTeam, o as confirmExistingRepo, r as getConfig, s as runForm, u as initialiseRepo } from "../../getConfig-DHlb_4Kn.js";
|
|
20
20
|
import { t as registerAstGrepLanguages } from "../../registerAstGrepLanguages-wNGWgk_P.js";
|
|
21
21
|
import path from "path";
|
|
22
22
|
import { inspect } from "util";
|
package/lib/cli/lint/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as lint } from "../../lint-
|
|
1
|
+
import { t as lint } from "../../lint-CiUf3vs7.js";
|
|
2
2
|
export { lint };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as detectPackageManager } from "../../../../packageManager-1E5ItIAk.js";
|
|
2
2
|
import { t as getConsumerManifest } from "../../../../manifest-G-s4xuXk.js";
|
|
3
3
|
import { t as getSkubaVersion } from "../../../../version-DKDt2Abq.js";
|
|
4
|
-
import { t as runOxfmt } from "../../../../oxfmt-
|
|
4
|
+
import { t as runOxfmt } from "../../../../oxfmt-D1RbTuFf.js";
|
|
5
5
|
import { t as formatPackage } from "../../../../package-Ay1zmR5v.js";
|
|
6
6
|
import path from "path";
|
|
7
7
|
import fs from "fs-extra";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as log } from "../../../../../../logging-dBdNGphe.js";
|
|
2
2
|
import { r as isErrorWithCode } from "../../../../../../error-Ds2mGItd.js";
|
|
3
|
-
import { t as runOxfmt } from "../../../../../../oxfmt-
|
|
3
|
+
import { t as runOxfmt } from "../../../../../../oxfmt-D1RbTuFf.js";
|
|
4
4
|
import { t as globFiles } from "../../../../../../glob-AUwd3OoZ.js";
|
|
5
5
|
import path from "path";
|
|
6
6
|
import { inspect } from "util";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as log } from "../../../../../../logging-dBdNGphe.js";
|
|
2
2
|
import { t as registerAstGrepLanguages } from "../../../../../../registerAstGrepLanguages-wNGWgk_P.js";
|
|
3
|
-
import { r as migrations } from "../../../../../../migrate-
|
|
3
|
+
import { r as migrations } from "../../../../../../migrate-BmTkvUaT.js";
|
|
4
4
|
import { inspect } from "util";
|
|
5
5
|
import fs from "fs-extra";
|
|
6
6
|
import { parseAsync } from "@ast-grep/napi";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as log } from "../../../../../../logging-dBdNGphe.js";
|
|
2
2
|
import { r as detectPackageManager } from "../../../../../../packageManager-1E5ItIAk.js";
|
|
3
3
|
import { i as getSkubaManifest, t as getConsumerManifest } from "../../../../../../manifest-G-s4xuXk.js";
|
|
4
|
-
import { r as exec, t as createExec } from "../../../../../../exec-
|
|
4
|
+
import { r as exec, t as createExec } from "../../../../../../exec-DzuyyUDB.js";
|
|
5
5
|
import { t as tryRefreshConfigFiles } from "../../../../../../refreshConfigFiles-BJizbjEP.js";
|
|
6
6
|
import { t as registerAstGrepLanguages } from "../../../../../../registerAstGrepLanguages-wNGWgk_P.js";
|
|
7
7
|
import { t as globFiles } from "../../../../../../glob-AUwd3OoZ.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as tryRemovePnpmPlugin } from "../../../../../../removePnpmPlugin-
|
|
1
|
+
import { t as tryRemovePnpmPlugin } from "../../../../../../removePnpmPlugin-cff2sXqQ.js";
|
|
2
2
|
//#region src/cli/lint/internalLints/upgrade/patches/15.0.1/index.ts
|
|
3
3
|
const patches = [{
|
|
4
4
|
apply: tryRemovePnpmPlugin,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as log } from "../../../../../../logging-dBdNGphe.js";
|
|
2
2
|
import { r as detectPackageManager } from "../../../../../../packageManager-1E5ItIAk.js";
|
|
3
|
-
import { t as createExec } from "../../../../../../exec-
|
|
3
|
+
import { t as createExec } from "../../../../../../exec-DzuyyUDB.js";
|
|
4
4
|
import { t as globFiles } from "../../../../../../glob-AUwd3OoZ.js";
|
|
5
5
|
import { dirname } from "path";
|
|
6
6
|
import { inspect } from "util";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as log } from "../../../../../../logging-dBdNGphe.js";
|
|
2
|
-
import { r as exec } from "../../../../../../exec-
|
|
3
|
-
import { t as patchPnpmWorkspace } from "../../../../../../patchPnpmWorkspace-
|
|
4
|
-
import { t as migrateToESM } from "../../../../../../esm-
|
|
2
|
+
import { r as exec } from "../../../../../../exec-DzuyyUDB.js";
|
|
3
|
+
import { t as patchPnpmWorkspace } from "../../../../../../patchPnpmWorkspace-CLHj-0vi.js";
|
|
4
|
+
import { t as migrateToESM } from "../../../../../../esm-VGJqNFmS.js";
|
|
5
5
|
import { t as tryRemovePnpmConfigPackageJson } from "../../../../../../removePnpmConfigPackageJson-DpOhpwCf.js";
|
|
6
6
|
import { inspect } from "util";
|
|
7
7
|
//#region src/cli/lint/internalLints/upgrade/patches/15.3.0/migrateToESM.ts
|
|
@@ -2,8 +2,8 @@ import { r as log } from "../../../../../../logging-dBdNGphe.js";
|
|
|
2
2
|
import { t as registerAstGrepLanguages } from "../../../../../../registerAstGrepLanguages-wNGWgk_P.js";
|
|
3
3
|
import { t as globFiles } from "../../../../../../glob-AUwd3OoZ.js";
|
|
4
4
|
import { a as removeWholeLine, i as removeDdTraceFromServerlessNodeOptions, n as collectLambdaFiles, r as removeDdTraceFromCdkNodeOptions, t as findLatestAllowedVersion } from "../../../../../../findLatestAllowedVersion-CWnSR-kX.js";
|
|
5
|
-
import { n as upgradeInfraPackages } from "../../../../../../upgrade-
|
|
6
|
-
import { t as tryRemovePnpmPlugin } from "../../../../../../removePnpmPlugin-
|
|
5
|
+
import { n as upgradeInfraPackages } from "../../../../../../upgrade-BttaNuuJ.js";
|
|
6
|
+
import { t as tryRemovePnpmPlugin } from "../../../../../../removePnpmPlugin-cff2sXqQ.js";
|
|
7
7
|
import { t as tryRemovePnpmConfigPackageJson } from "../../../../../../removePnpmConfigPackageJson-DpOhpwCf.js";
|
|
8
8
|
import path from "path";
|
|
9
9
|
import { inspect } from "util";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as log } from "../../../../../../logging-dBdNGphe.js";
|
|
2
2
|
import { r as isErrorWithCode } from "../../../../../../error-Ds2mGItd.js";
|
|
3
|
-
import { r as exec, t as createExec } from "../../../../../../exec-
|
|
4
|
-
import { t as patchPnpmWorkspace } from "../../../../../../patchPnpmWorkspace-
|
|
3
|
+
import { r as exec, t as createExec } from "../../../../../../exec-DzuyyUDB.js";
|
|
4
|
+
import { t as patchPnpmWorkspace } from "../../../../../../patchPnpmWorkspace-CLHj-0vi.js";
|
|
5
5
|
import { t as globFiles } from "../../../../../../glob-AUwd3OoZ.js";
|
|
6
|
-
import { n as upgradeInfraPackages } from "../../../../../../upgrade-
|
|
6
|
+
import { n as upgradeInfraPackages } from "../../../../../../upgrade-BttaNuuJ.js";
|
|
7
7
|
import path from "path";
|
|
8
8
|
import { inspect, isDeepStrictEqual } from "util";
|
|
9
9
|
import fs from "fs-extra";
|
|
@@ -180,6 +180,32 @@ const findCdkNodejsFunction = async (dir) => {
|
|
|
180
180
|
});
|
|
181
181
|
return (await Promise.all(tsFiles.map(async (file) => usesCdkNodejsFunction(await fs.promises.readFile(path.join(root, file), "utf8"))))).some(Boolean);
|
|
182
182
|
};
|
|
183
|
+
const PACKAGE_MANAGER_FIELD_REGEX = /^(\s*"packageManager"\s*:\s*")(pnpm@[^"]*)(")/m;
|
|
184
|
+
/**
|
|
185
|
+
* The codemod only updates the root `package.json`. Align the `pnpm@` pin in
|
|
186
|
+
* any nested `package.json` files with the root so out-of-date versions are
|
|
187
|
+
* not left behind.
|
|
188
|
+
*/
|
|
189
|
+
const syncNestedPackageManagers = async (dir) => {
|
|
190
|
+
let rootContents;
|
|
191
|
+
try {
|
|
192
|
+
rootContents = await fs.promises.readFile(path.join(dir, "package.json"), "utf8");
|
|
193
|
+
} catch {
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
const rootPackageManager = PACKAGE_MANAGER_FIELD_REGEX.exec(rootContents)?.[2];
|
|
197
|
+
if (!rootPackageManager) return;
|
|
198
|
+
const packageJsonFiles = await globFiles(["**/package.json"], {
|
|
199
|
+
cwd: dir,
|
|
200
|
+
exclude: ["**/.git", "**/node_modules"]
|
|
201
|
+
});
|
|
202
|
+
await Promise.all(packageJsonFiles.filter((file) => path.normalize(file) !== "package.json").map(async (file) => {
|
|
203
|
+
const filepath = path.join(dir, file);
|
|
204
|
+
const contents = await fs.promises.readFile(filepath, "utf8");
|
|
205
|
+
const updated = contents.replace(PACKAGE_MANAGER_FIELD_REGEX, (_match, prefix, _current, suffix) => `${prefix}${rootPackageManager}${suffix}`);
|
|
206
|
+
if (updated !== contents) await fs.promises.writeFile(filepath, updated, "utf8");
|
|
207
|
+
}));
|
|
208
|
+
};
|
|
183
209
|
const migratePnpmV11 = async ({ mode, packageManager, dir = process.cwd() }) => {
|
|
184
210
|
if (packageManager.command !== "pnpm") return {
|
|
185
211
|
result: "skip",
|
|
@@ -191,6 +217,7 @@ const migratePnpmV11 = async ({ mode, packageManager, dir = process.cwd() }) =>
|
|
|
191
217
|
};
|
|
192
218
|
if (mode === "lint") return { result: "apply" };
|
|
193
219
|
await exec("pnpm", "--config.minimumReleaseAge=4320", "dlx", "codemod", "run", "pnpm-v10-to-v11", "--no-interactive");
|
|
220
|
+
await syncNestedPackageManagers(dir);
|
|
194
221
|
await patchPnpmWorkspace(mode);
|
|
195
222
|
return { result: "apply" };
|
|
196
223
|
};
|
package/lib/cli/migrate/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as migrate, r as migrations, t as logAvailableMigrations } from "../../migrate-
|
|
1
|
+
import { n as migrate, r as migrations, t as logAvailableMigrations } from "../../migrate-BmTkvUaT.js";
|
|
2
2
|
export { logAvailableMigrations, migrate, migrations };
|
package/lib/cli/node/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as parseRunArgs } from "../../args-DJggB7Xj.js";
|
|
2
2
|
import { a as isIpPort } from "../../validation-BckyzuOM.js";
|
|
3
|
-
import { t as getCustomConditions } from "../../tsc-
|
|
4
|
-
import { t as createExec } from "../../exec-
|
|
3
|
+
import { t as getCustomConditions } from "../../tsc-YMcR2-sT.js";
|
|
4
|
+
import { t as createExec } from "../../exec-DzuyyUDB.js";
|
|
5
5
|
import path from "path";
|
|
6
6
|
import { execa } from "execa";
|
|
7
7
|
import getPort from "get-port";
|
package/lib/cli/release/index.js
CHANGED
package/lib/cli/start/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { o as parseRunArgs } from "../../args-DJggB7Xj.js";
|
|
2
2
|
import { a as isIpPort } from "../../validation-BckyzuOM.js";
|
|
3
3
|
import { n as getEntryPointFromManifest } from "../../manifest-G-s4xuXk.js";
|
|
4
|
-
import { t as getCustomConditions } from "../../tsc-
|
|
5
|
-
import { t as createExec } from "../../exec-
|
|
4
|
+
import { t as getCustomConditions } from "../../tsc-YMcR2-sT.js";
|
|
5
|
+
import { t as createExec } from "../../exec-DzuyyUDB.js";
|
|
6
6
|
import path from "path";
|
|
7
7
|
import getPort from "get-port";
|
|
8
8
|
//#region src/cli/start/index.ts
|
package/lib/cli/test/index.js
CHANGED
|
@@ -2,9 +2,9 @@ import { t as hasDebugFlag } from "../../args-DJggB7Xj.js";
|
|
|
2
2
|
import { t as isCiEnv } from "../../env-cAXFjIny.js";
|
|
3
3
|
import { n as createLogger, r as log, t as childLogger } from "../../logging-dBdNGphe.js";
|
|
4
4
|
import { r as throwOnTimeout } from "../../version-DKDt2Abq.js";
|
|
5
|
-
import { t as createExec } from "../../exec-
|
|
5
|
+
import { t as createExec } from "../../exec-DzuyyUDB.js";
|
|
6
6
|
import { upgradeSkuba } from "../lint/internalLints/upgrade/index.js";
|
|
7
|
-
import { t as lint } from "../../lint-
|
|
7
|
+
import { t as lint } from "../../lint-CiUf3vs7.js";
|
|
8
8
|
import { inspect, styleText } from "util";
|
|
9
9
|
import "@skuba-lib/api/git";
|
|
10
10
|
import * as Buildkite from "@skuba-lib/api/buildkite";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { r as log } from "./logging-dBdNGphe.js";
|
|
2
2
|
import { r as detectPackageManager } from "./packageManager-1E5ItIAk.js";
|
|
3
3
|
import { t as getConsumerManifest } from "./manifest-G-s4xuXk.js";
|
|
4
|
-
import { r as readTsConfig, t as getCustomConditions } from "./tsc-
|
|
5
|
-
import { r as exec, t as createExec } from "./exec-
|
|
4
|
+
import { r as readTsConfig, t as getCustomConditions } from "./tsc-YMcR2-sT.js";
|
|
5
|
+
import { r as exec, t as createExec } from "./exec-DzuyyUDB.js";
|
|
6
6
|
import { n as parsePackage, t as formatPackage } from "./package-Ay1zmR5v.js";
|
|
7
7
|
import { t as registerAstGrepLanguages } from "./registerAstGrepLanguages-wNGWgk_P.js";
|
|
8
8
|
import { t as globFiles } from "./glob-AUwd3OoZ.js";
|
|
9
9
|
import { t as fetchFiles$1 } from "./rewriteSrcImports-CVy85A2X.js";
|
|
10
10
|
import { n as collectLambdaFiles, t as findLatestAllowedVersion } from "./findLatestAllowedVersion-CWnSR-kX.js";
|
|
11
|
-
import { n as upgradeInfraPackages } from "./upgrade-
|
|
11
|
+
import { n as upgradeInfraPackages } from "./upgrade-BttaNuuJ.js";
|
|
12
12
|
import path, { dirname } from "path";
|
|
13
13
|
import { inspect } from "util";
|
|
14
14
|
import { inspect as inspect$1 } from "node:util";
|
|
@@ -20,13 +20,16 @@ var YarnWarningFilter = class extends stream.Transform {
|
|
|
20
20
|
callback();
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
const runCommand = (command, args,
|
|
24
|
-
const
|
|
23
|
+
const runCommand = (command, args, options) => {
|
|
24
|
+
const { streamStdio } = options;
|
|
25
|
+
const execaOptions = {
|
|
25
26
|
localDir: import.meta.dirname,
|
|
26
27
|
preferLocal: true,
|
|
27
28
|
stdio: "inherit",
|
|
28
|
-
...
|
|
29
|
-
}
|
|
29
|
+
...options
|
|
30
|
+
};
|
|
31
|
+
delete execaOptions.streamStdio;
|
|
32
|
+
const subprocess = execa(command, args, execaOptions);
|
|
30
33
|
switch (streamStdio) {
|
|
31
34
|
case "yarn":
|
|
32
35
|
const stderrFilter = new YarnWarningFilter();
|
|
@@ -44,7 +47,7 @@ const runCommand = (command, args, { streamStdio, ...execaOptions } = {}) => {
|
|
|
44
47
|
const whichCallback = npmWhich(import.meta.dirname);
|
|
45
48
|
const which = util.promisify(whichCallback);
|
|
46
49
|
const createExec = (opts) => (command, ...args) => runCommand(command, args, opts);
|
|
47
|
-
const exec = (command, ...args) => runCommand(command, args);
|
|
50
|
+
const exec = (command, ...args) => runCommand(command, args, {});
|
|
48
51
|
const ensureCommands = async (...names) => {
|
|
49
52
|
let success = true;
|
|
50
53
|
await Promise.all(names.map(async (name) => {
|
|
@@ -3,7 +3,7 @@ import { t as getConsumerManifest } from "./manifest-G-s4xuXk.js";
|
|
|
3
3
|
import { t as pathExists } from "./fs-BGCl1tAd.js";
|
|
4
4
|
import { t as Git } from "./src-CKhcFnl5.js";
|
|
5
5
|
import { t as createDestinationFileReader } from "./project-KAYvnrzq.js";
|
|
6
|
-
import { n as tryPatchPnpmWorkspace } from "./patchPnpmWorkspace-
|
|
6
|
+
import { n as tryPatchPnpmWorkspace } from "./patchPnpmWorkspace-CLHj-0vi.js";
|
|
7
7
|
import { t as tryRefreshConfigFiles } from "./refreshConfigFiles-BJizbjEP.js";
|
|
8
8
|
import { upgradeSkuba } from "./cli/lint/internalLints/upgrade/index.js";
|
|
9
9
|
import path from "path";
|
|
@@ -3,11 +3,11 @@ import { t as isCiEnv } from "./env-cAXFjIny.js";
|
|
|
3
3
|
import { n as createLogger, r as log } from "./logging-dBdNGphe.js";
|
|
4
4
|
import { r as detectPackageManager } from "./packageManager-1E5ItIAk.js";
|
|
5
5
|
import { r as throwOnTimeout } from "./version-DKDt2Abq.js";
|
|
6
|
-
import { t as createExec } from "./exec-
|
|
6
|
+
import { t as createExec } from "./exec-DzuyyUDB.js";
|
|
7
7
|
import { t as runESLint } from "./eslint-Cl-TDfFU.js";
|
|
8
|
-
import { t as runOxfmt } from "./oxfmt-
|
|
8
|
+
import { t as runOxfmt } from "./oxfmt-D1RbTuFf.js";
|
|
9
9
|
import { t as createDestinationFileReader } from "./project-KAYvnrzq.js";
|
|
10
|
-
import { t as internalLint } from "./internal-
|
|
10
|
+
import { t as internalLint } from "./internal-BB4JuAyc.js";
|
|
11
11
|
import { n as hasNpmrcSecret } from "./refreshConfigFiles-BJizbjEP.js";
|
|
12
12
|
import { n as runESLintInWorkerThread, t as runESLintInCurrentThread } from "./eslint-ChEqj9Nd.js";
|
|
13
13
|
import { inspect, stripVTControlCharacters } from "util";
|
|
@@ -3,8 +3,8 @@ import { r as log } from "./logging-dBdNGphe.js";
|
|
|
3
3
|
import { t as createDestinationFileReader } from "./project-KAYvnrzq.js";
|
|
4
4
|
import { t as registerAstGrepLanguages } from "./registerAstGrepLanguages-wNGWgk_P.js";
|
|
5
5
|
import { t as globFiles } from "./glob-AUwd3OoZ.js";
|
|
6
|
-
import { n as addFileExtensions, t as migrateToESM } from "./esm-
|
|
7
|
-
import { t as tryUpgradeInfraPackages } from "./upgrade-
|
|
6
|
+
import { n as addFileExtensions, t as migrateToESM } from "./esm-VGJqNFmS.js";
|
|
7
|
+
import { t as tryUpgradeInfraPackages } from "./upgrade-BttaNuuJ.js";
|
|
8
8
|
import { t as isLikelyPackage } from "./checks-FsuBiFJE.js";
|
|
9
9
|
import path from "path";
|
|
10
10
|
import { inspect } from "util";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as isCiEnv } from "./env-cAXFjIny.js";
|
|
2
|
-
import { t as createExec } from "./exec-
|
|
2
|
+
import { t as createExec } from "./exec-DzuyyUDB.js";
|
|
3
3
|
import { stripVTControlCharacters } from "node:util";
|
|
4
4
|
import { ExecaError } from "execa";
|
|
5
5
|
//#region src/cli/adapter/oxfmt.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as log } from "./logging-dBdNGphe.js";
|
|
2
2
|
import { r as detectPackageManager } from "./packageManager-1E5ItIAk.js";
|
|
3
3
|
import { t as getConsumerManifest } from "./manifest-G-s4xuXk.js";
|
|
4
|
-
import { t as createExec } from "./exec-
|
|
4
|
+
import { t as createExec } from "./exec-DzuyyUDB.js";
|
|
5
5
|
import path from "path";
|
|
6
6
|
import { inspect, isDeepStrictEqual } from "util";
|
|
7
7
|
import * as z from "zod/v4";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as log } from "./logging-dBdNGphe.js";
|
|
2
|
-
import { r as exec } from "./exec-
|
|
3
|
-
import { t as patchPnpmWorkspace } from "./patchPnpmWorkspace-
|
|
2
|
+
import { r as exec } from "./exec-DzuyyUDB.js";
|
|
3
|
+
import { t as patchPnpmWorkspace } from "./patchPnpmWorkspace-CLHj-0vi.js";
|
|
4
4
|
import { t as registerAstGrepLanguages } from "./registerAstGrepLanguages-wNGWgk_P.js";
|
|
5
5
|
import path from "path";
|
|
6
6
|
import { inspect } from "util";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as log } from "./logging-dBdNGphe.js";
|
|
2
2
|
import { r as detectPackageManager } from "./packageManager-1E5ItIAk.js";
|
|
3
|
-
import { r as exec } from "./exec-
|
|
3
|
+
import { r as exec } from "./exec-DzuyyUDB.js";
|
|
4
4
|
import { t as globFiles } from "./glob-AUwd3OoZ.js";
|
|
5
5
|
import { inspect } from "node:util";
|
|
6
6
|
import fs from "fs-extra";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skuba",
|
|
3
|
-
"version": "16.4.
|
|
3
|
+
"version": "16.4.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "SEEK development toolkit for backend applications and packages",
|
|
6
6
|
"homepage": "https://github.com/seek-oss/skuba#readme",
|
|
@@ -39,6 +39,8 @@
|
|
|
39
39
|
"@changesets/cli": "^3.0.0",
|
|
40
40
|
"@clack/prompts": "^1.7.0",
|
|
41
41
|
"@esbuild-plugins/tsconfig-paths": "^0.1.0",
|
|
42
|
+
"@skuba-lib/api": "3.0.1",
|
|
43
|
+
"@skuba-lib/changesets-changelog": "2.0.0",
|
|
42
44
|
"@types/node": "^24.10.2",
|
|
43
45
|
"@vitest/coverage-istanbul": "^5.0.3",
|
|
44
46
|
"@vitest/coverage-v8": "^5.0.3",
|
|
@@ -47,6 +49,7 @@
|
|
|
47
49
|
"ejs": "^7.0.0",
|
|
48
50
|
"esbuild": "~0.28.0",
|
|
49
51
|
"eslint": "^9.39.1",
|
|
52
|
+
"eslint-config-skuba": "10.0.0",
|
|
50
53
|
"execa": "^10.0.0",
|
|
51
54
|
"find-up": "^8.0.0",
|
|
52
55
|
"fs-extra": "^11.0.0",
|
|
@@ -63,8 +66,9 @@
|
|
|
63
66
|
"normalize-package-data": "^9.0.0",
|
|
64
67
|
"npm-which": "^3.0.1",
|
|
65
68
|
"oxc-config-seek": "^1.0.0",
|
|
66
|
-
"oxfmt": "~0.
|
|
69
|
+
"oxfmt": "~0.73.0",
|
|
67
70
|
"picomatch": "^4.0.0",
|
|
71
|
+
"pnpm-plugin-skuba": "4.0.1",
|
|
68
72
|
"publint": "~0.3.17",
|
|
69
73
|
"read-package-up": "^12.0.0",
|
|
70
74
|
"rolldown": "^1.1.0",
|
|
@@ -80,11 +84,7 @@
|
|
|
80
84
|
"vite": "^8.3.4",
|
|
81
85
|
"vitest": "^5.0.3",
|
|
82
86
|
"yaml": "^2.9.1",
|
|
83
|
-
"zod": "^4.3.5"
|
|
84
|
-
"@skuba-lib/api": "3.0.1",
|
|
85
|
-
"@skuba-lib/changesets-changelog": "2.0.0",
|
|
86
|
-
"pnpm-plugin-skuba": "4.0.0",
|
|
87
|
-
"eslint-config-skuba": "10.0.0"
|
|
87
|
+
"zod": "^4.3.5"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@octokit/graphql-schema": "^15.3.0",
|
|
@@ -11,11 +11,11 @@ import { styleText } from "node:util";
|
|
|
11
11
|
import * as z from "zod/v4";
|
|
12
12
|
import fs from "fs-extra";
|
|
13
13
|
import * as Git from "@skuba-lib/api/git";
|
|
14
|
-
import git from "isomorphic-git";
|
|
15
|
-
import { simpleGit } from "simple-git";
|
|
16
14
|
import { cancel, confirm, group, isCancel, log, note, path as path$1, select, spinner, text } from "@clack/prompts";
|
|
17
15
|
import getPort from "get-port";
|
|
18
16
|
import os from "os";
|
|
17
|
+
import git from "isomorphic-git";
|
|
18
|
+
import { simpleGit } from "simple-git";
|
|
19
19
|
//#region src/utils/port.ts
|
|
20
20
|
const MIN_PORT = 1e4;
|
|
21
21
|
/** Largest port in the IANA user port range. */
|