1234567891011121314151617181920212223242526272829303132 |
- "use strict";
- /**
- * Compatibility bridge to the new typescript code.
- *
- */
- const lib = require("./dist");
- module.exports = function() { return lib.makeOptionalRequire.apply(lib, arguments); }
- module.exports.tryRequire = lib.tryRequire;
- module.exports.tryResolve = lib.tryResolve;
- module.exports.try = lib.tryRequire;
- module.exports.resolve = lib.tryResolve;
- module.exports.makeOptionalRequire = lib.makeOptionalRequire;
- module.exports.optionalRequire = lib.optionalRequire;
- module.exports.optionalRequireCwd = lib.optionalRequireCwd;
- module.exports.optionalRequireTop = lib.optionalRequireTop;
- let __defaultLog;
- Object.defineProperty(module.exports, "log", {
- set(func) {
- __defaultLog = func;
- lib.setDefaultLog(func);
- },
- get() {
- return __defaultLog;
- },
- });
|