Skip to content

Commit d8b3493

Browse files
authored
Release/v12.139.0 (#781)
* update dd-trace to 5.105.0 (latest) * v12.139.0 * try to include a correct package.json * update snapshots
1 parent 739cb20 commit d8b3493

15 files changed

Lines changed: 1463 additions & 1328 deletions

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,22 @@ RUN yarn install
1414
RUN yarn build
1515
RUN cp -r dist /nodejs/node_modules/datadog-lambda-js
1616
RUN cp ./src/runtime/module_importer.js /nodejs/node_modules/datadog-lambda-js/runtime
17+
RUN node <<'EOF'
18+
const fs = require("fs");
19+
const { name, version } = require("./package.json");
20+
21+
const layerPackage = {
22+
name,
23+
version,
24+
main: "index.js",
25+
types: "index.d.ts",
26+
};
27+
28+
fs.writeFileSync(
29+
"/nodejs/node_modules/datadog-lambda-js/package.json",
30+
`${JSON.stringify(layerPackage, null, 2)}\n`,
31+
);
32+
EOF
1733

1834
RUN cp ./src/handler.mjs /nodejs/node_modules/datadog-lambda-js
1935
RUN rm -rf node_modules

0 commit comments

Comments
 (0)