skuba 9.0.0-main-20240918063050 → 9.0.0-main-20240924121500

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 (59) hide show
  1. package/config/eslint.js +1 -3
  2. package/lib/cli/adapter/eslint.d.ts +1 -1
  3. package/lib/cli/adapter/eslint.js +34 -8
  4. package/lib/cli/adapter/eslint.js.map +2 -2
  5. package/lib/cli/build/index.js +1 -0
  6. package/lib/cli/build/index.js.map +1 -1
  7. package/lib/cli/configure/modules/eslint.js +4 -8
  8. package/lib/cli/configure/modules/eslint.js.map +2 -2
  9. package/lib/cli/configure/processing/configFile.js +1 -1
  10. package/lib/cli/configure/processing/configFile.js.map +2 -2
  11. package/lib/cli/format.d.ts +1 -1
  12. package/lib/cli/format.js +2 -2
  13. package/lib/cli/format.js.map +2 -2
  14. package/lib/cli/init/getConfig.js.map +1 -1
  15. package/lib/cli/init/index.js +1 -1
  16. package/lib/cli/init/index.js.map +1 -1
  17. package/lib/cli/init/types.js.map +2 -2
  18. package/lib/cli/lint/autofix.d.ts +1 -0
  19. package/lib/cli/lint/autofix.js +2 -2
  20. package/lib/cli/lint/autofix.js.map +2 -2
  21. package/lib/cli/lint/eslint.d.ts +1 -1
  22. package/lib/cli/lint/eslint.js +1 -1
  23. package/lib/cli/lint/eslint.js.map +2 -2
  24. package/lib/cli/lint/internalLints/patchRenovateConfig.js +0 -4
  25. package/lib/cli/lint/internalLints/patchRenovateConfig.js.map +2 -2
  26. package/lib/cli/lint/internalLints/refreshConfigFiles.js +0 -1
  27. package/lib/cli/lint/internalLints/refreshConfigFiles.js.map +2 -2
  28. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/collapseDuplicateMergeKeys.d.ts +2 -0
  29. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/collapseDuplicateMergeKeys.js +90 -0
  30. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/collapseDuplicateMergeKeys.js.map +7 -0
  31. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/index.js +10 -0
  32. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/index.js.map +2 -2
  33. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerCompose.js +1 -1
  34. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerCompose.js.map +2 -2
  35. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/upgradeESLint.d.ts +2 -0
  36. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/upgradeESLint.js +144 -0
  37. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/upgradeESLint.js.map +7 -0
  38. package/lib/cli/lint/types.d.ts +4 -0
  39. package/lib/cli/lint/types.js.map +1 -1
  40. package/lib/eslint.d.js +2 -0
  41. package/lib/index.js.map +1 -1
  42. package/lib/skuba.js.map +1 -1
  43. package/lib/utils/copy.js +1 -1
  44. package/lib/utils/copy.js.map +2 -2
  45. package/lib/wrapper/main.js.map +1 -1
  46. package/package.json +9 -8
  47. package/template/base/_eslint.config.js +1 -0
  48. package/template/express-rest-api/package.json +1 -1
  49. package/template/greeter/package.json +2 -2
  50. package/template/koa-rest-api/package.json +1 -1
  51. package/template/koa-rest-api/src/framework/server.test.ts +2 -1
  52. package/template/lambda-sqs-worker/package.json +1 -1
  53. package/template/lambda-sqs-worker/src/types/jobScorer.ts +1 -1
  54. package/template/lambda-sqs-worker-cdk/infra/__snapshots__/appStack.test.ts.snap +12 -0
  55. package/template/lambda-sqs-worker-cdk/package.json +2 -2
  56. package/lib/why-is-node-running.d.js +0 -2
  57. package/template/base/_.eslintignore +0 -15
  58. package/template/base/_.eslintrc.js +0 -3
  59. /package/lib/{why-is-node-running.d.js.map → eslint.d.js.map} +0 -0
@@ -203,7 +203,7 @@ describe('createApp', () => {
203
203
 
204
204
  it('handles null error', async () => {
205
205
  middleware.mockImplementation(() => {
206
- /* eslint-disable-next-line no-throw-literal */
206
+ /* eslint-disable-next-line @typescript-eslint/only-throw-error */
207
207
  throw null;
208
208
  });
209
209
 
@@ -233,6 +233,7 @@ describe('createApp', () => {
233
233
  const err = chance.sentence();
234
234
 
235
235
  middleware.mockImplementation(() => {
236
+ // eslint-disable-next-line @typescript-eslint/only-throw-error
236
237
  throw err;
237
238
  });
238
239
 
@@ -38,7 +38,7 @@
38
38
  "serverless-prune-plugin": "^2.0.0",
39
39
  "skuba": "*"
40
40
  },
41
- "packageManager": "pnpm@9.10.0",
41
+ "packageManager": "pnpm@9.11.0",
42
42
  "engines": {
43
43
  "node": ">=20"
44
44
  }
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
 
3
3
  export type JobScorerInput = z.infer<typeof JobScorerInputSchema>;
4
4
 
5
- const JobScorerInputSchema = z.object({
5
+ export const JobScorerInputSchema = z.object({
6
6
  id: z.string(),
7
7
  details: z.string(),
8
8
  });
@@ -304,6 +304,12 @@ exports[`returns expected CloudFormation stack for dev 1`] = `
304
304
  ],
305
305
  ],
306
306
  },
307
+ "Tags": [
308
+ {
309
+ "Key": "aws-codedeploy-hooks",
310
+ "Value": "x.x.x-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
311
+ },
312
+ ],
307
313
  },
308
314
  "Type": "AWS::Lambda::EventSourceMapping",
309
315
  },
@@ -1007,6 +1013,12 @@ exports[`returns expected CloudFormation stack for prod 1`] = `
1007
1013
  ],
1008
1014
  ],
1009
1015
  },
1016
+ "Tags": [
1017
+ {
1018
+ "Key": "aws-codedeploy-hooks",
1019
+ "Value": "x.x.x-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
1020
+ },
1021
+ ],
1010
1022
  },
1011
1023
  "Type": "AWS::Lambda::EventSourceMapping",
1012
1024
  },
@@ -28,9 +28,9 @@
28
28
  "aws-cdk-lib": "^2.109.0",
29
29
  "constructs": "^10.0.17",
30
30
  "pino-pretty": "^11.0.0",
31
- "skuba": "9.0.0-main-20240918063050"
31
+ "skuba": "9.0.0-main-20240924121500"
32
32
  },
33
- "packageManager": "pnpm@9.10.0",
33
+ "packageManager": "pnpm@9.11.0",
34
34
  "engines": {
35
35
  "node": ">=20"
36
36
  }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=why-is-node-running.d.js.map
@@ -1,15 +0,0 @@
1
- # managed by skuba
2
- .idea/*
3
- .vscode/*
4
-
5
- .cdk.staging/
6
- .pnpm-store/
7
- .serverless/
8
- cdk.out/
9
- node_modules*/
10
-
11
- /coverage*/
12
- /dist*/
13
- /lib*/
14
- /tmp*/
15
- # end managed by skuba
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- extends: ['skuba'],
3
- };