Skip to content

Commit 484e92f

Browse files
committed
feat(v8): Add @sentry/aws-serverless package
1 parent dcb6c24 commit 484e92f

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

dev-packages/e2e-tests/test-applications/node-exports-test-app/scripts/consistentExports.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as SentryAstro from '@sentry/astro';
2+
import * as SentryAWS from '@sentry/aws-serverless';
23
import * as SentryBun from '@sentry/bun';
34
import * as SentryGoogleCloud from '@sentry/google-cloud';
45
import * as SentryNextJs from '@sentry/nextjs';

packages/aws-serverless/rollup.aws.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ export default [
2121
// it to be `index.js` in the build script, since it's standing in for the index file of the npm package.
2222
{ variants: ['.min.js'] },
2323
),
24+
25+
// This builds a wrapper file, which our lambda layer integration automatically sets up to run as soon as node
26+
// launches (via the `NODE_OPTIONS="-r @sentry/aws-serverless/dist/awslambda-auto"` variable). Note the inclusion in this
27+
// path of the legacy `dist` folder; for backwards compatibility, in the build script we'll copy the file there.
2428
makeBaseNPMConfig({
2529
entrypoints: ['src/awslambda-auto.ts'],
2630
packageSpecificConfig: {
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/** This file is used as the entrypoint for the lambda layer bundle, and is not included in the npm package. */
2+
3+
// https://medium.com/unsplash/named-namespace-imports-7345212bbffb
4+
import * as AWSLambda from './awslambda';
5+
export { AWSLambda };
6+
7+
export * from './awsservices';
8+
export * from '@sentry/node-experimental';

0 commit comments

Comments
 (0)