Skip to content

Commit 0cbc7d6

Browse files
committed
fix(docs): Fixes import example in README file
The import in the README file was a local import. This has been changed to be the 'real' npm import.
1 parent 9bdd2b1 commit 0cbc7d6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The construct aims to be a drop-in replacement to the `NodejsFunction`. The only
88
the function calls to the `NodejsFunction` has to be on the property `fn` from the `NodejsWithPowertoolsFunction`.
99

1010
```typescript
11-
import { NodejsWithPowertoolsFunction } from './nodejs-with-powertools-function';
11+
import { NodejsWithPowertoolsFunction } from 'nodejs-with-powertools-function';
1212

1313
class MyStack extends Stack {
1414
constructor(scope: Construct, id: string) {

test/__snapshots__/nodejs-with-powertools-function.test.ts.snap

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)