-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(compile): respect compiler options for emit (#22521)
`deno compile` was ignoring configuration file and thus not applying `compilerOptions` to influence the way files were emitted.
- Loading branch information
1 parent
190776f
commit 197d248
Showing
4 changed files
with
81 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"compilerOptions": { | ||
"experimentalDecorators": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// deno-lint-ignore-file | ||
function a() { | ||
console.log("@A evaluated"); | ||
return function ( | ||
target: any, | ||
propertyKey: string, | ||
descriptor: PropertyDescriptor, | ||
) { | ||
console.log("@A called"); | ||
const fn = descriptor.value; | ||
descriptor.value = function () { | ||
console.log("fn() called from @A"); | ||
fn(); | ||
}; | ||
}; | ||
} | ||
|
||
function b() { | ||
console.log("@B evaluated"); | ||
return function ( | ||
target: any, | ||
propertyKey: string, | ||
descriptor: PropertyDescriptor, | ||
) { | ||
console.log("@B called"); | ||
const fn = descriptor.value; | ||
descriptor.value = function () { | ||
console.log("fn() called from @B"); | ||
fn(); | ||
}; | ||
}; | ||
} | ||
|
||
class C { | ||
@a() | ||
@b() | ||
static test() { | ||
console.log("C.test() called"); | ||
} | ||
} | ||
|
||
C.test(); |