A TypeScript bin target can currently be direct-linked when it has a shebang, even if that shebang is node.
This leads to runtime failures like:
ERR_UNKNOWN_FILE_EXTENSION: Unknown file extension ".ts"
for targets such as src/bin/zestman.ts.
| { | |
| "compilerOptions": { | |
| "target": "ES2020", | |
| "useDefineForClassFields": true, | |
| "lib": ["ES2020", "DOM", "DOM.Iterable"], | |
| "module": "ESNext", | |
| "skipLibCheck": true, | |
| /* Bundler mode */ | |
| "moduleResolution": "bundler", |
| import { Dispatch, SetStateAction, useEffect, useRef, useState } from 'react'; | |
| function useStoreState<T>( | |
| _key: string, | |
| _initialValue: T | (() => T) | |
| ): [T, Dispatch<SetStateAction<T>>]; | |
| function useStoreState<T = undefined>( | |
| _key: string | |
| ): [T | undefined, Dispatch<SetStateAction<T | undefined>>]; |
A TypeScript bin target can currently be direct-linked when it has a shebang, even if that shebang is node.
This leads to runtime failures like:
ERR_UNKNOWN_FILE_EXTENSION: Unknown file extension ".ts"for targets such as src/bin/zestman.ts.