skuba 14.0.0-replace-global-vars-20251121010036 → 14.0.0-test-private-templates-20260103062459
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/config/eslint.js +1 -1
- package/config/jest.js +1 -0
- package/config/prettier.d.ts +4 -8
- package/config/prettier.js +2 -10
- package/jest/moduleNameMapper.js +64 -0
- package/jest/transform.js +62 -0
- package/jest/tsConfig.js +26 -0
- package/jest-preset.js +37 -0
- package/lib/api/jest/index.d.ts +15 -0
- package/lib/api/jest/index.js +59 -0
- package/lib/api/jest/index.js.map +7 -0
- package/lib/cli/adapter/eslint.js +45 -11
- package/lib/cli/adapter/eslint.js.map +2 -2
- package/lib/cli/adapter/prettier.js +67 -39
- package/lib/cli/adapter/prettier.js.map +2 -2
- package/lib/cli/build/args.js +42 -8
- package/lib/cli/build/args.js.map +2 -2
- package/lib/cli/build/assets.js +60 -28
- package/lib/cli/build/assets.js.map +2 -2
- package/lib/cli/build/esbuild.js +45 -21
- package/lib/cli/build/esbuild.js.map +2 -2
- package/lib/cli/build/index.js +45 -21
- package/lib/cli/build/index.js.map +1 -1
- package/lib/cli/build/tsc.js +59 -22
- package/lib/cli/build/tsc.js.map +2 -2
- package/lib/cli/buildPackage/index.js +32 -8
- package/lib/cli/buildPackage/index.js.map +1 -1
- package/lib/cli/configure/analyseConfiguration.js +50 -16
- package/lib/cli/configure/analyseConfiguration.js.map +2 -2
- package/lib/cli/configure/analyseDependencies.d.ts +1 -1
- package/lib/cli/configure/analyseDependencies.js +59 -25
- package/lib/cli/configure/analyseDependencies.js.map +3 -3
- package/lib/cli/configure/analysis/diff.js +29 -5
- package/lib/cli/configure/analysis/diff.js.map +1 -1
- package/lib/cli/configure/analysis/files.js +42 -8
- package/lib/cli/configure/analysis/files.js.map +2 -2
- package/lib/cli/configure/analysis/git.js +46 -12
- package/lib/cli/configure/analysis/git.js.map +2 -2
- package/lib/cli/configure/analysis/package.d.ts +3 -2
- package/lib/cli/configure/analysis/package.js +45 -10
- package/lib/cli/configure/analysis/package.js.map +3 -3
- package/lib/cli/configure/analysis/project.js +50 -18
- package/lib/cli/configure/analysis/project.js.map +2 -2
- package/lib/cli/configure/dependencies/index.js +35 -7
- package/lib/cli/configure/dependencies/index.js.map +1 -1
- package/lib/cli/configure/dependencies/seekDatadogCustomMetrics.js +28 -4
- package/lib/cli/configure/dependencies/seekDatadogCustomMetrics.js.map +1 -1
- package/lib/cli/configure/dependencies/seekKoala.js +28 -4
- package/lib/cli/configure/dependencies/seekKoala.js.map +1 -1
- package/lib/cli/configure/dependencies/skuba.js +28 -4
- package/lib/cli/configure/dependencies/skuba.js.map +1 -1
- package/lib/cli/configure/dependencies/skubaDeps.js +26 -2
- package/lib/cli/configure/dependencies/skubaDeps.js.map +1 -1
- package/lib/cli/configure/dependencies/skubaDive.js +29 -4
- package/lib/cli/configure/dependencies/skubaDive.js.map +1 -1
- package/lib/cli/configure/ensureTemplateCompletion.d.ts +1 -1
- package/lib/cli/configure/ensureTemplateCompletion.js +61 -33
- package/lib/cli/configure/ensureTemplateCompletion.js.map +3 -3
- package/lib/cli/configure/getEntryPoint.d.ts +1 -1
- package/lib/cli/configure/getEntryPoint.js +48 -14
- package/lib/cli/configure/getEntryPoint.js.map +3 -3
- package/lib/cli/configure/getProjectType.d.ts +1 -1
- package/lib/cli/configure/getProjectType.js +35 -14
- package/lib/cli/configure/getProjectType.js.map +2 -2
- package/lib/cli/configure/index.js +84 -50
- package/lib/cli/configure/index.js.map +2 -2
- package/lib/cli/configure/modules/eslint.js +34 -10
- package/lib/cli/configure/modules/eslint.js.map +1 -1
- package/lib/cli/configure/modules/ignore.js +32 -8
- package/lib/cli/configure/modules/ignore.js.map +1 -1
- package/lib/cli/configure/modules/index.js +44 -18
- package/lib/cli/configure/modules/index.js.map +2 -2
- package/lib/cli/configure/modules/jest.d.ts +2 -0
- package/lib/cli/configure/modules/jest.js +86 -0
- package/lib/cli/configure/modules/jest.js.map +7 -0
- package/lib/cli/configure/modules/nodemon.js +28 -4
- package/lib/cli/configure/modules/nodemon.js.map +1 -1
- package/lib/cli/configure/modules/package.js +34 -10
- package/lib/cli/configure/modules/package.js.map +1 -1
- package/lib/cli/configure/modules/prettier.js +35 -11
- package/lib/cli/configure/modules/prettier.js.map +1 -1
- package/lib/cli/configure/modules/renovate.js +40 -17
- package/lib/cli/configure/modules/renovate.js.map +2 -2
- package/lib/cli/configure/modules/serverless.js +26 -2
- package/lib/cli/configure/modules/serverless.js.map +1 -1
- package/lib/cli/configure/modules/tslint.js +28 -4
- package/lib/cli/configure/modules/tslint.js.map +1 -1
- package/lib/cli/configure/processing/configFile.js +39 -3
- package/lib/cli/configure/processing/configFile.js.map +1 -1
- package/lib/cli/configure/processing/deleteFiles.js +26 -2
- package/lib/cli/configure/processing/deleteFiles.js.map +1 -1
- package/lib/cli/configure/processing/javascript.js +27 -2
- package/lib/cli/configure/processing/javascript.js.map +1 -1
- package/lib/cli/configure/processing/json.js +31 -6
- package/lib/cli/configure/processing/json.js.map +1 -1
- package/lib/cli/configure/processing/loadFiles.js +26 -2
- package/lib/cli/configure/processing/loadFiles.js.map +1 -1
- package/lib/cli/configure/processing/module.js +28 -4
- package/lib/cli/configure/processing/module.js.map +1 -1
- package/lib/cli/configure/processing/package.d.ts +67 -1
- package/lib/cli/configure/processing/package.js +45 -8
- package/lib/cli/configure/processing/package.js.map +3 -3
- package/lib/cli/configure/processing/prettier.js +38 -4
- package/lib/cli/configure/processing/prettier.js.map +2 -2
- package/lib/cli/configure/processing/record.js +41 -5
- package/lib/cli/configure/processing/record.js.map +2 -2
- package/lib/cli/configure/processing/typescript.js +63 -26
- package/lib/cli/configure/processing/typescript.js.map +2 -2
- package/lib/cli/configure/types.d.ts +4 -15
- package/lib/cli/configure/types.js +16 -0
- package/lib/cli/configure/types.js.map +3 -3
- package/lib/cli/format/index.js +44 -20
- package/lib/cli/format/index.js.map +1 -1
- package/lib/cli/help/index.js +30 -6
- package/lib/cli/help/index.js.map +1 -1
- package/lib/cli/init/getConfig.d.ts +1 -1
- package/lib/cli/init/getConfig.js +111 -76
- package/lib/cli/init/getConfig.js.map +3 -3
- package/lib/cli/init/git.d.ts +1 -0
- package/lib/cli/init/git.js +88 -16
- package/lib/cli/init/git.js.map +3 -3
- package/lib/cli/init/index.js +98 -67
- package/lib/cli/init/index.js.map +2 -2
- package/lib/cli/init/prompts.d.ts +6 -5
- package/lib/cli/init/prompts.js +54 -27
- package/lib/cli/init/prompts.js.map +2 -2
- package/lib/cli/init/types.js +41 -7
- package/lib/cli/init/types.js.map +1 -1
- package/lib/cli/init/validation.js +30 -2
- package/lib/cli/init/validation.js.map +1 -1
- package/lib/cli/init/writePackageJson.js +42 -8
- package/lib/cli/init/writePackageJson.js.map +2 -2
- package/lib/cli/lint/annotate/buildkite/eslint.js +37 -3
- package/lib/cli/lint/annotate/buildkite/eslint.js.map +1 -1
- package/lib/cli/lint/annotate/buildkite/index.js +45 -11
- package/lib/cli/lint/annotate/buildkite/index.js.map +1 -1
- package/lib/cli/lint/annotate/buildkite/internal.js +37 -3
- package/lib/cli/lint/annotate/buildkite/internal.js.map +1 -1
- package/lib/cli/lint/annotate/buildkite/prettier.js +37 -3
- package/lib/cli/lint/annotate/buildkite/prettier.js.map +1 -1
- package/lib/cli/lint/annotate/buildkite/tsc.js +37 -3
- package/lib/cli/lint/annotate/buildkite/tsc.js.map +1 -1
- package/lib/cli/lint/annotate/github/eslint.js +26 -2
- package/lib/cli/lint/annotate/github/eslint.js.map +1 -1
- package/lib/cli/lint/annotate/github/index.js +45 -11
- package/lib/cli/lint/annotate/github/index.js.map +1 -1
- package/lib/cli/lint/annotate/github/internal.js +26 -2
- package/lib/cli/lint/annotate/github/internal.js.map +1 -1
- package/lib/cli/lint/annotate/github/prettier.js +26 -2
- package/lib/cli/lint/annotate/github/prettier.js.map +1 -1
- package/lib/cli/lint/annotate/github/tsc.js +28 -4
- package/lib/cli/lint/annotate/github/tsc.js.map +2 -2
- package/lib/cli/lint/annotate/index.js +30 -6
- package/lib/cli/lint/annotate/index.js.map +1 -1
- package/lib/cli/lint/autofix.js +73 -37
- package/lib/cli/lint/autofix.js.map +1 -1
- package/lib/cli/lint/eslint.js +51 -16
- package/lib/cli/lint/eslint.js.map +3 -3
- package/lib/cli/lint/external.js +51 -19
- package/lib/cli/lint/external.js.map +2 -2
- package/lib/cli/lint/index.js +49 -25
- package/lib/cli/lint/index.js.map +1 -1
- package/lib/cli/lint/internal.js +42 -18
- package/lib/cli/lint/internal.js.map +1 -1
- package/lib/cli/lint/internalLints/detectBadCodeowners.js +33 -8
- package/lib/cli/lint/internalLints/detectBadCodeowners.js.map +1 -1
- package/lib/cli/lint/internalLints/noSkubaTemplateJs.js +45 -11
- package/lib/cli/lint/internalLints/noSkubaTemplateJs.js.map +2 -2
- package/lib/cli/lint/internalLints/patchRenovateConfig.js +55 -21
- package/lib/cli/lint/internalLints/patchRenovateConfig.js.map +2 -2
- package/lib/cli/lint/internalLints/refreshConfigFiles.js +63 -32
- package/lib/cli/lint/internalLints/refreshConfigFiles.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/index.d.ts +1 -1
- package/lib/cli/lint/internalLints/upgrade/index.js +53 -22
- package/lib/cli/lint/internalLints/upgrade/index.js.map +3 -3
- package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/index.js +28 -4
- package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/index.js.map +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/removeYarnIgnoreOptionalFlags.js +45 -11
- package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/removeYarnIgnoreOptionalFlags.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/index.js +30 -6
- package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/index.js.map +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/migrateNpmrcToPnpmWorkspace.js +65 -34
- package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/migrateNpmrcToPnpmWorkspace.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/stopBundlingInCDKTests.js +46 -11
- package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/stopBundlingInCDKTests.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/12.0.2/index.js +28 -4
- package/lib/cli/lint/internalLints/upgrade/patches/12.0.2/index.js.map +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/12.0.2/unhandledRejections.js +59 -23
- package/lib/cli/lint/internalLints/upgrade/patches/12.0.2/unhandledRejections.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/12.1.1/index.js +28 -4
- package/lib/cli/lint/internalLints/upgrade/patches/12.1.1/index.js.map +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/12.1.1/patchJestSnapshots.js +46 -11
- package/lib/cli/lint/internalLints/upgrade/patches/12.1.1/patchJestSnapshots.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/12.3.0/index.js +30 -6
- package/lib/cli/lint/internalLints/upgrade/patches/12.3.0/index.js.map +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/12.3.0/patchApiTokenFromEnvironment.js +46 -11
- package/lib/cli/lint/internalLints/upgrade/patches/12.3.0/patchApiTokenFromEnvironment.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/12.3.0/patchDockerfileSyntaxDirective.js +46 -11
- package/lib/cli/lint/internalLints/upgrade/patches/12.3.0/patchDockerfileSyntaxDirective.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/12.4.0/index.js +28 -4
- package/lib/cli/lint/internalLints/upgrade/patches/12.4.0/index.js.map +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/12.4.0/patchDockerfileCIVariable.js +46 -11
- package/lib/cli/lint/internalLints/upgrade/patches/12.4.0/patchDockerfileCIVariable.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/12.4.1/configureTsConfigForESM.js +67 -29
- package/lib/cli/lint/internalLints/upgrade/patches/12.4.1/configureTsConfigForESM.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/12.4.1/index.js +34 -10
- package/lib/cli/lint/internalLints/upgrade/patches/12.4.1/index.js.map +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/12.4.1/patchApiDockerfiles.js +45 -11
- package/lib/cli/lint/internalLints/upgrade/patches/12.4.1/patchApiDockerfiles.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/12.4.1/rewriteSrcImports.d.ts +0 -4
- package/lib/cli/lint/internalLints/upgrade/patches/12.4.1/rewriteSrcImports.js +63 -18
- package/lib/cli/lint/internalLints/upgrade/patches/12.4.1/rewriteSrcImports.js.map +3 -3
- package/lib/cli/lint/internalLints/upgrade/patches/12.4.1/updateLambdaConfigs.js +50 -15
- package/lib/cli/lint/internalLints/upgrade/patches/12.4.1/updateLambdaConfigs.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/13.1.1/index.js +40 -0
- package/lib/cli/lint/internalLints/upgrade/patches/13.1.1/index.js.map +7 -0
- package/lib/cli/lint/internalLints/upgrade/patches/13.1.1/patchRootTsconfig.d.ts +3 -0
- package/lib/cli/lint/internalLints/upgrade/patches/13.1.1/patchRootTsconfig.js +133 -0
- package/lib/cli/lint/internalLints/upgrade/patches/13.1.1/patchRootTsconfig.js.map +7 -0
- package/lib/cli/lint/internalLints/upgrade/patches/13.1.1/upgradeNode.js +55 -0
- package/lib/cli/lint/internalLints/upgrade/patches/13.1.1/upgradeNode.js.map +7 -0
- package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/addEmptyExports.js +51 -17
- package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/addEmptyExports.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/index.js +34 -10
- package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/index.js.map +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/patchDockerfile.js +44 -10
- package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/patchDockerfile.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/patchServerListener.js +46 -12
- package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/patchServerListener.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/index.js +28 -4
- package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/index.js.map +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/patchPnpmPackageManager.js +49 -15
- package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/patchPnpmPackageManager.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/collapseDuplicateMergeKeys.js +45 -11
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/collapseDuplicateMergeKeys.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/index.js +34 -10
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/index.js.map +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/moveNpmrcMounts.js +45 -11
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/moveNpmrcMounts.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerCompose.js +45 -11
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerCompose.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerImages.js +47 -13
- package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerImages.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/index.js +28 -4
- package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/index.js.map +1 -1
- package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/patchPnpmDockerImages.js +45 -11
- package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/patchPnpmDockerImages.js.map +2 -2
- package/lib/cli/lint/prettier.js +50 -15
- package/lib/cli/lint/prettier.js.map +3 -3
- package/lib/cli/lint/tsc.js +28 -4
- package/lib/cli/lint/tsc.js.map +1 -1
- package/lib/cli/lint/types.js +16 -0
- package/lib/cli/lint/types.js.map +3 -3
- package/lib/cli/migrate/index.d.ts +5 -0
- package/lib/cli/migrate/index.js +79 -15
- package/lib/cli/migrate/index.js.map +2 -2
- package/lib/cli/migrate/nodeVersion/checks.d.ts +1 -14
- package/lib/cli/migrate/nodeVersion/checks.js +51 -120
- package/lib/cli/migrate/nodeVersion/checks.js.map +2 -2
- package/lib/cli/migrate/nodeVersion/index.d.ts +8 -2
- package/lib/cli/migrate/nodeVersion/index.js +239 -65
- package/lib/cli/migrate/nodeVersion/index.js.map +3 -3
- package/lib/cli/migrate/nodeVersion/upgrade.d.ts +8 -0
- package/lib/cli/migrate/nodeVersion/upgrade.js +179 -0
- package/lib/cli/migrate/nodeVersion/upgrade.js.map +7 -0
- package/lib/cli/node/index.js +57 -20
- package/lib/cli/node/index.js.map +3 -3
- package/lib/cli/release/index.js +28 -4
- package/lib/cli/release/index.js.map +1 -1
- package/lib/cli/start/index.js +50 -16
- package/lib/cli/start/index.js.map +3 -3
- package/lib/cli/test/index.js +44 -4
- package/lib/cli/test/index.js.map +2 -2
- package/lib/cli/test/reporters/github/annotations.d.ts +9 -0
- package/lib/cli/test/reporters/github/annotations.js +102 -0
- package/lib/cli/test/reporters/github/annotations.js.map +7 -0
- package/lib/cli/test/reporters/github/index.d.ts +5 -0
- package/lib/cli/test/reporters/github/index.js +74 -0
- package/lib/cli/test/reporters/github/index.js.map +7 -0
- package/lib/cli/version/index.js +30 -6
- package/lib/cli/version/index.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +46 -6
- package/lib/index.js.map +2 -2
- package/lib/skuba.js +45 -26
- package/lib/skuba.js.map +3 -3
- package/lib/utils/args.js +43 -6
- package/lib/utils/args.js.map +2 -2
- package/lib/utils/command.js +42 -4
- package/lib/utils/command.js.map +3 -3
- package/lib/utils/copy.js +57 -20
- package/lib/utils/copy.js.map +2 -2
- package/lib/utils/dir.js +72 -32
- package/lib/utils/dir.js.map +2 -2
- package/lib/utils/env.js +26 -2
- package/lib/utils/env.js.map +1 -1
- package/lib/utils/error.js +47 -10
- package/lib/utils/error.js.map +1 -1
- package/lib/utils/exec.js +61 -23
- package/lib/utils/exec.js.map +3 -3
- package/lib/utils/fs.js +40 -6
- package/lib/utils/fs.js.map +2 -2
- package/lib/utils/help.js +30 -6
- package/lib/utils/help.js.map +1 -1
- package/lib/utils/logging.js +38 -11
- package/lib/utils/logging.js.map +1 -1
- package/lib/utils/logo.js +48 -24
- package/lib/utils/logo.js.map +1 -1
- package/lib/utils/manifest.d.ts +2 -3
- package/lib/utils/manifest.js +48 -8
- package/lib/utils/manifest.js.map +3 -3
- package/lib/utils/npmrc.js +26 -2
- package/lib/utils/npmrc.js.map +1 -1
- package/lib/utils/packageManager.js +49 -12
- package/lib/utils/packageManager.js.map +2 -2
- package/lib/utils/port.js +39 -4
- package/lib/utils/port.js.map +2 -2
- package/lib/utils/sleep.js +26 -2
- package/lib/utils/sleep.js.map +1 -1
- package/lib/utils/template.d.ts +1 -1
- package/lib/utils/template.js +60 -19
- package/lib/utils/template.js.map +3 -3
- package/lib/utils/validation.js +31 -2
- package/lib/utils/validation.js.map +1 -1
- package/lib/utils/version.js +46 -9
- package/lib/utils/version.js.map +2 -2
- package/lib/utils/wait.js +32 -7
- package/lib/utils/wait.js.map +1 -1
- package/lib/utils/worker.js +35 -10
- package/lib/utils/worker.js.map +1 -1
- package/lib/wrapper/function-arguments.d.js +1 -0
- package/lib/wrapper/functionHandler.js +49 -18
- package/lib/wrapper/functionHandler.js.map +2 -2
- package/lib/wrapper/http.js +43 -8
- package/lib/wrapper/http.js.map +2 -2
- package/lib/wrapper/index.js +7 -6
- package/lib/wrapper/index.js.map +1 -1
- package/lib/wrapper/main.js +42 -8
- package/lib/wrapper/main.js.map +3 -3
- package/lib/wrapper/requestListener.js +47 -13
- package/lib/wrapper/requestListener.js.map +2 -2
- package/lib/wrapper/server.js +28 -4
- package/lib/wrapper/server.js.map +1 -1
- package/package.json +42 -43
- package/template/base/_.prettierrc.js +1 -1
- package/template/base/_eslint.config.js +1 -1
- package/template/base/_pnpm-workspace.yaml +4 -3
- package/template/base/jest.config.ts +19 -0
- package/template/base/jest.setup.ts +3 -0
- package/template/express-rest-api/.buildkite/pipeline.yml +1 -1
- package/template/express-rest-api/.nvmrc +1 -1
- package/template/express-rest-api/package.json +8 -9
- package/template/express-rest-api/skuba.template.js +1 -1
- package/template/express-rest-api/src/app.test.ts +0 -1
- package/template/greeter/.buildkite/pipeline.yml +1 -1
- package/template/greeter/.nvmrc +1 -1
- package/template/greeter/package.json +4 -5
- package/template/greeter/skuba.template.js +1 -1
- package/template/greeter/src/app.test.ts +1 -3
- package/template/koa-rest-api/.buildkite/pipeline.yml +1 -1
- package/template/koa-rest-api/.nvmrc +1 -1
- package/template/koa-rest-api/package.json +9 -11
- package/template/koa-rest-api/skuba.template.js +1 -1
- package/template/koa-rest-api/src/api/jobs/getJobs.test.ts +0 -2
- package/template/koa-rest-api/src/api/jobs/postJob.test.ts +0 -2
- package/template/koa-rest-api/src/app.test.ts +0 -2
- package/template/koa-rest-api/src/framework/server.test.ts +2 -2
- package/template/koa-rest-api/src/framework/validation.test.ts +0 -2
- package/template/koa-rest-api/src/testing/metrics.ts +0 -2
- package/template/lambda-sqs-worker-cdk/.buildkite/pipeline.yml +2 -2
- package/template/lambda-sqs-worker-cdk/.nvmrc +1 -1
- package/template/lambda-sqs-worker-cdk/infra/__snapshots__/appStack.test.ts.snap +7 -19
- package/template/lambda-sqs-worker-cdk/infra/appStack.test.ts +9 -11
- package/template/lambda-sqs-worker-cdk/infra/appStack.ts +3 -3
- package/template/lambda-sqs-worker-cdk/infra/config.ts +2 -4
- package/template/lambda-sqs-worker-cdk/package.json +9 -9
- package/template/lambda-sqs-worker-cdk/skuba.template.js +13 -1
- package/template/lambda-sqs-worker-cdk/src/app.test.ts +13 -22
- package/template/lambda-sqs-worker-cdk/src/framework/handler.test.ts +0 -1
- package/template/lambda-sqs-worker-cdk/src/framework/validation.test.ts +31 -33
- package/template/lambda-sqs-worker-cdk/src/services/jobScorer.test.ts +2 -8
- package/template/lambda-sqs-worker-cdk/src/services/pipelineEventSender.test.ts +2 -3
- package/template/lambda-sqs-worker-cdk/src/testing/services.ts +3 -4
- package/template/oss-npm-package/.github/workflows/release.yml +1 -1
- package/template/oss-npm-package/.github/workflows/validate.yml +1 -1
- package/template/oss-npm-package/.nvmrc +1 -1
- package/template/oss-npm-package/_package.json +0 -1
- package/template/oss-npm-package/skuba.template.js +1 -1
- package/template/oss-npm-package/src/index.test.ts +0 -2
- package/template/private-npm-package/.nvmrc +1 -1
- package/template/private-npm-package/_package.json +1 -2
- package/template/private-npm-package/skuba.template.js +2 -2
- package/template/private-npm-package/src/index.test.ts +0 -2
- package/lib/cli/lint/internalLints/upgrade/patches/12.5.0/addTypeModuleToPackageJson.d.ts +0 -6
- package/lib/cli/lint/internalLints/upgrade/patches/12.5.0/addTypeModuleToPackageJson.js +0 -86
- package/lib/cli/lint/internalLints/upgrade/patches/12.5.0/addTypeModuleToPackageJson.js.map +0 -7
- package/lib/cli/lint/internalLints/upgrade/patches/12.5.0/index.js +0 -16
- package/lib/cli/lint/internalLints/upgrade/patches/12.5.0/index.js.map +0 -7
- package/lib/cli/lint/internalLints/upgrade/patches/12.5.0/rewriteGlobalVars.d.ts +0 -7
- package/lib/cli/lint/internalLints/upgrade/patches/12.5.0/rewriteGlobalVars.js +0 -76
- package/lib/cli/lint/internalLints/upgrade/patches/12.5.0/rewriteGlobalVars.js.map +0 -7
- package/lib/cli/lint/internalLints/upgrade/patches/9.1.0/index.d.ts +0 -2
- package/lib/cli/lint/internalLints/upgrade/patches/9.1.0/index.js +0 -11
- package/lib/cli/lint/internalLints/upgrade/patches/9.1.0/index.js.map +0 -7
- package/lib/cli/lint/internalLints/upgrade/patches/9.1.0/upgradeNode.js +0 -34
- package/lib/cli/lint/internalLints/upgrade/patches/9.1.0/upgradeNode.js.map +0 -7
- package/lib/eslint.d.js +0 -1
- package/lib/eslint.d.js.map +0 -7
- package/template/base/vitest.config.ts +0 -25
- /package/lib/cli/lint/internalLints/upgrade/patches/{12.5.0 → 13.1.1}/index.d.ts +0 -0
- /package/lib/cli/lint/internalLints/upgrade/patches/{9.1.0 → 13.1.1}/upgradeNode.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skuba",
|
|
3
|
-
"version": "14.0.0-
|
|
3
|
+
"version": "14.0.0-test-private-templates-20260103062459",
|
|
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",
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"sideEffects": false,
|
|
16
|
-
"type": "module",
|
|
17
16
|
"main": "lib/index.js",
|
|
18
17
|
"types": "./lib/index.d.ts",
|
|
19
18
|
"bin": {
|
|
@@ -21,10 +20,12 @@
|
|
|
21
20
|
},
|
|
22
21
|
"files": [
|
|
23
22
|
"config/**/*",
|
|
23
|
+
"jest/**/*.js",
|
|
24
24
|
"lib*/**/*.d.ts",
|
|
25
25
|
"lib*/**/*.js",
|
|
26
26
|
"lib*/**/*.js.map",
|
|
27
|
-
"template/**/*"
|
|
27
|
+
"template/**/*",
|
|
28
|
+
"jest-preset.js"
|
|
28
29
|
],
|
|
29
30
|
"remarkConfig": {
|
|
30
31
|
"plugins": [
|
|
@@ -54,21 +55,21 @@
|
|
|
54
55
|
]
|
|
55
56
|
},
|
|
56
57
|
"dependencies": {
|
|
58
|
+
"@ast-grep/lang-json": "^0.0.5",
|
|
59
|
+
"@ast-grep/napi": "^0.40.0",
|
|
57
60
|
"@esbuild-plugins/tsconfig-paths": "^0.1.0",
|
|
58
|
-
"@eslint/migrate-config": "~1.3.8",
|
|
59
61
|
"@inquirer/prompts": "^7.9.0",
|
|
62
|
+
"@jest/types": "^30.0.0",
|
|
60
63
|
"@octokit/graphql": "^9.0.0",
|
|
61
64
|
"@octokit/graphql-schema": "^15.3.0",
|
|
62
65
|
"@octokit/rest": "^22.0.0",
|
|
63
|
-
"@octokit/types": "^
|
|
64
|
-
"@types/
|
|
65
|
-
"@
|
|
66
|
-
"@vitest/ui": "^4.0.5",
|
|
67
|
-
"@vitest/utils": "^4.0.5",
|
|
66
|
+
"@octokit/types": "^16.0.0",
|
|
67
|
+
"@types/jest": "^30.0.0",
|
|
68
|
+
"@types/node": "^24.10.2",
|
|
68
69
|
"concurrently": "^9.0.0",
|
|
69
70
|
"ejs": "^3.1.6",
|
|
70
|
-
"esbuild": "~0.
|
|
71
|
-
"eslint": "^9.
|
|
71
|
+
"esbuild": "~0.27.0",
|
|
72
|
+
"eslint": "^9.39.1",
|
|
72
73
|
"execa": "^5.0.0",
|
|
73
74
|
"fast-glob": "^3.3.2",
|
|
74
75
|
"find-up": "^5.0.0",
|
|
@@ -79,6 +80,8 @@
|
|
|
79
80
|
"ignore": "^7.0.0",
|
|
80
81
|
"is-installed-globally": "^0.4.0",
|
|
81
82
|
"isomorphic-git": "^1.11.1",
|
|
83
|
+
"jest": "^30.0.0",
|
|
84
|
+
"jest-watch-typeahead": "^3.0.1",
|
|
82
85
|
"lodash.mergewith": "^4.6.2",
|
|
83
86
|
"minimist": "^1.2.6",
|
|
84
87
|
"normalize-package-data": "^7.0.0",
|
|
@@ -86,65 +89,61 @@
|
|
|
86
89
|
"npm-run-path": "^4.0.1",
|
|
87
90
|
"npm-which": "^3.0.1",
|
|
88
91
|
"picomatch": "^4.0.0",
|
|
89
|
-
"prettier": "~3.
|
|
92
|
+
"prettier": "~3.7.0",
|
|
90
93
|
"prettier-plugin-packagejson": "^2.4.10",
|
|
91
|
-
"read-
|
|
94
|
+
"read-pkg-up": "^7.0.1",
|
|
92
95
|
"semantic-release": "^24.2.3",
|
|
93
96
|
"simple-git": "^3.5.0",
|
|
97
|
+
"ts-dedent": "^2.2.0",
|
|
98
|
+
"ts-jest": "^29.4.0",
|
|
99
|
+
"ts-node": "^10.9.2",
|
|
94
100
|
"tsconfig-paths": "^4.0.0",
|
|
95
101
|
"tsconfig-seek": "2.0.0",
|
|
96
|
-
"tsx": "^4.
|
|
102
|
+
"tsx": "^4.21.0",
|
|
97
103
|
"typescript": "~5.9.0",
|
|
98
|
-
"vitest": "^4.0.5",
|
|
99
104
|
"zod": "^4.0.0",
|
|
100
|
-
"@skuba-lib/api": "^
|
|
101
|
-
"eslint-config-skuba": "
|
|
105
|
+
"@skuba-lib/api": "^2.0.0-test-private-templates-20260103062459",
|
|
106
|
+
"eslint-config-skuba": "8.0.0-test-private-templates-20260103062459"
|
|
102
107
|
},
|
|
103
108
|
"devDependencies": {
|
|
104
|
-
"@changesets/cli": "2.29.
|
|
105
|
-
"@changesets/get-github-info": "0.
|
|
109
|
+
"@changesets/cli": "2.29.8",
|
|
110
|
+
"@changesets/get-github-info": "0.7.0",
|
|
111
|
+
"@jest/reporters": "30.2.0",
|
|
112
|
+
"@jest/test-result": "30.2.0",
|
|
106
113
|
"@types/ejs": "3.1.5",
|
|
107
|
-
"@types/express": "5.0.
|
|
114
|
+
"@types/express": "5.0.6",
|
|
108
115
|
"@types/fs-extra": "11.0.4",
|
|
109
|
-
"@types/koa": "3.0.
|
|
116
|
+
"@types/koa": "3.0.1",
|
|
110
117
|
"@types/lodash.mergewith": "4.6.9",
|
|
111
118
|
"@types/minimist": "1.2.5",
|
|
112
119
|
"@types/module-alias": "2.0.4",
|
|
113
|
-
"@types/npm-registry-fetch": "8.0.
|
|
120
|
+
"@types/npm-registry-fetch": "8.0.9",
|
|
114
121
|
"@types/npm-which": "3.0.4",
|
|
115
122
|
"@types/picomatch": "4.0.2",
|
|
116
123
|
"@types/semver": "7.7.1",
|
|
117
124
|
"@types/supertest": "6.0.3",
|
|
118
|
-
"enhanced-resolve": "5.18.
|
|
119
|
-
"express": "5.1
|
|
120
|
-
"fastify": "5.6.
|
|
125
|
+
"enhanced-resolve": "5.18.4",
|
|
126
|
+
"express": "5.2.1",
|
|
127
|
+
"fastify": "5.6.2",
|
|
128
|
+
"jest-diff": "30.2.0",
|
|
121
129
|
"jsonfile": "6.2.0",
|
|
122
|
-
"koa": "3.
|
|
123
|
-
"memfs": "4.
|
|
130
|
+
"koa": "3.1.1",
|
|
131
|
+
"memfs": "4.51.1",
|
|
124
132
|
"remark-cli": "12.0.1",
|
|
125
133
|
"remark-preset-lint-recommended": "7.0.1",
|
|
126
134
|
"semver": "7.7.3",
|
|
127
135
|
"supertest": "7.1.4",
|
|
128
|
-
"ts-dedent": "^2.2.0",
|
|
129
136
|
"type-fest": "2.19.0"
|
|
130
137
|
},
|
|
131
|
-
"peerDependencies": {
|
|
132
|
-
"skuba-dive": "3.0.0-replace-global-vars-20251121010036"
|
|
133
|
-
},
|
|
134
|
-
"peerDependenciesMeta": {
|
|
135
|
-
"skuba-dive": {
|
|
136
|
-
"optional": true
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
138
|
"engines": {
|
|
140
|
-
"node": ">=
|
|
139
|
+
"node": ">=22.14.0"
|
|
141
140
|
},
|
|
142
141
|
"skuba": {
|
|
143
142
|
"build": "esbuild",
|
|
144
143
|
"entryPoint": "src/index.ts",
|
|
145
144
|
"template": null,
|
|
146
145
|
"type": "package",
|
|
147
|
-
"version": "13.
|
|
146
|
+
"version": "13.1.1"
|
|
148
147
|
},
|
|
149
148
|
"scripts": {
|
|
150
149
|
"build": "scripts/build.sh",
|
|
@@ -159,12 +158,12 @@
|
|
|
159
158
|
"release": "pnpm --silent build && changeset publish",
|
|
160
159
|
"skuba": "pnpm --silent build && pnpm --silent skuba:exec",
|
|
161
160
|
"skuba:exec": "node lib/skuba",
|
|
162
|
-
"stage": "changeset version && node ./.changeset/inject.
|
|
163
|
-
"test": "pnpm --silent skuba test
|
|
164
|
-
"test:ci": "pnpm --silent skuba test
|
|
165
|
-
"test:int": "pnpm --silent skuba test
|
|
161
|
+
"stage": "changeset version && node ./.changeset/inject.js && pnpm format",
|
|
162
|
+
"test": "pnpm --silent skuba test --selectProjects unit",
|
|
163
|
+
"test:ci": "pnpm --silent skuba test --runInBand",
|
|
164
|
+
"test:int": "pnpm --silent skuba test --selectProjects integration --runInBand",
|
|
166
165
|
"test:template": "scripts/test-template.sh",
|
|
167
166
|
"test:template:updateSnapshot": "scripts/test-template.sh -u",
|
|
168
|
-
"test:watch": "pnpm --silent skuba test"
|
|
167
|
+
"test:watch": "pnpm --silent skuba test --runInBand --watch"
|
|
169
168
|
}
|
|
170
169
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
module.exports = require('skuba/config/prettier');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
module.exports = require('eslint-config-skuba');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# managed by skuba
|
|
2
2
|
ignorePatchFailures: false
|
|
3
|
-
|
|
3
|
+
minimumReleaseAge: 4320 # 3 days
|
|
4
4
|
minimumReleaseAgeExclude:
|
|
5
5
|
- '@seek/*'
|
|
6
6
|
- '@skuba-lib/*'
|
|
@@ -8,16 +8,17 @@ minimumReleaseAgeExclude:
|
|
|
8
8
|
- eslint-config-skuba
|
|
9
9
|
- eslint-plugin-skuba
|
|
10
10
|
- skuba
|
|
11
|
+
- skuba-dive
|
|
11
12
|
- tsconfig-seek
|
|
12
13
|
packageManagerStrictVersion: true
|
|
13
14
|
publicHoistPattern:
|
|
15
|
+
- '@eslint/*'
|
|
14
16
|
- '@types*'
|
|
15
|
-
- '@vitest/*'
|
|
16
17
|
- eslint
|
|
17
18
|
- eslint-config-skuba
|
|
18
19
|
- prettier
|
|
19
20
|
- esbuild
|
|
21
|
+
- jest
|
|
20
22
|
- tsconfig-seek
|
|
21
23
|
- typescript
|
|
22
|
-
- vitest
|
|
23
24
|
# end managed by skuba
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Jest } from 'skuba';
|
|
2
|
+
|
|
3
|
+
export default Jest.mergePreset({
|
|
4
|
+
coveragePathIgnorePatterns: ['src/testing'],
|
|
5
|
+
coverageThreshold: {
|
|
6
|
+
global: {
|
|
7
|
+
branches: 0,
|
|
8
|
+
functions: 0,
|
|
9
|
+
lines: 0,
|
|
10
|
+
statements: 0,
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
setupFiles: ['<rootDir>/jest.setup.ts'],
|
|
14
|
+
testPathIgnorePatterns: ['/test\\.ts'],
|
|
15
|
+
moduleNameMapper: {
|
|
16
|
+
'^#src/(.*)\\.js$': ['<rootDir>/src/$1'],
|
|
17
|
+
'^#src/(.*)$': ['<rootDir>/src/$1'],
|
|
18
|
+
},
|
|
19
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
24
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
"name": "@seek/<%- serviceName %>",
|
|
3
3
|
"private": true,
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
|
-
"type": "module",
|
|
6
5
|
"imports": {
|
|
7
6
|
"#src/*": {
|
|
8
7
|
"@seek/<%- serviceName %>/source": "./src/*",
|
|
@@ -22,16 +21,16 @@
|
|
|
22
21
|
"dependencies": {
|
|
23
22
|
"@opentelemetry/api": "^1.9.0",
|
|
24
23
|
"@opentelemetry/core": "^2.0.0",
|
|
25
|
-
"@opentelemetry/exporter-trace-otlp-grpc": "^0.
|
|
26
|
-
"@opentelemetry/instrumentation-aws-sdk": "^0.
|
|
27
|
-
"@opentelemetry/instrumentation-http": "^0.
|
|
24
|
+
"@opentelemetry/exporter-trace-otlp-grpc": "^0.208.0",
|
|
25
|
+
"@opentelemetry/instrumentation-aws-sdk": "^0.64.0",
|
|
26
|
+
"@opentelemetry/instrumentation-http": "^0.208.0",
|
|
28
27
|
"@opentelemetry/propagator-b3": "^2.0.0",
|
|
29
|
-
"@opentelemetry/sdk-node": "^0.
|
|
28
|
+
"@opentelemetry/sdk-node": "^0.208.0",
|
|
30
29
|
"@seek/logger": "^11.1.0",
|
|
31
30
|
"express": "^5.0.0",
|
|
32
|
-
"hot-shots": "^
|
|
31
|
+
"hot-shots": "^12.0.0",
|
|
33
32
|
"seek-datadog-custom-metrics": "^6.0.0",
|
|
34
|
-
"skuba-dive": "^
|
|
33
|
+
"skuba-dive": "^3.0.0"
|
|
35
34
|
},
|
|
36
35
|
"devDependencies": {
|
|
37
36
|
"@types/express": "^5.0.0",
|
|
@@ -41,8 +40,8 @@
|
|
|
41
40
|
"skuba": "*",
|
|
42
41
|
"supertest": "^7.0.0"
|
|
43
42
|
},
|
|
44
|
-
"packageManager": "pnpm@10.
|
|
43
|
+
"packageManager": "pnpm@10.26.2",
|
|
45
44
|
"engines": {
|
|
46
|
-
"node": ">=
|
|
45
|
+
"node": ">=24"
|
|
47
46
|
}
|
|
48
47
|
}
|
package/template/greeter/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
24
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
"name": "@seek/greeter",
|
|
3
3
|
"private": true,
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
|
-
"type": "module",
|
|
6
5
|
"imports": {
|
|
7
6
|
"#src/*": {
|
|
8
7
|
"@seek/<%- serviceName %>/source": "./src/*",
|
|
@@ -20,14 +19,14 @@
|
|
|
20
19
|
"test:watch": "skuba test --watch"
|
|
21
20
|
},
|
|
22
21
|
"dependencies": {
|
|
23
|
-
"skuba-dive": "
|
|
22
|
+
"skuba-dive": "4.0.0-test-private-templates-20260103062459"
|
|
24
23
|
},
|
|
25
24
|
"devDependencies": {
|
|
26
25
|
"@types/node": "^22.13.10",
|
|
27
|
-
"skuba": "14.0.0-
|
|
26
|
+
"skuba": "14.0.0-test-private-templates-20260103062459"
|
|
28
27
|
},
|
|
29
|
-
"packageManager": "pnpm@10.
|
|
28
|
+
"packageManager": "pnpm@10.26.2",
|
|
30
29
|
"engines": {
|
|
31
|
-
"node": ">=
|
|
30
|
+
"node": ">=24"
|
|
32
31
|
}
|
|
33
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
24
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
"name": "@seek/<%- serviceName %>",
|
|
3
3
|
"private": true,
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
|
-
"type": "module",
|
|
6
5
|
"imports": {
|
|
7
6
|
"#src/*": {
|
|
8
7
|
"@seek/<%- serviceName %>/source": "./src/*",
|
|
@@ -21,28 +20,27 @@
|
|
|
21
20
|
},
|
|
22
21
|
"dependencies": {
|
|
23
22
|
"@koa/bodyparser": "^6.0.0",
|
|
24
|
-
"@koa/router": "
|
|
23
|
+
"@koa/router": "15.0.0",
|
|
25
24
|
"@opentelemetry/api": "^1.9.0",
|
|
26
25
|
"@opentelemetry/core": "^2.0.0",
|
|
27
|
-
"@opentelemetry/exporter-trace-otlp-grpc": "^0.
|
|
28
|
-
"@opentelemetry/instrumentation-aws-sdk": "^0.
|
|
29
|
-
"@opentelemetry/instrumentation-http": "^0.
|
|
26
|
+
"@opentelemetry/exporter-trace-otlp-grpc": "^0.208.0",
|
|
27
|
+
"@opentelemetry/instrumentation-aws-sdk": "^0.64.0",
|
|
28
|
+
"@opentelemetry/instrumentation-http": "^0.208.0",
|
|
30
29
|
"@opentelemetry/propagator-b3": "^2.0.0",
|
|
31
|
-
"@opentelemetry/sdk-node": "^0.
|
|
30
|
+
"@opentelemetry/sdk-node": "^0.208.0",
|
|
32
31
|
"@seek/logger": "^11.1.0",
|
|
33
|
-
"hot-shots": "^
|
|
32
|
+
"hot-shots": "^12.0.0",
|
|
34
33
|
"koa": "^3.0.1",
|
|
35
34
|
"koa-compose": "^4.1.0",
|
|
36
35
|
"seek-datadog-custom-metrics": "^6.0.0",
|
|
37
36
|
"seek-koala": "^7.1.0",
|
|
38
|
-
"skuba-dive": "^
|
|
37
|
+
"skuba-dive": "^3.0.0",
|
|
39
38
|
"zod": "^4.0.0"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|
|
42
41
|
"@types/chance": "^1.1.3",
|
|
43
42
|
"@types/co-body": "^6.1.3",
|
|
44
43
|
"@types/koa": "^3.0.0",
|
|
45
|
-
"@types/koa__router": "^12.0.0",
|
|
46
44
|
"@types/node": "^22.13.10",
|
|
47
45
|
"@types/supertest": "^6.0.0",
|
|
48
46
|
"chance": "^1.1.8",
|
|
@@ -50,8 +48,8 @@
|
|
|
50
48
|
"skuba": "*",
|
|
51
49
|
"supertest": "^7.0.0"
|
|
52
50
|
},
|
|
53
|
-
"packageManager": "pnpm@10.
|
|
51
|
+
"packageManager": "pnpm@10.26.2",
|
|
54
52
|
"engines": {
|
|
55
|
-
"node": ">=
|
|
53
|
+
"node": ">=24"
|
|
56
54
|
}
|
|
57
55
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import Router from '@koa/router';
|
|
2
|
-
import { afterEach, describe, expect, it, vi } from 'vitest';
|
|
3
2
|
|
|
4
3
|
import { stdoutMock } from './logging.js';
|
|
5
4
|
|
|
@@ -8,7 +7,8 @@ import { agentFromRouter } from '#src/testing/server.js';
|
|
|
8
7
|
import { chance } from '#src/testing/types.js';
|
|
9
8
|
import type { Middleware } from '#src/types/koa.js';
|
|
10
9
|
|
|
11
|
-
const middleware =
|
|
10
|
+
const middleware = jest.fn<void, Parameters<Middleware>>();
|
|
11
|
+
|
|
12
12
|
const router = new Router()
|
|
13
13
|
.use('/nested', new Router().put('/:param', middleware).routes())
|
|
14
14
|
.get('/', middleware);
|
|
@@ -23,7 +23,7 @@ configs:
|
|
|
23
23
|
concurrency: 1
|
|
24
24
|
plugins:
|
|
25
25
|
- *docker-ecr-cache
|
|
26
|
-
- docker-compose#v5.
|
|
26
|
+
- docker-compose#v5.12.1:
|
|
27
27
|
dependencies: false
|
|
28
28
|
environment:
|
|
29
29
|
- GITHUB_API_TOKEN
|
|
@@ -53,7 +53,7 @@ steps:
|
|
|
53
53
|
GET_NPM_TOKEN: please
|
|
54
54
|
plugins:
|
|
55
55
|
- *docker-ecr-cache
|
|
56
|
-
- docker-compose#v5.
|
|
56
|
+
- docker-compose#v5.12.1:
|
|
57
57
|
run: app
|
|
58
58
|
environment:
|
|
59
59
|
- GITHUB_API_TOKEN
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
24
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
3
|
exports[`returns expected CloudFormation stack for dev 1`] = `
|
|
4
4
|
{
|
|
@@ -216,7 +216,7 @@ exports[`returns expected CloudFormation stack for dev 1`] = `
|
|
|
216
216
|
{
|
|
217
217
|
"Ref": "AWS::Region",
|
|
218
218
|
},
|
|
219
|
-
":464622532012:layer:Datadog-
|
|
219
|
+
":464622532012:layer:Datadog-Node24-x:x",
|
|
220
220
|
],
|
|
221
221
|
],
|
|
222
222
|
},
|
|
@@ -241,7 +241,7 @@ exports[`returns expected CloudFormation stack for dev 1`] = `
|
|
|
241
241
|
"Arn",
|
|
242
242
|
],
|
|
243
243
|
},
|
|
244
|
-
"Runtime": "
|
|
244
|
+
"Runtime": "nodejs24.x",
|
|
245
245
|
"Tags": [
|
|
246
246
|
{
|
|
247
247
|
"Key": "aws-codedeploy-hooks",
|
|
@@ -762,14 +762,6 @@ exports[`returns expected CloudFormation stack for prod 1`] = `
|
|
|
762
762
|
},
|
|
763
763
|
},
|
|
764
764
|
"Resources": {
|
|
765
|
-
"datadogapikeysecret046FEF06": {
|
|
766
|
-
"DeletionPolicy": "Delete",
|
|
767
|
-
"Properties": {
|
|
768
|
-
"GenerateSecretString": {},
|
|
769
|
-
},
|
|
770
|
-
"Type": "AWS::SecretsManager::Secret",
|
|
771
|
-
"UpdateReplacePolicy": "Delete",
|
|
772
|
-
},
|
|
773
765
|
"destinationtopicDCE2E0B8": {
|
|
774
766
|
"Properties": {
|
|
775
767
|
"KmsMasterKeyId": {
|
|
@@ -927,9 +919,7 @@ exports[`returns expected CloudFormation stack for prod 1`] = `
|
|
|
927
919
|
},
|
|
928
920
|
"Environment": {
|
|
929
921
|
"Variables": {
|
|
930
|
-
"DD_API_KEY_SECRET_ARN":
|
|
931
|
-
"Ref": "datadogapikeysecret046FEF06",
|
|
932
|
-
},
|
|
922
|
+
"DD_API_KEY_SECRET_ARN": "arn:aws:secretsmanager:<Region>:<AccountId>:secret:datadog-api-key",
|
|
933
923
|
"DD_CAPTURE_LAMBDA_PAYLOAD": "false",
|
|
934
924
|
"DD_ENV": "production",
|
|
935
925
|
"DD_FLUSH_TO_LOG": "false",
|
|
@@ -968,7 +958,7 @@ exports[`returns expected CloudFormation stack for prod 1`] = `
|
|
|
968
958
|
{
|
|
969
959
|
"Ref": "AWS::Region",
|
|
970
960
|
},
|
|
971
|
-
":464622532012:layer:Datadog-
|
|
961
|
+
":464622532012:layer:Datadog-Node24-x:x",
|
|
972
962
|
],
|
|
973
963
|
],
|
|
974
964
|
},
|
|
@@ -993,7 +983,7 @@ exports[`returns expected CloudFormation stack for prod 1`] = `
|
|
|
993
983
|
"Arn",
|
|
994
984
|
],
|
|
995
985
|
},
|
|
996
|
-
"Runtime": "
|
|
986
|
+
"Runtime": "nodejs24.x",
|
|
997
987
|
"Tags": [
|
|
998
988
|
{
|
|
999
989
|
"Key": "aws-codedeploy-hooks",
|
|
@@ -1392,9 +1382,7 @@ exports[`returns expected CloudFormation stack for prod 1`] = `
|
|
|
1392
1382
|
"secretsmanager:DescribeSecret",
|
|
1393
1383
|
],
|
|
1394
1384
|
"Effect": "Allow",
|
|
1395
|
-
"Resource":
|
|
1396
|
-
"Ref": "datadogapikeysecret046FEF06",
|
|
1397
|
-
},
|
|
1385
|
+
"Resource": "arn:aws:secretsmanager:<Region>:<AccountId>:secret:datadog-api-key-??????",
|
|
1398
1386
|
},
|
|
1399
1387
|
{
|
|
1400
1388
|
"Action": [
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { App, aws_secretsmanager, aws_sns } from 'aws-cdk-lib';
|
|
2
2
|
import { Template } from 'aws-cdk-lib/assertions';
|
|
3
|
-
import { afterAll, afterEach, expect, it, vi } from 'vitest';
|
|
4
3
|
|
|
5
4
|
const originalDeployment = process.env.DEPLOYMENT;
|
|
6
5
|
const originalVersion = process.env.VERSION;
|
|
@@ -11,7 +10,7 @@ afterAll(() => {
|
|
|
11
10
|
});
|
|
12
11
|
|
|
13
12
|
afterEach(() => {
|
|
14
|
-
|
|
13
|
+
jest.resetModules();
|
|
15
14
|
});
|
|
16
15
|
|
|
17
16
|
it.each(['dev', 'prod'])(
|
|
@@ -22,16 +21,15 @@ it.each(['dev', 'prod'])(
|
|
|
22
21
|
|
|
23
22
|
const { AppStack } = await import('./appStack.js');
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
(
|
|
27
|
-
|
|
24
|
+
jest
|
|
25
|
+
.spyOn(aws_sns.Topic, 'fromTopicArn')
|
|
26
|
+
.mockImplementation((scope, id) => new aws_sns.Topic(scope, id));
|
|
28
27
|
|
|
29
|
-
|
|
30
|
-
aws_secretsmanager.Secret,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
);
|
|
28
|
+
jest
|
|
29
|
+
.spyOn(aws_secretsmanager.Secret, 'fromSecretPartialArn')
|
|
30
|
+
.mockImplementation(
|
|
31
|
+
(scope, id) => new aws_secretsmanager.Secret(scope, id),
|
|
32
|
+
);
|
|
35
33
|
|
|
36
34
|
const app = new App({ context: { 'aws:cdk:bundling-stacks': [] } });
|
|
37
35
|
|