Skip to content

Commit 8efb9c4

Browse files
authored
Publishing.md - fix typos
1 parent 131acb4 commit 8efb9c4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pages/declaration files/Publishing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ If your package is written in TypeScript then the first approach is favored.
88
Use the `--declaration` flag to generate declaration files.
99
This way, your declarations and JavaScript always be in sync.
1010

11-
If your package is not written in TypeScript then the second is the prefered approch.
11+
If your package is not written in TypeScript then the second is the preferred approach.
1212

1313
# Including declarations in your npm package
1414

@@ -53,7 +53,7 @@ For example, imagine we authored a package that used Browserify and TypeScript.
5353

5454
Here, our package depends on the `browserify` and `typescript` packages.
5555
`browserify` does not bundle its declaration files with its npm packages, so we needed to depend on `@types/browserify` for its declarations.
56-
`typescript`, on the other hand, packages its declaration files, so there was no need for any additional dependencies
56+
`typescript`, on the other hand, packages its declaration files, so there was no need for any additional dependencies.
5757

5858
Our package exposes declarations from each of those, so any user of our `browserify-typescript-extension` package needs to have these dependencies as well.
5959
For that reason, we used `"dependencies"` and not `"devDependencies"`, because otherwise our consumers would have needed to manually install those packages.

0 commit comments

Comments
 (0)