skuba 11.1.0-jest30-20250605013156 → 11.1.0-jest30-20250619143811

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.
Files changed (75) hide show
  1. package/jest/transform.js +1 -15
  2. package/jest-preset.js +1 -5
  3. package/lib/cli/{buildPackage.js → buildPackage/index.js} +4 -4
  4. package/lib/cli/buildPackage/index.js.map +7 -0
  5. package/lib/cli/{format.js → format/index.js} +6 -6
  6. package/lib/cli/format/index.js.map +7 -0
  7. package/lib/cli/{help.js → help/index.js} +3 -3
  8. package/lib/cli/help/index.js.map +7 -0
  9. package/lib/cli/init/getConfig.d.ts +1 -1
  10. package/lib/cli/init/prompts.js +12 -2
  11. package/lib/cli/init/prompts.js.map +3 -3
  12. package/lib/cli/init/types.d.ts +2 -2
  13. package/lib/cli/lint/internalLints/noSkubaTemplateJs.js +2 -2
  14. package/lib/cli/lint/internalLints/noSkubaTemplateJs.js.map +3 -3
  15. package/lib/cli/lint/internalLints/refreshConfigFiles.js +2 -2
  16. package/lib/cli/lint/internalLints/refreshConfigFiles.js.map +3 -3
  17. package/lib/cli/lint/internalLints/upgrade/index.js +3 -3
  18. package/lib/cli/lint/internalLints/upgrade/index.js.map +3 -3
  19. package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/removeYarnIgnoreOptionalFlags.js +13 -3
  20. package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/removeYarnIgnoreOptionalFlags.js.map +2 -2
  21. package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/migrateNpmrcToPnpmWorkspace.js +23 -13
  22. package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/migrateNpmrcToPnpmWorkspace.js.map +2 -2
  23. package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/stopBundlingInCDKTests.js +13 -3
  24. package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/stopBundlingInCDKTests.js.map +2 -2
  25. package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/patchPnpmPackageManager.js +4 -4
  26. package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/patchPnpmPackageManager.js.map +3 -3
  27. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/collapseDuplicateMergeKeys.js +15 -5
  28. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/collapseDuplicateMergeKeys.js.map +2 -2
  29. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/moveNpmrcMounts.js +15 -5
  30. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/moveNpmrcMounts.js.map +2 -2
  31. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerCompose.js +3 -3
  32. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerCompose.js.map +3 -3
  33. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerImages.js +4 -4
  34. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerImages.js.map +3 -3
  35. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/upgradeESLint.js +4 -4
  36. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/upgradeESLint.js.map +3 -3
  37. package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/patchPnpmDockerImages.js +3 -3
  38. package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/patchPnpmDockerImages.js.map +3 -3
  39. package/lib/cli/{node.js → node/index.js} +5 -5
  40. package/lib/cli/node/index.js.map +7 -0
  41. package/lib/cli/{release.js → release/index.js} +2 -2
  42. package/lib/cli/release/index.js.map +7 -0
  43. package/lib/cli/{start.js → start/index.js} +6 -6
  44. package/lib/cli/start/index.js.map +7 -0
  45. package/lib/cli/{version.js → version/index.js} +3 -3
  46. package/lib/cli/version/index.js.map +7 -0
  47. package/lib/skuba.js +1 -1
  48. package/lib/skuba.js.map +2 -2
  49. package/lib/utils/packageManager.d.ts +1 -1
  50. package/lib/utils/packageManager.js +1 -1
  51. package/lib/utils/packageManager.js.map +2 -2
  52. package/lib/utils/template.d.ts +2 -2
  53. package/package.json +10 -10
  54. package/template/express-rest-api/package.json +2 -2
  55. package/template/greeter/package.json +2 -2
  56. package/template/koa-rest-api/package.json +2 -2
  57. package/template/lambda-sqs-worker-cdk/package.json +3 -3
  58. package/lib/cli/buildPackage.js.map +0 -7
  59. package/lib/cli/format.js.map +0 -7
  60. package/lib/cli/help.js.map +0 -7
  61. package/lib/cli/node.js.map +0 -7
  62. package/lib/cli/release.js.map +0 -7
  63. package/lib/cli/start.js.map +0 -7
  64. package/lib/cli/test/reporters/prettier/index.d.ts +0 -4
  65. package/lib/cli/test/reporters/prettier/index.js +0 -67
  66. package/lib/cli/test/reporters/prettier/index.js.map +0 -7
  67. package/lib/cli/version.js.map +0 -7
  68. package/template/koa-rest-api/tsconfig.json +0 -18
  69. /package/lib/cli/{buildPackage.d.ts → buildPackage/index.d.ts} +0 -0
  70. /package/lib/cli/{format.d.ts → format/index.d.ts} +0 -0
  71. /package/lib/cli/{help.d.ts → help/index.d.ts} +0 -0
  72. /package/lib/cli/{node.d.ts → node/index.d.ts} +0 -0
  73. /package/lib/cli/{release.d.ts → release/index.d.ts} +0 -0
  74. /package/lib/cli/{start.d.ts → start/index.d.ts} +0 -0
  75. /package/lib/cli/{version.d.ts → version/index.d.ts} +0 -0
