From 632847d34d0924d34f3e22f1201f1d1a7fdae334 Mon Sep 17 00:00:00 2001 From: Andrew Seguin Date: Fri, 5 Apr 2019 16:23:03 -0700 Subject: [PATCH] docs: typo fix, change "insure" to "ensure" (#29737) PR Close #29737 --- aio/content/guide/creating-libraries.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/guide/creating-libraries.md b/aio/content/guide/creating-libraries.md index f0e6ead669..76be9a9ffc 100644 --- a/aio/content/guide/creating-libraries.md +++ b/aio/content/guide/creating-libraries.md @@ -123,7 +123,7 @@ For example, `main` should point at a JavaScript file, not a TypeScript file. ## Use TypeScript path mapping for peer dependencies Angular libraries should list all `@angular/*` dependencies as peer dependencies. -This insures that when modules ask for Angular, they all get the exact same module. +This ensures that when modules ask for Angular, they all get the exact same module. If a library lists `@angular/core` in `dependencies` instead of `peerDependencies`, it might get a different Angular module instead, which would cause your application to break. While developing a library, you must install all peer dependencies through `devDependencies` to ensure that the library compiles properly.