fix(npm): better error message when attempting to use typescript in npm packages (#16813)

This commit is contained in:
David Sherret 2022-11-25 13:42:05 -05:00 committed by GitHub
parent 8fc62f93bf
commit d0a4e23ae8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 40 additions and 7 deletions

View file

@ -0,0 +1,4 @@
// this should not work because we don't support typescript files in npm packages
export function getValue(): 5 {
return 5;
}

View file

@ -0,0 +1,5 @@
{
"name": "@denotest/typescript-file",
"version": "1.0.0",
"main": "./index.ts"
}