UNPKG

env-cmd

Version:

Executes a command using the environment variables in an env file

9 lines (8 loc) 378 B
export function checkIfTypescriptSupported() { if (!process.features.typescript) { const error = new Error('To load typescript files with env-cmd, you need to upgrade to node v23.6' + ' or later. See https://nodejs.org/en/learn/typescript/run-natively'); Object.assign(error, { code: 'ERR_UNKNOWN_FILE_EXTENSION' }); throw error; } }