File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ All notable changes to this project will be documented in this file.
5
5
6
6
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) .
7
7
8
- ## [ 0.2.13 ] 2023-09-04
8
+ ## [ 0.2.14 ] 2023-09-04
9
9
10
10
- add cjs to extension for otel extension so it loads in all node environments
11
- -
11
+ - add esm build for wrapper
12
12
## [ 0.2.10] 2023-09-03
13
13
14
14
- fix manual setup build
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @baselime/lambda-node-opentelemetry" ,
3
- "version" : " 0.2.13 " ,
3
+ "version" : " 0.2.14 " ,
4
4
"description" : " OpenTelemetry auto tracer for Node.JS based AWS Lambda functions" ,
5
5
"types" : " index.d.ts" ,
6
6
"main" : " index.js" ,
7
+ "module" : " index.mjs" ,
7
8
"keywords" : [
8
9
" nodejs" ,
9
10
" aws-lambda" ,
12
13
],
13
14
"files" : [
14
15
" lambda-wrapper.cjs" ,
15
- " index.js" ,
16
+ " index.mjs" ,
17
+ " index.cjs" ,
16
18
" index.d.ts"
17
19
],
18
20
"type" : " module" ,
23
25
"build:cjs" : " esbuild src/handler.cjs --bundle --minify --platform=node --target=node18 --outfile=dist/handler.cjs --metafile=meta.json --format=cjs" ,
24
26
"distribute" : " mkdir -p layer-dir/nodejs/node_modules/@baselime/lambda-node-opentelemetry && cp -r dist/* layer-dir/nodejs/node_modules/@baselime/lambda-node-opentelemetry && cp -r dist/* ." ,
25
27
"build:tracer" : " esbuild src/lambda-wrapper.ts --bundle --minify --platform=node --target=node18 --format=cjs --outfile=dist/lambda-wrapper.cjs --metafile=meta.json" ,
26
- "build:wrapper" : " esbuild src/index.ts --bundle --minify --platform=node --target=node18 --format=cjs --outfile=dist/index.js --metafile=meta.json" ,
27
- "build" : " npm run build:handler && npm run build:tracer && npm run build:wrapper && npm run tsc && npm run distribute" ,
28
+ "build:wrappercjs" : " esbuild src/index.ts --bundle --minify --platform=node --target=node18 --format=cjs --outfile=dist/index.cjs --metafile=meta.json" ,
29
+ "build:wrapperesm" : " esbuild src/index.ts --bundle --minify --platform=node --target=node18 --format=esm --outfile=dist/index.mjs --metafile=meta.json" ,
30
+ "build" : " npm run build:handler && npm run build:tracer && npm run build:wrappercjs && npm run build:wrapperesm && npm run tsc && npm run distribute" ,
28
31
"deploy" : " sst deploy" ,
29
32
"deploy:uat" : " npm run build && npx tsx multi-region-deploy.ts uat" ,
30
33
"deploy:prod" : " npm run build && npx tsx multi-region-deploy.ts prod" ,
You can’t perform that action at this time.
0 commit comments