MCPcopy
hub / github.com/toddbluhm/env-cmd / checkIfTypescriptSupported

Function checkIfTypescriptSupported

src/loaders/typescript.ts:1–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1export 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}

Callers 2

getRCFileVarsFunction · 0.85
getEnvFileVarsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected