skuba 12.1.0-auto-map-experimental-vm-modules-20250808074558 → 12.1.0-auto-map-experimental-vm-modules-20250809002953
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/test/index.js +2 -9
- package/lib/cli/test/index.js.map +2 -2
- package/package.json +3 -3
- package/template/greeter/package.json +1 -1
- package/template/lambda-sqs-worker-cdk/infra/__snapshots__/appStack.test.ts.snap +2 -2
- package/template/lambda-sqs-worker-cdk/infra/appStack.ts +1 -1
- package/template/lambda-sqs-worker-cdk/infra/config.ts +1 -1
- package/template/lambda-sqs-worker-cdk/package.json +1 -1
package/lib/cli/test/index.js
CHANGED
|
@@ -34,17 +34,10 @@ module.exports = __toCommonJS(test_exports);
|
|
|
34
34
|
var import_exec = require("../../utils/exec.js");
|
|
35
35
|
const test = async () => {
|
|
36
36
|
const argv = process.argv.slice(2);
|
|
37
|
-
const nodeOptions = process.env.NODE_OPTIONS
|
|
37
|
+
const nodeOptions = process.env.NODE_OPTIONS ?? "";
|
|
38
38
|
const execWithEnv = (0, import_exec.createExec)({
|
|
39
39
|
env: {
|
|
40
|
-
|
|
41
|
-
NODE_ENV: process.env.NODE_ENV ?? "test",
|
|
42
|
-
// ts-jest is logging a warning about `isolatedModules`.
|
|
43
|
-
// This is a workaround until we can remove the `isolatedModules` option.
|
|
44
|
-
// https://github.com/seek-oss/skuba/issues/1841
|
|
45
|
-
TS_JEST_LOG: process.env.TS_JEST_LOG ?? "stdout:error",
|
|
46
|
-
// Add experimental VM modules support if not already present
|
|
47
|
-
NODE_OPTIONS: !nodeOptions.includes("--experimental-vm-modules") ? `${nodeOptions} --experimental-vm-modules` : nodeOptions
|
|
40
|
+
NODE_OPTIONS: !nodeOptions.includes("--experimental-vm-modules") ? `${nodeOptions} --experimental-vm-modules --no-warnings=ExperimentalWarning` : nodeOptions
|
|
48
41
|
}
|
|
49
42
|
});
|
|
50
43
|
return execWithEnv(require.resolve("jest/bin/jest"), ...argv);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/cli/test/index.ts"],
|
|
4
|
-
"sourcesContent": ["import { createExec } from '../../utils/exec.js';\n\nexport const test = async () => {\n const argv = process.argv.slice(2);\n\n
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA2B;AAEpB,MAAM,OAAO,YAAY;AAC9B,QAAM,OAAO,QAAQ,KAAK,MAAM,CAAC;
|
|
4
|
+
"sourcesContent": ["import { createExec } from '../../utils/exec.js';\n\nexport const test = async () => {\n const argv = process.argv.slice(2);\n\n const nodeOptions = process.env.NODE_OPTIONS ?? '';\n\n const execWithEnv = createExec({\n env: {\n NODE_OPTIONS: !nodeOptions.includes('--experimental-vm-modules')\n ? `${nodeOptions} --experimental-vm-modules --no-warnings=ExperimentalWarning`\n : nodeOptions,\n },\n });\n\n // Run Jest in a child process with proper environment\n return execWithEnv(require.resolve('jest/bin/jest'), ...argv);\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA2B;AAEpB,MAAM,OAAO,YAAY;AAC9B,QAAM,OAAO,QAAQ,KAAK,MAAM,CAAC;AAEjC,QAAM,cAAc,QAAQ,IAAI,gBAAgB;AAEhD,QAAM,kBAAc,wBAAW;AAAA,IAC7B,KAAK;AAAA,MACH,cAAc,CAAC,YAAY,SAAS,2BAA2B,IAC3D,GAAG,WAAW,iEACd;AAAA,IACN;AAAA,EACF,CAAC;AAGD,SAAO,YAAY,gBAAgB,eAAe,GAAG,GAAG,IAAI;AAC9D;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skuba",
|
|
3
|
-
"version": "12.1.0-auto-map-experimental-vm-modules-
|
|
3
|
+
"version": "12.1.0-auto-map-experimental-vm-modules-20250809002953",
|
|
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",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"tsx": "^4.16.2",
|
|
98
98
|
"typescript": "~5.9.0",
|
|
99
99
|
"zod": "^4.0.0",
|
|
100
|
-
"eslint-config-skuba": "7.1.0-auto-map-experimental-vm-modules-
|
|
100
|
+
"eslint-config-skuba": "7.1.0-auto-map-experimental-vm-modules-20250809002953"
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|
|
103
103
|
"@changesets/cli": "2.29.5",
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"lint:packages": "pnpm --filter '!./template/**' lint",
|
|
163
163
|
"release": "pnpm --silent build && changeset publish",
|
|
164
164
|
"skuba": "pnpm --silent build && pnpm --silent skuba:exec",
|
|
165
|
-
"skuba:exec": "node
|
|
165
|
+
"skuba:exec": "node lib/skuba",
|
|
166
166
|
"stage": "changeset version && node ./.changeset/inject.js && pnpm format",
|
|
167
167
|
"test": "pnpm --silent skuba test --selectProjects unit",
|
|
168
168
|
"test:ci": "pnpm --silent skuba test --runInBand",
|
|
@@ -222,7 +222,7 @@ exports[`returns expected CloudFormation stack for dev 1`] = `
|
|
|
222
222
|
],
|
|
223
223
|
},
|
|
224
224
|
],
|
|
225
|
-
"ReservedConcurrentExecutions":
|
|
225
|
+
"ReservedConcurrentExecutions": 3,
|
|
226
226
|
"Role": {
|
|
227
227
|
"Fn::GetAtt": [
|
|
228
228
|
"workerServiceRole2130CC7F",
|
|
@@ -1104,7 +1104,7 @@ exports[`returns expected CloudFormation stack for prod 1`] = `
|
|
|
1104
1104
|
"ReportBatchItemFailures",
|
|
1105
1105
|
],
|
|
1106
1106
|
"ScalingConfig": {
|
|
1107
|
-
"MaximumConcurrency":
|
|
1107
|
+
"MaximumConcurrency": 19,
|
|
1108
1108
|
},
|
|
1109
1109
|
"Tags": [
|
|
1110
1110
|
{
|
|
@@ -142,7 +142,7 @@ export class AppStack extends Stack {
|
|
|
142
142
|
|
|
143
143
|
workerDeployment.alias.addEventSource(
|
|
144
144
|
new aws_lambda_event_sources.SqsEventSource(queue, {
|
|
145
|
-
maxConcurrency: config.workerLambda.reservedConcurrency,
|
|
145
|
+
maxConcurrency: config.workerLambda.reservedConcurrency - 1, // Ensure we have capacity reserved for our blue/green deployment
|
|
146
146
|
batchSize: config.workerLambda.batchSize,
|
|
147
147
|
reportBatchItemFailures: true,
|
|
148
148
|
}),
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"constructs": "^10.0.17",
|
|
38
38
|
"datadog-cdk-constructs-v2": "^2.0.0",
|
|
39
39
|
"pino-pretty": "^13.0.0",
|
|
40
|
-
"skuba": "12.1.0-auto-map-experimental-vm-modules-
|
|
40
|
+
"skuba": "12.1.0-auto-map-experimental-vm-modules-20250809002953"
|
|
41
41
|
},
|
|
42
42
|
"packageManager": "pnpm@10.14.0",
|
|
43
43
|
"engines": {
|