From d9174bec1758e5d7c90345f2935b288f1002becb Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Sun, 7 Feb 2021 22:42:24 -0600 Subject: [PATCH] docs ~ fix TS example to work with fully-specified imports and `ts-node` # Discussion `ts-node`, for 'reasons', doesn't currently support the TypeScripts import "magic" extension search logic. Discussion and experimentation is on-going and may be added in the future.[^1] For now, as a working replacement, reference the CJS compiled/distributed code directly instead of the TypeScript source code in the TS example. # refs [1]: https://github.com/TypeStrong/ts-node/issues/783 --- eg/show-paths.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eg/show-paths.ts b/eg/show-paths.ts index 6077736..098e301 100644 --- a/eg/show-paths.ts +++ b/eg/show-paths.ts @@ -1,4 +1,4 @@ -import osPaths from '../src'; +import osPaths from '../dist/cjs/index.js'; // ## maint: [2021-02-07; rivy] await resolution of to return to direct TS import /* eslint-disable no-console , functional/immutable-data , security/detect-object-injection, security-node/detect-crlf , @typescript-eslint/no-explicit-any */