From 52d696cb96cf8c6edab218e074d6796c3e70e761 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Tue, 21 May 2024 15:17:11 +0900 Subject: [PATCH] docs: use .md extension in links --- docs/faq.md | 2 +- docs/index.md | 2 +- docs/node/cjs.md | 2 +- docs/node/esm.md | 2 +- docs/node/index.md | 2 +- docs/node/ts-import.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/faq.md b/docs/faq.md index 7e86743f3..74061c8fd 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -62,7 +62,7 @@ Here are some notable ones I've found via [GitHub Search](https://github.com/sea - **Watcher** - As a DX bonus, _tsx_ also comes with [Watch mode](/watch-mode) to help you iterate faster! + As a DX bonus, _tsx_ also comes with [Watch mode](/watch-mode.md) to help you iterate faster! For a detailed technical comparison, you can refer to this [exhaustive comparison](https://github.com/privatenumber/ts-runtime-comparison) between `tsx`, `ts-node`, and other runtimes. diff --git a/docs/index.md b/docs/index.md index e128270b0..4ab801622 100644 --- a/docs/index.md +++ b/docs/index.md @@ -45,7 +45,7 @@ tsx file.js - Iterate on your code faster and boost productivity! - As a DX bonus, _tsx_ comes with a [watcher](/watch-mode) to re-run your files whenever you save them. + As a DX bonus, _tsx_ comes with a [watcher](/watch-mode.md) to re-run your files whenever you save them. ## Limitations diff --git a/docs/node/cjs.md b/docs/node/cjs.md index f6eea34f2..c4398a12b 100644 --- a/docs/node/cjs.md +++ b/docs/node/cjs.md @@ -7,7 +7,7 @@ This section is only for adding tsx in CommonJS mode (doesn't affect `.mjs` or ` ::: warning Not for 3rd-party packages This enhances the entire runtime so it may not be suitable for loading TypeScript files from a 3rd-party package as it may lead to unexpected behavior in user code. -For importing TypeScript files in CommonJS mode without affecting the environment, see [`tsx.require()`](/node/tsx-require). +For importing TypeScript files in CommonJS mode without affecting the environment, see [`tsx.require()`](/node/tsx-require.md). ::: ## Command-line API diff --git a/docs/node/esm.md b/docs/node/esm.md index b7df389ce..9356797fc 100644 --- a/docs/node/esm.md +++ b/docs/node/esm.md @@ -7,7 +7,7 @@ This section is only for adding tsx in Module mode (doesn't affect `.cjs` or `.c ::: warning Not for 3rd-party packages This enhances the entire runtime so it may not be suitable for loading TypeScript files from a 3rd-party package as it may lead to unexpected behavior in user code. -For importing TypeScript files in Module mode without affecting the environment, see the _Scoped registration_ section below or [`tsImport()`](/node/ts-import). +For importing TypeScript files in Module mode without affecting the environment, see the _Scoped registration_ section below or [`tsImport()`](/node/ts-import.md). ::: ## Command-line API diff --git a/docs/node/index.md b/docs/node/index.md index 1fdcbf015..7a32492f4 100644 --- a/docs/node/index.md +++ b/docs/node/index.md @@ -9,7 +9,7 @@ The Node.js API is for advanced usage and should not be necessary for the majory The Node.js API allows you to enhance Node with _tsx_ without directly running `tsx`. This is useful for adding TypeScript support to binaries (e.g. `eslint`), or to your 3rd-party package without affecting the environment (e.g. loading config files), or simply using `node` directly to reduce overhead. -Note, when using the Node.js integrations, CLI features such as [_Watch mode_](/watch-mode) will not be available. +Note, when using the Node.js integrations, CLI features such as [_Watch mode_](/watch-mode.md) will not be available. ## Global enhancement diff --git a/docs/node/ts-import.md b/docs/node/ts-import.md index 1a4c680b3..eaa7f38ae 100644 --- a/docs/node/ts-import.md +++ b/docs/node/ts-import.md @@ -24,7 +24,7 @@ const loaded = await tsImport('./file.ts', import.meta.url) const loadedAgain = await tsImport('./file.ts', import.meta.url) ``` -If you'd like to leverage module caching, see the [ESM scoped registration](/node/esm#scoped-registration) section. +If you'd like to leverage module caching, see the [ESM scoped registration](/node/esm.md#scoped-registration) section. ## CommonJS usage