diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-03-09 03:10:14 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-08 13:10:14 -0500 |
commit | aed3e590ba31039eede60e7023b6097df944c46f (patch) | |
tree | 94d08d924f89a9997bf7f61ad72d347fbec15415 | |
parent | 24d6bf6aeb2b9ac929808e2b8ae4cd5e844a9f8b (diff) |
docs: package.ts -> deps.ts (#1903)
-rw-r--r-- | website/manual.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/website/manual.md b/website/manual.md index 9d19a15e0..e3f5fe6a7 100644 --- a/website/manual.md +++ b/website/manual.md @@ -490,21 +490,21 @@ network access. **It seems unwieldy to import URLs everywhere. What if one of the URLs links to a subtly different version of a library? Isn't it error prone to maintain URLs everywhere in a large project?** The solution is to import and re-export your -external libraries in a central `package.ts` file (which serves the same purpose -as Node's `package.json` file). For example, let's say you were using the above +external libraries in a central `deps.ts` file (which serves the same purpose as +Node's `package.json` file). For example, let's say you were using the above testing library across a large project. Rather than importing `"https://deno.land/std/testing/mod.ts"` everywhere, you could create a -`package.ts` file the exports the third-party code: +`deps.ts` file the exports the third-party code: ```ts export { test, assertEquals } from "https://deno.land/std/testing/mod.ts"; ``` -And throughout project one can import from the `package.ts` and avoid having -many references to the same URL: +And throughout project one can import from the `deps.ts` and avoid having many +references to the same URL: ```ts -import { test, assertEquals } from "./package.ts"; +import { test, assertEquals } from "./deps.ts"; ``` This design circumvents a plethora of complexity spawned by package management |