mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
fix(npm): better error message when attempting to use typescript in npm packages (#16813)
This commit is contained in:
parent
8fc62f93bf
commit
d0a4e23ae8
6 changed files with 40 additions and 7 deletions
4
cli/tests/testdata/npm/registry/@denotest/typescript-file/1.0.0/index.ts
vendored
Normal file
4
cli/tests/testdata/npm/registry/@denotest/typescript-file/1.0.0/index.ts
vendored
Normal 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;
|
||||
}
|
5
cli/tests/testdata/npm/registry/@denotest/typescript-file/1.0.0/package.json
vendored
Normal file
5
cli/tests/testdata/npm/registry/@denotest/typescript-file/1.0.0/package.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"name": "@denotest/typescript-file",
|
||||
"version": "1.0.0",
|
||||
"main": "./index.ts"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue