Skip to content

Commit 9d69099

Browse files
committed
add type declarations
1 parent fc86b33 commit 9d69099

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55

66
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
77

8-
## [0.2.9] 2023-09-03
8+
## [0.2.10] 2023-09-03
99

1010
- fix manual setup build
1111
## [0.2.8] 2023-09-03

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"name": "@baselime/lambda-node-opentelemetry",
3-
"version": "0.2.9",
3+
"version": "0.2.10",
44
"description": "OpenTelemetry auto tracer for Node.JS based AWS Lambda functions",
5+
"types": "index.d.ts",
6+
"main": "index.js",
57
"keywords": [
68
"nodejs",
79
"aws-lambda",
@@ -10,17 +12,18 @@
1012
],
1113
"files": [
1214
"lambda-wrapper.js",
13-
"index.js"
15+
"index.js",
16+
"index.d.ts"
1417
],
1518
"type": "module",
1619
"scripts": {
17-
"tsc": "tsc --p ./tsconfig.json",
20+
"tsc": "tsc --declaration --emitDeclarationOnly --p ./tsconfig.json",
1821
"build:handler": "npm run build:esm && npm run build:cjs",
1922
"build:esm": "esbuild src/handler.mjs --bundle --minify --platform=node --target=node18 --outfile=dist/handler.mjs --metafile=meta.json --format=esm",
2023
"build:cjs": "esbuild src/handler.cjs --bundle --minify --platform=node --target=node18 --outfile=dist/handler.cjs --metafile=meta.json --format=cjs",
2124
"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/* .",
2225
"build:tracer": "esbuild src/lambda-wrapper.ts src/index.ts --bundle --minify --platform=node --target=node18 --format=cjs --outdir=dist --metafile=meta.json",
23-
"build": "npm run build:handler && npm run build:tracer && npm run distribute",
26+
"build": "npm run build:handler && npm run build:tracer && npm run tsc && npm run distribute",
2427
"deploy": "sst deploy",
2528
"deploy:uat": "npm run build && npx tsx multi-region-deploy.ts uat",
2629
"deploy:prod": "npm run build && npx tsx multi-region-deploy.ts prod",

0 commit comments

Comments
 (0)