mirror of
https://github.com/hanzoai/ts-node.git
synced 2026-10-30 19:36:25 +00:00
* When TS returns emitSkipped, fallback to transpileOnly * fix failing windows test
16 lines
424 B
JavaScript
16 lines
424 B
JavaScript
// This file causes TS to return emitSkipped because it's outside of rootDir and
|
|
// it's .js. I assume this happens because the emit path is the same as the
|
|
// input path, and perhaps also because the file is classified "external"
|
|
|
|
const decorator = () => {};
|
|
|
|
class Foo {
|
|
// Using a decorator to prove this .js file is getting compiled
|
|
@decorator
|
|
method() {
|
|
return 'foo';
|
|
}
|
|
}
|
|
|
|
console.log(new Foo().method());
|