skuba 14.0.0-replace-global-vars-20251117052457 → 14.0.0-replace-global-vars-20251121010036
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/lint/internalLints/upgrade/patches/12.5.0/addTypeModuleToPackageJson.d.ts +6 -0
- package/lib/cli/lint/internalLints/upgrade/patches/12.5.0/addTypeModuleToPackageJson.js +86 -0
- package/lib/cli/lint/internalLints/upgrade/patches/12.5.0/addTypeModuleToPackageJson.js.map +7 -0
- package/lib/cli/lint/internalLints/upgrade/patches/12.5.0/index.js +5 -0
- package/lib/cli/lint/internalLints/upgrade/patches/12.5.0/index.js.map +2 -2
- package/lib/cli/lint/internalLints/upgrade/patches/12.5.0/rewriteGlobalVars.d.ts +2 -0
- package/lib/cli/lint/internalLints/upgrade/patches/12.5.0/rewriteGlobalVars.js +7 -3
- package/lib/cli/lint/internalLints/upgrade/patches/12.5.0/rewriteGlobalVars.js.map +2 -2
- package/package.json +4 -4
- package/template/greeter/package.json +2 -2
- package/template/lambda-sqs-worker-cdk/infra/__snapshots__/appStack.test.ts.snap +0 -2
- package/template/lambda-sqs-worker-cdk/package.json +2 -2
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PatchFunction } from '../../index.js';
|
|
2
|
+
export declare const hasDirNameRegex: RegExp;
|
|
3
|
+
export declare const hasFileNameRegex: RegExp;
|
|
4
|
+
export declare const addTypeModule: (cwd: string, originalContent: string) => Promise<string>;
|
|
5
|
+
export declare const tryAddTypeModuleToPackageJson: PatchFunction;
|
|
6
|
+
export declare const addTypeModuleToPackageJson: PatchFunction;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { inspect } from "util";
|
|
2
|
+
import { glob } from "fast-glob";
|
|
3
|
+
import fs from "fs-extra";
|
|
4
|
+
import { readPackageUp } from "read-package-up";
|
|
5
|
+
import { log } from "../../../../../../utils/logging.js";
|
|
6
|
+
import { formatPackage } from "../../../../../configure/processing/package.js";
|
|
7
|
+
const hasDirNameRegex = /__dirname\b/;
|
|
8
|
+
const hasFileNameRegex = /__filename\b/;
|
|
9
|
+
const addTypeModule = async (cwd, originalContent) => {
|
|
10
|
+
const manifest = await readPackageUp({ cwd, normalize: false });
|
|
11
|
+
if (manifest === void 0) {
|
|
12
|
+
return originalContent;
|
|
13
|
+
}
|
|
14
|
+
if (manifest.packageJson.type !== "module") {
|
|
15
|
+
manifest.packageJson.type = "module";
|
|
16
|
+
return await formatPackage(manifest.packageJson);
|
|
17
|
+
}
|
|
18
|
+
return originalContent;
|
|
19
|
+
};
|
|
20
|
+
const fetchFiles = async (files) => Promise.all(
|
|
21
|
+
files.map(async (file) => {
|
|
22
|
+
const contents = await fs.promises.readFile(file, "utf8");
|
|
23
|
+
return {
|
|
24
|
+
file,
|
|
25
|
+
contents
|
|
26
|
+
};
|
|
27
|
+
})
|
|
28
|
+
);
|
|
29
|
+
const tryAddTypeModuleToPackageJson = async ({
|
|
30
|
+
mode
|
|
31
|
+
}) => {
|
|
32
|
+
const fileNames = await glob(["**/*package.json"]);
|
|
33
|
+
if (!fileNames.length) {
|
|
34
|
+
return {
|
|
35
|
+
result: "skip",
|
|
36
|
+
reason: "no package.json file found"
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
const packageJsonFiles = await fetchFiles(fileNames);
|
|
40
|
+
const filesWithTypeModuleAdded = await Promise.all(
|
|
41
|
+
packageJsonFiles.map(async ({ file, contents }) => ({
|
|
42
|
+
file,
|
|
43
|
+
before: contents,
|
|
44
|
+
after: await addTypeModule(file, contents)
|
|
45
|
+
}))
|
|
46
|
+
);
|
|
47
|
+
const hasChanges = filesWithTypeModuleAdded.some(
|
|
48
|
+
({ before, after }) => before !== after
|
|
49
|
+
);
|
|
50
|
+
if (!hasChanges) {
|
|
51
|
+
return {
|
|
52
|
+
result: "skip",
|
|
53
|
+
reason: "type module already present in package.json"
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
if (mode === "lint") {
|
|
57
|
+
return {
|
|
58
|
+
result: "apply"
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
await Promise.all(
|
|
62
|
+
filesWithTypeModuleAdded.map(async ({ file, before, after }) => {
|
|
63
|
+
if (before !== after) {
|
|
64
|
+
await fs.promises.writeFile(file, after);
|
|
65
|
+
}
|
|
66
|
+
})
|
|
67
|
+
);
|
|
68
|
+
return { result: "apply" };
|
|
69
|
+
};
|
|
70
|
+
const addTypeModuleToPackageJson = async (config) => {
|
|
71
|
+
try {
|
|
72
|
+
return await tryAddTypeModuleToPackageJson(config);
|
|
73
|
+
} catch (err) {
|
|
74
|
+
log.warn("Failed to add module type to package.json");
|
|
75
|
+
log.subtle(inspect(err));
|
|
76
|
+
return { result: "skip", reason: "due to an error" };
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
export {
|
|
80
|
+
addTypeModule,
|
|
81
|
+
addTypeModuleToPackageJson,
|
|
82
|
+
hasDirNameRegex,
|
|
83
|
+
hasFileNameRegex,
|
|
84
|
+
tryAddTypeModuleToPackageJson
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=addTypeModuleToPackageJson.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../../src/cli/lint/internalLints/upgrade/patches/12.5.0/addTypeModuleToPackageJson.ts"],
|
|
4
|
+
"sourcesContent": ["import { inspect } from 'util';\n\nimport { glob } from 'fast-glob';\nimport fs from 'fs-extra';\nimport { readPackageUp } from 'read-package-up';\n\nimport { log } from '../../../../../../utils/logging.js';\nimport { formatPackage } from '../../../../../configure/processing/package.js';\nimport type { PatchFunction, PatchReturnType } from '../../index.js';\n\nexport const hasDirNameRegex = /__dirname\\b/;\nexport const hasFileNameRegex = /__filename\\b/;\n\nexport const addTypeModule = async (cwd: string, originalContent: string) => {\n const manifest = await readPackageUp({ cwd, normalize: false });\n\n if (manifest === undefined) {\n return originalContent;\n }\n\n if (manifest.packageJson.type !== 'module') {\n manifest.packageJson.type = 'module';\n return await formatPackage(manifest.packageJson);\n }\n\n return originalContent;\n};\n\nconst fetchFiles = async (files: string[]) =>\n Promise.all(\n files.map(async (file) => {\n const contents = await fs.promises.readFile(file, 'utf8');\n\n return {\n file,\n contents,\n };\n }),\n );\n\nexport const tryAddTypeModuleToPackageJson: PatchFunction = async ({\n mode,\n}): Promise<PatchReturnType> => {\n const fileNames = await glob(['**/*package.json']);\n\n if (!fileNames.length) {\n return {\n result: 'skip',\n reason: 'no package.json file found',\n };\n }\n\n const packageJsonFiles = await fetchFiles(fileNames);\n\n const filesWithTypeModuleAdded = await Promise.all(\n packageJsonFiles.map(async ({ file, contents }) => ({\n file,\n before: contents,\n after: await addTypeModule(file, contents),\n })),\n );\n\n const hasChanges = filesWithTypeModuleAdded.some(\n ({ before, after }) => before !== after,\n );\n\n if (!hasChanges) {\n return {\n result: 'skip',\n reason: 'type module already present in package.json',\n };\n }\n\n if (mode === 'lint') {\n return {\n result: 'apply',\n };\n }\n\n await Promise.all(\n filesWithTypeModuleAdded.map(async ({ file, before, after }) => {\n if (before !== after) {\n await fs.promises.writeFile(file, after);\n }\n }),\n );\n\n return { result: 'apply' };\n};\n\nexport const addTypeModuleToPackageJson: PatchFunction = async (config) => {\n try {\n return await tryAddTypeModuleToPackageJson(config);\n } catch (err) {\n log.warn('Failed to add module type to package.json');\n log.subtle(inspect(err));\n return { result: 'skip', reason: 'due to an error' };\n }\n};\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,eAAe;AAExB,SAAS,YAAY;AACrB,OAAO,QAAQ;AACf,SAAS,qBAAqB;AAE9B,SAAS,WAAW;AACpB,SAAS,qBAAqB;AAGvB,MAAM,kBAAkB;AACxB,MAAM,mBAAmB;AAEzB,MAAM,gBAAgB,OAAO,KAAa,oBAA4B;AAC3E,QAAM,WAAW,MAAM,cAAc,EAAE,KAAK,WAAW,MAAM,CAAC;AAE9D,MAAI,aAAa,QAAW;A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AEA,SAAO,EAAE,QAAQ,QAAQ;AAC3B;AAEO,MAAM,6BAA4C,OAAO,WAAW;AACzE,MAAI;AACF,WAAO,MAAM,8BAA8B,MAAM;AAAA,EACnD,SAAS,KAAK;AACZ,QAAI,KAAK,2CAA2C;AACpD,QAAI,OAAO,QAAQ,GAAG,CAAC;AACvB,WAAO,EAAE,QAAQ,QAAQ,QAAQ,kBAAkB;AAAA,EACrD;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import { addTypeModuleToPackageJson } from "./addTypeModuleToPackageJson.js";
|
|
1
2
|
import { rewriteGlobalVars } from "./rewriteGlobalVars.js";
|
|
2
3
|
const patches = [
|
|
4
|
+
{
|
|
5
|
+
apply: addTypeModuleToPackageJson,
|
|
6
|
+
description: "Add module type to package.json to support ESM"
|
|
7
|
+
},
|
|
3
8
|
{
|
|
4
9
|
apply: rewriteGlobalVars,
|
|
5
10
|
description: "Replace __dirname and __filename with import.meta equivalents"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../src/cli/lint/internalLints/upgrade/patches/12.5.0/index.ts"],
|
|
4
|
-
"sourcesContent": ["import type { Patches } from '../../index.js';\n\nimport { rewriteGlobalVars } from './rewriteGlobalVars.js';\n\nexport const patches: Patches = [\n {\n apply: rewriteGlobalVars,\n description:\n 'Replace __dirname and __filename with import.meta equivalents',\n },\n];\n"],
|
|
5
|
-
"mappings": "AAEA,SAAS,yBAAyB;AAE3B,MAAM,UAAmB;AAAA,EAC9B;AAAA,IACE,OAAO;AAAA,IACP,aACE;AAAA,EACJ;AACF;",
|
|
4
|
+
"sourcesContent": ["import type { Patches } from '../../index.js';\n\nimport { addTypeModuleToPackageJson } from './addTypeModuleToPackageJson.js';\nimport { rewriteGlobalVars } from './rewriteGlobalVars.js';\n\nexport const patches: Patches = [\n {\n apply: addTypeModuleToPackageJson,\n description: 'Add module type to package.json to support ESM',\n },\n {\n apply: rewriteGlobalVars,\n description:\n 'Replace __dirname and __filename with import.meta equivalents',\n },\n];\n"],
|
|
5
|
+
"mappings": "AAEA,SAAS,kCAAkC;AAC3C,SAAS,yBAAyB;AAE3B,MAAM,UAAmB;AAAA,EAC9B;AAAA,IACE,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,aACE;AAAA,EACJ;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { PatchFunction } from '../../index.js';
|
|
2
2
|
export declare const hasDirNameRegex: RegExp;
|
|
3
|
+
export declare const hasDirNameVariableRegex: RegExp;
|
|
3
4
|
export declare const hasFileNameRegex: RegExp;
|
|
5
|
+
export declare const hasFileNameVariableRegex: RegExp;
|
|
4
6
|
export declare const tryRewriteGlobalVars: PatchFunction;
|
|
5
7
|
export declare const rewriteGlobalVars: PatchFunction;
|
|
@@ -4,8 +4,10 @@ import { fs } from "memfs";
|
|
|
4
4
|
import { log } from "../../../../../../utils/logging.js";
|
|
5
5
|
import { fetchFiles } from "../12.4.1/rewriteSrcImports.js";
|
|
6
6
|
const hasDirNameRegex = /__dirname\b/;
|
|
7
|
+
const hasDirNameVariableRegex = /const __dirname =/g;
|
|
7
8
|
const hasFileNameRegex = /__filename\b/;
|
|
8
|
-
const
|
|
9
|
+
const hasFileNameVariableRegex = /const __filename =/g;
|
|
10
|
+
const removeGlobalVars = (contents) => contents.replace(hasDirNameRegex, "import.meta.dirname").replace(hasFileNameRegex, "import.meta.filename").replace(hasDirNameVariableRegex, "").replace(hasFileNameVariableRegex, "");
|
|
9
11
|
const tryRewriteGlobalVars = async ({
|
|
10
12
|
mode
|
|
11
13
|
}) => {
|
|
@@ -25,8 +27,8 @@ const tryRewriteGlobalVars = async ({
|
|
|
25
27
|
reason: "no .ts or test.ts files found"
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
|
-
const
|
|
29
|
-
const filesWithGlobalVarsRemoved =
|
|
30
|
+
const files = await fetchFiles(fileNames);
|
|
31
|
+
const filesWithGlobalVarsRemoved = files.map(({ file, contents }) => ({
|
|
30
32
|
file,
|
|
31
33
|
before: contents,
|
|
32
34
|
after: removeGlobalVars(contents)
|
|
@@ -65,7 +67,9 @@ const rewriteGlobalVars = async (config) => {
|
|
|
65
67
|
};
|
|
66
68
|
export {
|
|
67
69
|
hasDirNameRegex,
|
|
70
|
+
hasDirNameVariableRegex,
|
|
68
71
|
hasFileNameRegex,
|
|
72
|
+
hasFileNameVariableRegex,
|
|
69
73
|
rewriteGlobalVars,
|
|
70
74
|
tryRewriteGlobalVars
|
|
71
75
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../../src/cli/lint/internalLints/upgrade/patches/12.5.0/rewriteGlobalVars.ts"],
|
|
4
|
-
"sourcesContent": ["import { inspect } from 'util';\n\nimport { glob } from 'fast-glob';\nimport { fs } from 'memfs';\n\nimport { log } from '../../../../../../utils/logging.js';\nimport type { PatchFunction, PatchReturnType } from '../../index.js';\nimport { fetchFiles } from '../12.4.1/rewriteSrcImports.js';\n\nexport const hasDirNameRegex = /__dirname\\b/;\nexport const
|
|
5
|
-
"mappings": "AAAA,SAAS,eAAe;AAExB,SAAS,YAAY;AACrB,SAAS,UAAU;AAEnB,SAAS,WAAW;AAEpB,SAAS,kBAAkB;AAEpB,MAAM,kBAAkB;AACxB,MAAM,mBAAmB;
|
|
4
|
+
"sourcesContent": ["import { inspect } from 'util';\n\nimport { glob } from 'fast-glob';\nimport { fs } from 'memfs';\n\nimport { log } from '../../../../../../utils/logging.js';\nimport type { PatchFunction, PatchReturnType } from '../../index.js';\nimport { fetchFiles } from '../12.4.1/rewriteSrcImports.js';\n\nexport const hasDirNameRegex = /__dirname\\b/;\nexport const hasDirNameVariableRegex = /const __dirname =/g;\nexport const hasFileNameRegex = /__filename\\b/;\nexport const hasFileNameVariableRegex = /const __filename =/g;\n\nconst removeGlobalVars = (contents: string) =>\n contents\n .replace(hasDirNameRegex, 'import.meta.dirname')\n .replace(hasFileNameRegex, 'import.meta.filename')\n .replace(hasDirNameVariableRegex, '')\n .replace(hasFileNameVariableRegex, '');\n\nexport const tryRewriteGlobalVars: PatchFunction = async ({\n mode,\n}): Promise<PatchReturnType> => {\n const fileNames = await glob(\n ['**/*.ts', '**/*.test.ts', '**/*.js', '**/*.test.js'],\n {\n ignore: [\n '**/.git',\n '**/node_modules',\n 'src/cli/lint/internalLints/upgrade/patches/**/*',\n ],\n },\n );\n\n if (!fileNames.length) {\n return {\n result: 'skip',\n reason: 'no .ts or test.ts files found',\n };\n }\n\n const files = await fetchFiles(fileNames);\n\n const filesWithGlobalVarsRemoved = files.map(({ file, contents }) => ({\n file,\n before: contents,\n after: removeGlobalVars(contents),\n }));\n\n const hasChanges = filesWithGlobalVarsRemoved.some(\n ({ before, after }) => before !== after,\n );\n\n if (!hasChanges) {\n return {\n result: 'skip',\n reason: 'no global variables found to replace',\n };\n }\n\n if (mode === 'lint') {\n return {\n result: 'apply',\n };\n }\n\n await Promise.all(\n filesWithGlobalVarsRemoved.map(async ({ file, before, after }) => {\n if (before !== after) {\n await fs.promises.writeFile(file, after);\n }\n }),\n );\n\n return { result: 'apply' };\n};\n\nexport const rewriteGlobalVars: PatchFunction = async (config) => {\n try {\n return await tryRewriteGlobalVars(config);\n } catch (err) {\n log.warn('Failed to replace global variables with import.meta equivalents');\n log.subtle(inspect(err));\n return { result: 'skip', reason: 'due to an error' };\n }\n};\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,eAAe;AAExB,SAAS,YAAY;AACrB,SAAS,UAAU;AAEnB,SAAS,WAAW;AAEpB,SAAS,kBAAkB;AAEpB,MAAM,kBAAkB;AACxB,MAAM,0BAA0B;AAChC,MAAM,mBAAmB;AACzB,MAAM,2BAA2B;AAExC,MAAM,mBAAmB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iEAAiE;AAC1E,QAAI,OAAO,QAAQ,GAAG,CAAC;AACvB,WAAO,EAAE,QAAQ,QAAQ,QAAQ,kBAAkB;AAAA,EACrD;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skuba",
|
|
3
|
-
"version": "14.0.0-replace-global-vars-
|
|
3
|
+
"version": "14.0.0-replace-global-vars-20251121010036",
|
|
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,8 +97,8 @@
|
|
|
97
97
|
"typescript": "~5.9.0",
|
|
98
98
|
"vitest": "^4.0.5",
|
|
99
99
|
"zod": "^4.0.0",
|
|
100
|
-
"@skuba-lib/api": "^1.1.0-replace-global-vars-
|
|
101
|
-
"eslint-config-skuba": "7.3.0-replace-global-vars-
|
|
100
|
+
"@skuba-lib/api": "^1.1.0-replace-global-vars-20251121010036",
|
|
101
|
+
"eslint-config-skuba": "7.3.0-replace-global-vars-20251121010036"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@changesets/cli": "2.29.7",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"type-fest": "2.19.0"
|
|
130
130
|
},
|
|
131
131
|
"peerDependencies": {
|
|
132
|
-
"skuba-dive": "3.0.0-replace-global-vars-
|
|
132
|
+
"skuba-dive": "3.0.0-replace-global-vars-20251121010036"
|
|
133
133
|
},
|
|
134
134
|
"peerDependenciesMeta": {
|
|
135
135
|
"skuba-dive": {
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"test:watch": "skuba test --watch"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"skuba-dive": "3.0.0-replace-global-vars-
|
|
23
|
+
"skuba-dive": "3.0.0-replace-global-vars-20251121010036"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^22.13.10",
|
|
27
|
-
"skuba": "14.0.0-replace-global-vars-
|
|
27
|
+
"skuba": "14.0.0-replace-global-vars-20251121010036"
|
|
28
28
|
},
|
|
29
29
|
"packageManager": "pnpm@10.20.0",
|
|
30
30
|
"engines": {
|
|
@@ -184,7 +184,6 @@ exports[`returns expected CloudFormation stack for dev 1`] = `
|
|
|
184
184
|
"DD_LAMBDA_HANDLER": "index.handler",
|
|
185
185
|
"DD_LOGS_INJECTION": "false",
|
|
186
186
|
"DD_MERGE_XRAY_TRACES": "false",
|
|
187
|
-
"DD_SERVERLESS_APPSEC_ENABLED": "false",
|
|
188
187
|
"DD_SERVERLESS_LOGS_ENABLED": "false",
|
|
189
188
|
"DD_SERVICE": "serviceName",
|
|
190
189
|
"DD_SITE": "datadoghq.com",
|
|
@@ -937,7 +936,6 @@ exports[`returns expected CloudFormation stack for prod 1`] = `
|
|
|
937
936
|
"DD_LAMBDA_HANDLER": "index.handler",
|
|
938
937
|
"DD_LOGS_INJECTION": "false",
|
|
939
938
|
"DD_MERGE_XRAY_TRACES": "false",
|
|
940
|
-
"DD_SERVERLESS_APPSEC_ENABLED": "false",
|
|
941
939
|
"DD_SERVERLESS_LOGS_ENABLED": "false",
|
|
942
940
|
"DD_SERVICE": "serviceName",
|
|
943
941
|
"DD_SITE": "datadoghq.com",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@aws-sdk/client-sns": "^3.363.0",
|
|
25
25
|
"@seek/aws-codedeploy-hooks": "^2.0.0",
|
|
26
26
|
"@seek/logger": "^11.1.0",
|
|
27
|
-
"skuba-dive": "3.0.0-replace-global-vars-
|
|
27
|
+
"skuba-dive": "3.0.0-replace-global-vars-20251121010036",
|
|
28
28
|
"zod": "^4.0.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"datadog-lambda-js": "^12.0.0",
|
|
43
43
|
"dd-trace": "^5.0.0",
|
|
44
44
|
"pino-pretty": "^13.0.0",
|
|
45
|
-
"skuba": "14.0.0-replace-global-vars-
|
|
45
|
+
"skuba": "14.0.0-replace-global-vars-20251121010036"
|
|
46
46
|
},
|
|
47
47
|
"packageManager": "pnpm@10.20.0",
|
|
48
48
|
"engines": {
|