@@ -1,67 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var prettier_exports = {};
30
- __export(prettier_exports, {
31
- default: () => SnapshotPrettifier
32
- });
33
- module.exports = __toCommonJS(prettier_exports);
34
- var import_fs_extra = __toESM(require("fs-extra"));
35
- var import_prettier = require("prettier");
36
- var import_prettier2 = require("../../../../cli/adapter/prettier");
37
- class SnapshotPrettifier {
38
- async onTestFileResult(...[test, testResult]) {
39
- if (!testResult.snapshot.added && !testResult.snapshot.updated) {
40
- return;
41
- }
42
- const filepath = test.path;
43
- try {
44
- const [config, data] = await Promise.all([
45
- (0, import_prettier.resolveConfig)(filepath),
46
- import_fs_extra.default.promises.readFile(filepath, "utf-8")
47
- ]);
48
- const formatted = await (0, import_prettier2.formatOrLintFile)(
49
- {
50
- data,
51
- filepath,
52
- options: {
53
- ...config,
54
- filepath
55
- }
56
- },
57
- "format",
58
- null
59
- );
60
- if (typeof formatted === "string") {
61
- await import_fs_extra.default.promises.writeFile(filepath, formatted);
62
- }
63
- } catch {
64
- }
65
- }
66
- }
67
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../src/cli/test/reporters/prettier/index.ts"],
4
- "sourcesContent": ["import type { Reporter } from '@jest/reporters';\nimport fs from 'fs-extra';\nimport { resolveConfig } from 'prettier';\n\nimport { formatOrLintFile } from '../../../../cli/adapter/prettier';\n\nexport default class SnapshotPrettifier\n implements Pick<Reporter, 'onTestFileResult'>\n{\n async onTestFileResult(\n ...[test, testResult]: Parameters<NonNullable<Reporter['onTestFileResult']>>\n ): Promise<void> {\n if (!testResult.snapshot.added && !testResult.snapshot.updated) {\n return;\n }\n\n const filepath = test.path;\n\n // This is a best-effort workaround to automatically format code.\n // Don't pollute console output if it fails for whatever reason.\n try {\n const [config, data] = await Promise.all([\n resolveConfig(filepath),\n fs.promises.readFile(filepath, 'utf-8'),\n ]);\n\n const formatted = await formatOrLintFile(\n {\n data,\n filepath,\n options: {\n ...config,\n filepath,\n },\n },\n 'format',\n null,\n );\n\n if (typeof formatted === 'string') {\n await fs.promises.writeFile(filepath, formatted);\n }\n } catch {}\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,sBAAe;AACf,sBAA8B;AAE9B,IAAAA,mBAAiC;AAEjC,MAAO,mBAEP;AAAA,EACE,MAAM,oBACD,CAAC,MAAM,UAAU,GACL;AACf,QAAI,CAAC,WAAW,SAAS,SAAS,CAAC,WAAW,SAAS,SAAS;AAC9D;AAAA,IACF;AAEA,UAAM,WAAW,KAAK;AAItB,QAAI;AACF,YAAM,CAAC,QAAQ,IAAI,IAAI,MAAM,QAAQ,IAAI;AAAA,YACvC,+BAAc,QAAQ;AAAA,QACtB,gBAAAC,QAAG,SAAS,SAAS,UAAU,OAAO;AAAA,MACxC,CAAC;AAED,YAAM,YAAY,UAAM;AAAA,QACtB;AAAA,UACE;AAAA,UACA;AAAA,UACA,SAAS;AAAA,YACP,GAAG;AAAA,YACH;AAAA,UACF;AAAA,QACF;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAEA,UAAI,OAAO,cAAc,UAAU;AACjC,cAAM,gBAAAA,QAAG,SAAS,UAAU,UAAU,SAAS;AAAA,MACjD;AAAA,IACF,QAAQ;AAAA,IAAC;AAAA,EACX;AACF;",
6
- "names": ["import_prettier", "fs"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/cli/version.ts"],
4
- "sourcesContent": ["import { log } from '../utils/logging';\nimport { getSkubaVersion } from '../utils/version';\n\nexport const version = async () => {\n const skubaVersion = await getSkubaVersion();\n\n log.plain(skubaVersion);\n};\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAoB;AACpB,qBAAgC;AAEzB,MAAM,UAAU,YAAY;AACjC,QAAM,eAAe,UAAM,gCAAgB;AAE3C,qBAAI,MAAM,YAAY;AACxB;",
6
- "names": []
7
- }
@@ -1,18 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "baseUrl": ".",
4
- "lib": [
5
- // open-telemetry/opentelemetry-js#3580
6
- "DOM",
7
-
8
- "ES2024"
9
- ],
10
- "outDir": "lib",
11
- "paths": {
12
- "src": ["src"]
13
- },
14
- "target": "ES2024"
15
- },
16
- "exclude": ["lib*/**/*"],
17
- "extends": "skuba/config/tsconfig.json"
18
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes