12 lines
229 B
TypeScript
12 lines
229 B
TypeScript
|
import * as tsNode from 'ts-node';
|
||
|
import * as path from 'path';
|
||
|
|
||
|
tsNode.register({
|
||
|
compilerOptions: {
|
||
|
lib: ['es2016', 'es2017']
|
||
|
}
|
||
|
});
|
||
|
|
||
|
const pathToLoad = path.join(process.cwd(), process.argv.pop());
|
||
|
import(pathToLoad);
|