You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE/maintenance.yml
+1-1
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ body:
53
53
options:
54
54
- label: This request meets [Lambda Powertools Tenets](https://awslabs.github.io/aws-lambda-powertools-typescript/latest/#tenets)
55
55
required: true
56
-
- label: Should this be considered in other Lambda Powertools languages? i.e. [TypeScript](https://github.com/awslabs/aws-lambda-powertools-typescript/), [Java](https://github.com/awslabs/aws-lambda-powertools-java/)
56
+
- label: Should this be considered in other Lambda Powertools languages? i.e. [Python](https://github.com/awslabs/aws-lambda-powertools-python/), [Java](https://github.com/awslabs/aws-lambda-powertools-java/)
***metrics:** store service name in defaultDimensions to avoid clearing it ([#1146](https://github.com/awslabs/aws-lambda-powertools-typescript/issues/1146)) ([a979202](https://github.com/awslabs/aws-lambda-powertools-typescript/commit/a979202ae0563f8ce00dee98bbf15d0bcfcfd3cc))
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+6-8
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ the [eslint extension](https://marketplace.visualstudio.com/items?itemName=dbaeu
88
88
### Repo Layout
89
89
90
90
The AWS Lambda Powertools is a npm project written in [TypeScript](https://www.typescriptlang.org/).
91
-
More specifically, it is a [monorepo managed using lerna](https://github.com/lerna/lerna#about).
91
+
More specifically, it is a [monorepo managed using npm workspaces](https://docs.npmjs.com/cli/v8/using-npm/workspaces).
92
92
If you're unfamiliar with any of these technologies, it is useful to learn about them and will make understanding the codebase easier but strictly not necessary for simple contributions.
93
93
94
94
The repo contains `packages/` directory that contains the Powertools utilities modules. For instance, the source code for the Logger utility can be found at the location `packages/logger` and so on.
@@ -126,9 +126,8 @@ As mentioned before, tests are split into groups thanks to [jest-runner-groups](
126
126
127
127
To run unit tests, you can either use:
128
128
129
-
* npm task `lerna-test:unit` (`npm run lerna-test:unit`) in root folder to run them all
130
-
* npm task `test:unit` (`npm run test:unit`) in module folder (for example: `packages/metrics`) to run the module specific ones
131
-
* jest directly `npx jest --group=unit` in module folder to run the module specific ones (You can run selective tests by restricting the group to the one you want. For instance `npx jest --group=unit/metrics/class`)
129
+
*`npm test -ws` while in the root folder to run them all
130
+
*`npm test -w packages/metrics` while in the root folder to run the module specific ones
132
131
133
132
#### e2e tests
134
133
@@ -156,9 +155,8 @@ See `metrics/tests/e2e/basicFeatures.decorator.test.ts` as an example.
156
155
157
156
To run e2e tests, you can either use:
158
157
159
-
* npm task `lerna-test:e2e` (`npm run lerna-test:e2e`) in root folder
160
-
* npm task `test:e2e` (`npm run test:e2e`) in module folder (for example: `packages/metrics`) to run the module specific ones
161
-
* jest directly `npx jest --group=e2e` in module folder. (You can run selective tests by restricting the group to the one you want. For instance `npx jest --group=e2e/metrics/decorator`)
158
+
*`npm test:e2e -ws` while in the root folder to run them all
159
+
*`npm test:e2e -w packages/metrics` while in the root folder to run the module specific ones
162
160
163
161
Three important environment variables can be used:
164
162
@@ -200,7 +198,7 @@ As part of the repo you will find an examples folder at the root. This folder co
200
198
201
199
To test your updates with these examples, you just have to:
202
200
203
-
1. Build your local version of *aws-lambda-powertools-typescript* npm packages with `npm run lerna-package` while in the root folder
201
+
1. Build your local version of *aws-lambda-powertools-typescript* npm packages with `npm run package -ws` while in the root folder
If you use `esbuild` to bundle your code, make sure to exclude `@aws-lambda-powertools` from being bundled since the packages will be already present the Layer:
@@ -97,7 +97,7 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
If you use `esbuild` to bundle your code, make sure to exclude `@aws-lambda-powertools` from being bundled since the packages will be already present the Layer:
@@ -129,7 +129,7 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
0 commit comments