skuba 8.0.0-update-eslint-config-skuba-20240323071344 → 8.0.1-dive-migration-20240325114906
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/api/jest/index.d.ts +1 -133
- package/package.json +6 -6
- package/template/express-rest-api/.gantry/common.yml +0 -1
- package/template/express-rest-api/.gantry/dev.yml +0 -2
- package/template/express-rest-api/.gantry/prod.yml +0 -2
- package/template/express-rest-api/package.json +1 -1
- package/template/greeter/package.json +1 -1
- package/template/koa-rest-api/.gantry/common.yml +0 -1
- package/template/koa-rest-api/.gantry/dev.yml +1 -2
- package/template/koa-rest-api/.gantry/prod.yml +1 -2
- package/template/koa-rest-api/gantry.apply.yml +2 -6
- package/template/koa-rest-api/package.json +1 -1
- package/template/lambda-sqs-worker/package.json +1 -1
- package/template/lambda-sqs-worker/serverless.yml +0 -6
- package/template/lambda-sqs-worker-cdk/package.json +1 -1
package/lib/api/jest/index.d.ts
CHANGED
|
@@ -12,136 +12,4 @@ type DefaultOptions = 'collectCoverage' | 'collectCoverageFrom' | 'coveragePathI
|
|
|
12
12
|
*
|
|
13
13
|
* This concatenates array options like `testPathIgnorePatterns`.
|
|
14
14
|
*/
|
|
15
|
-
export declare const mergePreset: <AdditionalOptions extends "filter" | "json" | "silent" | "transform" | "cache" | "runtime" | "watch" | "runner" | "projects" | "id" | "automock" | "cacheDirectory" | "clearMocks" | "collectCoverageFrom" | "coverageDirectory" | "coveragePathIgnorePatterns" | "dependencyExtractor" | "detectLeaks" | "detectOpenHandles" | "displayName" | "errorOnDeprecated" | "extensionsToTreatAsEsm" | "fakeTimers" | "forceCoverageMatch" | "globalSetup" | "globalTeardown" | "globals" | "haste" | "injectGlobals" | "moduleDirectories" | "moduleFileExtensions" | "moduleNameMapper" | "modulePathIgnorePatterns" | "modulePaths" | "openHandlesTimeout" | "preset" | "prettierPath" | "resetMocks" | "resetModules" | "resolver" | "restoreMocks" | "rootDir" | "roots" | "sandboxInjectedGlobals" | "setupFiles" | "setupFilesAfterEnv" | "skipFilter" | "skipNodeResolution" | "slowTestThreshold" | "snapshotResolver" | "snapshotSerializers" | "snapshotFormat" | "testEnvironment" | "testEnvironmentOptions" | "testMatch" | "testLocationInResults" | "testPathIgnorePatterns" | "testRegex" | "testRunner" | "transformIgnorePatterns" | "watchPathIgnorePatterns" | "unmockedModulePathPatterns" | "workerIdleMemoryLimit" | "bail" | "ci" | "changedFilesWithAncestor" | "changedSince" | "collectCoverage" | "coverageProvider" | "coverageReporters" | "coverageThreshold" | "expand" | "findRelatedTests" | "forceExit" | "reporters" | "logHeapUsage" | "lastCommit" | "listTests" | "maxConcurrency" | "maxWorkers" | "noStackTrace" | "notify" | "notifyMode" | "onlyChanged" | "onlyFailures" | "outputFile" | "passWithNoTests" | "randomize" | "replname" | "runTestsByPath" | "showSeed" | "testFailureExitCode" | "testNamePattern" | "testResultsProcessor" | "testSequencer" | "testTimeout" | "updateSnapshot" | "useStderr" | "verbose" | "watchAll" | "watchman" | "watchPlugins" | "workerThreads">({ projects, ...options }: Pick<
|
|
16
|
-
automock: boolean;
|
|
17
|
-
bail: number | boolean;
|
|
18
|
-
cache: boolean;
|
|
19
|
-
cacheDirectory: string;
|
|
20
|
-
ci: boolean;
|
|
21
|
-
clearMocks: boolean;
|
|
22
|
-
changedFilesWithAncestor: boolean;
|
|
23
|
-
changedSince: string;
|
|
24
|
-
collectCoverage: boolean;
|
|
25
|
-
collectCoverageFrom: string[];
|
|
26
|
-
coverageDirectory: string;
|
|
27
|
-
coveragePathIgnorePatterns: string[];
|
|
28
|
-
coverageProvider: "v8" | "babel";
|
|
29
|
-
coverageReporters: Config.CoverageReporters;
|
|
30
|
-
coverageThreshold: {
|
|
31
|
-
[path: string]: Config.CoverageThresholdValue;
|
|
32
|
-
global: Config.CoverageThresholdValue;
|
|
33
|
-
};
|
|
34
|
-
dependencyExtractor: string;
|
|
35
|
-
detectLeaks: boolean;
|
|
36
|
-
detectOpenHandles: boolean;
|
|
37
|
-
displayName: string | Config.DisplayName;
|
|
38
|
-
expand: boolean;
|
|
39
|
-
extensionsToTreatAsEsm: string[];
|
|
40
|
-
fakeTimers: Config.GlobalFakeTimersConfig & ((Config.FakeTimersConfig & {
|
|
41
|
-
now?: number | undefined;
|
|
42
|
-
}) | Config.LegacyFakeTimersConfig);
|
|
43
|
-
filter: string;
|
|
44
|
-
findRelatedTests: boolean;
|
|
45
|
-
forceCoverageMatch: string[];
|
|
46
|
-
forceExit: boolean;
|
|
47
|
-
json: boolean;
|
|
48
|
-
globals: Config.ConfigGlobals;
|
|
49
|
-
globalSetup: string | null | undefined;
|
|
50
|
-
globalTeardown: string | null | undefined;
|
|
51
|
-
haste: Config.HasteConfig;
|
|
52
|
-
id: string;
|
|
53
|
-
injectGlobals: boolean;
|
|
54
|
-
reporters: (string | Config.ReporterConfig)[];
|
|
55
|
-
logHeapUsage: boolean;
|
|
56
|
-
lastCommit: boolean;
|
|
57
|
-
listTests: boolean;
|
|
58
|
-
maxConcurrency: number;
|
|
59
|
-
maxWorkers: string | number;
|
|
60
|
-
moduleDirectories: string[];
|
|
61
|
-
moduleFileExtensions: string[];
|
|
62
|
-
moduleNameMapper: {
|
|
63
|
-
[key: string]: string | string[];
|
|
64
|
-
};
|
|
65
|
-
modulePathIgnorePatterns: string[];
|
|
66
|
-
modulePaths: string[];
|
|
67
|
-
noStackTrace: boolean;
|
|
68
|
-
notify: boolean;
|
|
69
|
-
notifyMode: string;
|
|
70
|
-
onlyChanged: boolean;
|
|
71
|
-
onlyFailures: boolean;
|
|
72
|
-
openHandlesTimeout: number;
|
|
73
|
-
outputFile: string;
|
|
74
|
-
passWithNoTests: boolean;
|
|
75
|
-
preset: string | null | undefined;
|
|
76
|
-
prettierPath: string | null | undefined;
|
|
77
|
-
projects: (string | Config.InitialProjectOptions)[];
|
|
78
|
-
randomize: boolean;
|
|
79
|
-
replname: string | null | undefined;
|
|
80
|
-
resetMocks: boolean;
|
|
81
|
-
resetModules: boolean;
|
|
82
|
-
resolver: string | null | undefined;
|
|
83
|
-
restoreMocks: boolean;
|
|
84
|
-
rootDir: string;
|
|
85
|
-
roots: string[];
|
|
86
|
-
runner: string;
|
|
87
|
-
runTestsByPath: boolean;
|
|
88
|
-
runtime: string;
|
|
89
|
-
sandboxInjectedGlobals: string[];
|
|
90
|
-
setupFiles: string[];
|
|
91
|
-
setupFilesAfterEnv: string[];
|
|
92
|
-
showSeed: boolean;
|
|
93
|
-
silent: boolean;
|
|
94
|
-
skipFilter: boolean;
|
|
95
|
-
skipNodeResolution: boolean;
|
|
96
|
-
slowTestThreshold: number;
|
|
97
|
-
snapshotResolver: string;
|
|
98
|
-
snapshotSerializers: string[];
|
|
99
|
-
snapshotFormat: {
|
|
100
|
-
readonly min?: boolean | undefined;
|
|
101
|
-
readonly callToJSON?: boolean | undefined;
|
|
102
|
-
readonly compareKeys?: null | undefined;
|
|
103
|
-
readonly escapeRegex?: boolean | undefined;
|
|
104
|
-
readonly escapeString?: boolean | undefined;
|
|
105
|
-
readonly highlight?: boolean | undefined;
|
|
106
|
-
readonly indent?: number | undefined;
|
|
107
|
-
readonly maxDepth?: number | undefined;
|
|
108
|
-
readonly maxWidth?: number | undefined;
|
|
109
|
-
readonly printBasicPrototype?: boolean | undefined;
|
|
110
|
-
readonly printFunctionName?: boolean | undefined;
|
|
111
|
-
readonly theme?: {
|
|
112
|
-
readonly value?: string | undefined;
|
|
113
|
-
readonly tag?: string | undefined;
|
|
114
|
-
readonly content?: string | undefined;
|
|
115
|
-
readonly comment?: string | undefined;
|
|
116
|
-
readonly prop?: string | undefined;
|
|
117
|
-
} | undefined;
|
|
118
|
-
};
|
|
119
|
-
errorOnDeprecated: boolean;
|
|
120
|
-
testEnvironment: string;
|
|
121
|
-
testEnvironmentOptions: Record<string, unknown>;
|
|
122
|
-
testFailureExitCode: string | number;
|
|
123
|
-
testLocationInResults: boolean;
|
|
124
|
-
testMatch: string[];
|
|
125
|
-
testNamePattern: string;
|
|
126
|
-
testPathIgnorePatterns: string[];
|
|
127
|
-
testRegex: string | string[];
|
|
128
|
-
testResultsProcessor: string;
|
|
129
|
-
testRunner: string;
|
|
130
|
-
testSequencer: string;
|
|
131
|
-
testTimeout: number;
|
|
132
|
-
transform: {
|
|
133
|
-
[regex: string]: string | Config.TransformerConfig;
|
|
134
|
-
};
|
|
135
|
-
transformIgnorePatterns: string[];
|
|
136
|
-
watchPathIgnorePatterns: string[];
|
|
137
|
-
unmockedModulePathPatterns: string[];
|
|
138
|
-
updateSnapshot: boolean;
|
|
139
|
-
useStderr: boolean;
|
|
140
|
-
verbose?: boolean | undefined;
|
|
141
|
-
watch: boolean;
|
|
142
|
-
watchAll: boolean;
|
|
143
|
-
watchman: boolean;
|
|
144
|
-
watchPlugins: (string | [string, Record<string, unknown>])[];
|
|
145
|
-
workerIdleMemoryLimit: string | number;
|
|
146
|
-
workerThreads: boolean;
|
|
147
|
-
}>, DefaultOptions | AdditionalOptions>) => Config.InitialOptions;
|
|
15
|
+
export declare const mergePreset: <AdditionalOptions extends "filter" | "json" | "silent" | "transform" | "cache" | "runtime" | "watch" | "runner" | "projects" | "id" | "automock" | "cacheDirectory" | "clearMocks" | "collectCoverageFrom" | "coverageDirectory" | "coveragePathIgnorePatterns" | "dependencyExtractor" | "detectLeaks" | "detectOpenHandles" | "displayName" | "errorOnDeprecated" | "extensionsToTreatAsEsm" | "fakeTimers" | "forceCoverageMatch" | "globalSetup" | "globalTeardown" | "globals" | "haste" | "injectGlobals" | "moduleDirectories" | "moduleFileExtensions" | "moduleNameMapper" | "modulePathIgnorePatterns" | "modulePaths" | "openHandlesTimeout" | "preset" | "prettierPath" | "resetMocks" | "resetModules" | "resolver" | "restoreMocks" | "rootDir" | "roots" | "sandboxInjectedGlobals" | "setupFiles" | "setupFilesAfterEnv" | "skipFilter" | "skipNodeResolution" | "slowTestThreshold" | "snapshotResolver" | "snapshotSerializers" | "snapshotFormat" | "testEnvironment" | "testEnvironmentOptions" | "testMatch" | "testLocationInResults" | "testPathIgnorePatterns" | "testRegex" | "testRunner" | "transformIgnorePatterns" | "watchPathIgnorePatterns" | "unmockedModulePathPatterns" | "workerIdleMemoryLimit" | "bail" | "ci" | "changedFilesWithAncestor" | "changedSince" | "collectCoverage" | "coverageProvider" | "coverageReporters" | "coverageThreshold" | "expand" | "findRelatedTests" | "forceExit" | "reporters" | "logHeapUsage" | "lastCommit" | "listTests" | "maxConcurrency" | "maxWorkers" | "noStackTrace" | "notify" | "notifyMode" | "onlyChanged" | "onlyFailures" | "outputFile" | "passWithNoTests" | "randomize" | "replname" | "runTestsByPath" | "showSeed" | "testFailureExitCode" | "testNamePattern" | "testResultsProcessor" | "testSequencer" | "testTimeout" | "updateSnapshot" | "useStderr" | "verbose" | "watchAll" | "watchman" | "watchPlugins" | "workerThreads">({ projects, ...options }: Pick<Config.InitialOptions, AdditionalOptions | DefaultOptions>) => Config.InitialOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skuba",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.1-dive-migration-20240325114906",
|
|
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",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"prettier": "~3.2.5",
|
|
88
88
|
"prettier-plugin-packagejson": "^2.4.10",
|
|
89
89
|
"read-pkg-up": "^7.0.1",
|
|
90
|
-
"semantic-release": "^
|
|
90
|
+
"semantic-release": "^22.0.12",
|
|
91
91
|
"serialize-error": "^8.0.1",
|
|
92
92
|
"simple-git": "^3.5.0",
|
|
93
93
|
"strip-ansi": "^6.0.1",
|
|
@@ -97,10 +97,10 @@
|
|
|
97
97
|
"ts-node-dev": "^2.0.0",
|
|
98
98
|
"tsconfig-paths": "^4.0.0",
|
|
99
99
|
"tsconfig-seek": "2.0.0",
|
|
100
|
-
"typescript": "~5.
|
|
100
|
+
"typescript": "~5.4.0",
|
|
101
101
|
"validate-npm-package-name": "^5.0.0",
|
|
102
102
|
"zod": "^3.22.4",
|
|
103
|
-
"eslint-config-skuba": "4.0.
|
|
103
|
+
"eslint-config-skuba": "4.0.1-dive-migration-20240325114906"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
106
|
"@changesets/cli": "2.27.1",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"type-fest": "2.19.0"
|
|
133
133
|
},
|
|
134
134
|
"peerDependencies": {
|
|
135
|
-
"skuba-dive": "1
|
|
135
|
+
"skuba-dive": "2.0.1-dive-migration-20240325114906"
|
|
136
136
|
},
|
|
137
137
|
"peerDependenciesMeta": {
|
|
138
138
|
"skuba-dive": {
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
"format": "pnpm --silent skuba format",
|
|
161
161
|
"lint": "pnpm --silent skuba lint && pnpm --silent lint:md",
|
|
162
162
|
"lint:md": "remark --frail --quiet .",
|
|
163
|
-
"release": "
|
|
163
|
+
"release": "changeset publish",
|
|
164
164
|
"skuba": "pnpm --silent build && pnpm --silent skuba:exec",
|
|
165
165
|
"skuba:exec": "node --env-file=.env lib/skuba",
|
|
166
166
|
"stage": "changeset version && node ./.changeset/inject.js && pnpm format",
|
|
@@ -9,7 +9,6 @@ image: '{{values "prodAccountId"}}.dkr.ecr.<%- region %>.amazonaws.com/{{values
|
|
|
9
9
|
# datadogSecretId: arn:aws:secretsmanager:<%- region %>:<aws-account-id>:secret:<secret-name>
|
|
10
10
|
|
|
11
11
|
tags:
|
|
12
|
-
seek:env:prod: '{{values "isProduction"}}'
|
|
13
12
|
seek:source:sha: '{{.CommitSHA}}'
|
|
14
13
|
seek:source:url: 'https://github.com/SEEK-Jobs/<%- repoName %>'
|
|
15
14
|
# seek:system:name: 'TODO: https://rfc.skinfra.xyz/RFC019-AWS-Tagging-Standard.html#required-tags'
|
|
@@ -9,7 +9,6 @@ image: '{{values "prodAccountId"}}.dkr.ecr.<%- region %>.amazonaws.com/{{values
|
|
|
9
9
|
# datadogSecretId: arn:aws:secretsmanager:<%- region %>:<aws-account-id>:secret:<secret-name>
|
|
10
10
|
|
|
11
11
|
tags:
|
|
12
|
-
seek:env:prod: '{{values "isProduction"}}'
|
|
13
12
|
seek:source:sha: '{{.CommitSHA}}'
|
|
14
13
|
seek:source:url: 'https://github.com/SEEK-Jobs/<%- repoName %>'
|
|
15
14
|
# seek:system:name: 'TODO: https://rfc.skinfra.xyz/RFC019-AWS-Tagging-Standard.html#required-tags'
|
|
@@ -2,8 +2,6 @@ environment: dev
|
|
|
2
2
|
env:
|
|
3
3
|
SOME_ENVIRONMENT_VARIABLE: dev-value
|
|
4
4
|
|
|
5
|
-
isProduction: false
|
|
6
|
-
|
|
7
5
|
maxInstanceCount: 1
|
|
8
6
|
minInstanceCount: 1
|
|
9
7
|
|
|
@@ -11,4 +9,5 @@ minInstanceCount: 1
|
|
|
11
9
|
cloudwatchDashboardDisabled: true
|
|
12
10
|
|
|
13
11
|
openTelemetry:
|
|
12
|
+
datadogEnvironmentName: development
|
|
14
13
|
enabled: false
|
|
@@ -29,12 +29,8 @@ datadogSecretId: '{{values "datadogSecretId"}}'
|
|
|
29
29
|
{{end}}
|
|
30
30
|
|
|
31
31
|
openTelemetry:
|
|
32
|
-
|
|
33
|
-
{{
|
|
34
|
-
datadogEnvironmentName: production
|
|
35
|
-
{{else}}
|
|
36
|
-
datadogEnvironmentName: development
|
|
37
|
-
{{end}}
|
|
32
|
+
datadogEnvironmentName: '{{values "openTelemetry.datadogEnvironmentName"}}'
|
|
33
|
+
enabled: {{values "openTelemetry.enabled"}}
|
|
38
34
|
{{if .Values.pagerDutyEndpoint}}
|
|
39
35
|
pagerDutyEndpoint: '{{values "pagerDutyEndpoint"}}'
|
|
40
36
|
{{end}}
|
|
@@ -20,11 +20,9 @@ params:
|
|
|
20
20
|
description: <%- description %>
|
|
21
21
|
dev:
|
|
22
22
|
deploymentBucket: 'TODO: deployment-bucket-name'
|
|
23
|
-
isProduction: false
|
|
24
23
|
concurrency: 2
|
|
25
24
|
prod:
|
|
26
25
|
deploymentBucket: 'TODO: deployment-bucket-name'
|
|
27
|
-
isProduction: true
|
|
28
26
|
concurrency: 20
|
|
29
27
|
|
|
30
28
|
custom:
|
|
@@ -83,14 +81,10 @@ provider:
|
|
|
83
81
|
Resource: !Ref DestinationTopic
|
|
84
82
|
stackTags:
|
|
85
83
|
seek:env:label: ${env:ENVIRONMENT}
|
|
86
|
-
seek:env:prod: ${param:isProduction}
|
|
87
|
-
# seek:owner:cost-centre: 'TODO: https://rfc.skinfra.xyz/RFC019-AWS-Tagging-Standard.html#required-tags'
|
|
88
|
-
seek:owner:technical: '<%- teamName %>'
|
|
89
84
|
seek:source:sha: ${env:BUILDKITE_COMMIT, 'na'}
|
|
90
85
|
seek:source:url: 'https://github.com/SEEK-Jobs/<%- repoName %>'
|
|
91
86
|
seek:system:deployed-by: CFN
|
|
92
87
|
# seek:system:name: 'TODO: https://rfc.skinfra.xyz/RFC019-AWS-Tagging-Standard.html#required-tags'
|
|
93
|
-
# seek:system:org: 'TODO: https://rfc.skinfra.xyz/RFC019-AWS-Tagging-Standard.html#required-tags'
|
|
94
88
|
|
|
95
89
|
package:
|
|
96
90
|
patterns:
|