File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
dev-packages/e2e-tests/test-applications/node-exports-test-app/scripts Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
import * as SentryAstro from '@sentry/astro' ;
2
+ import * as SentryAWS from '@sentry/aws-serverless' ;
2
3
import * as SentryBun from '@sentry/bun' ;
3
4
import * as SentryGoogleCloud from '@sentry/google-cloud' ;
4
5
import * as SentryNextJs from '@sentry/nextjs' ;
Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ export default [
21
21
// it to be `index.js` in the build script, since it's standing in for the index file of the npm package.
22
22
{ variants : [ '.min.js' ] } ,
23
23
) ,
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.
24
28
makeBaseNPMConfig ( {
25
29
entrypoints : [ 'src/awslambda-auto.ts' ] ,
26
30
packageSpecificConfig : {
Original file line number Diff line number Diff line change
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' ;
You can’t perform that action at this time.
0 commit comments