()
| 1 | export function checkIfTypescriptSupported() { |
| 2 | if (!process.features.typescript) { |
| 3 | const error = new Error( |
| 4 | 'To load typescript files with env-cmd, you need to upgrade to node v23.6' + |
| 5 | ' or later. See https://nodejs.org/en/learn/typescript/run-natively', |
| 6 | ); |
| 7 | Object.assign(error, { code: 'ERR_UNKNOWN_FILE_EXTENSION' }); |
| 8 | throw error; |
| 9 | } |
| 10 | } |
no outgoing calls
no test coverage detected