Skip to content

Commit 693da2b

Browse files
committed
doc: add npm and typescript to installation snippet
Fixes #151.
1 parent 4201aaa commit 693da2b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ Serverless plugin for zero-config Typescript support
1414
## Install
1515

1616
```sh
17-
yarn add --dev serverless-plugin-typescript
17+
yarn add --dev serverless-plugin-typescript typescript
18+
# or
19+
npm install -D serverless-plugin-typescript typescript
1820
```
1921

2022
Add the following plugin to your `serverless.yml`:
@@ -38,6 +40,7 @@ The default `tsconfig.json` file used by the plugin looks like this:
3840
"preserveConstEnums": true,
3941
"strictNullChecks": true,
4042
"sourceMap": true,
43+
"allowJs": true,
4144
"target": "es5",
4245
"outDir": ".build",
4346
"moduleResolution": "node",

0 commit comments

Comments
 (0)