UNPKG

ts-patch

Version:

Patch typescript to support custom transformers in tsconfig.json

15 lines 819 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.assertSupportedTypeScript = assertSupportedTypeScript; const errors_1 = require("./errors"); /* ****************************************************************************************************************** */ // region: Utils /* ****************************************************************************************************************** */ function assertSupportedTypeScript(tsPackage) { if (tsPackage.majorVer < 6) { throw new errors_1.PatchError(`ts-patch v4 requires TypeScript >= 6. Found ${tsPackage.version}. ` + `Use the previous ts-patch major for older TypeScript versions.`, { code: 'TS_VERSION_UNSUPPORTED' }); } } // endregion //# sourceMappingURL=assert-supported-typescript.js.map