mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
feat(npm): support bare specifiers from package.json in more subcommands and language server (#17891)
This commit is contained in:
parent
214bdbbc2b
commit
344317ec50
41 changed files with 472 additions and 95 deletions
2
cli/tests/testdata/npm/registry/@denotest/esm-basic/1.0.0/main.d.mts
vendored
Normal file
2
cli/tests/testdata/npm/registry/@denotest/esm-basic/1.0.0/main.d.mts
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export declare function setValue(val: number): void;
|
||||
export declare function getValue(): number;
|
9
cli/tests/testdata/npm/registry/@denotest/esm-basic/1.0.0/main.mjs
vendored
Normal file
9
cli/tests/testdata/npm/registry/@denotest/esm-basic/1.0.0/main.mjs
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
let value = 0;
|
||||
|
||||
export function setValue(newValue) {
|
||||
value = newValue;
|
||||
}
|
||||
|
||||
export function getValue() {
|
||||
return value;
|
||||
}
|
7
cli/tests/testdata/npm/registry/@denotest/esm-basic/1.0.0/package.json
vendored
Normal file
7
cli/tests/testdata/npm/registry/@denotest/esm-basic/1.0.0/package.json
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"name": "@denotest/esm-basic",
|
||||
"version": "1.0.0",
|
||||
"type": "module",
|
||||
"main": "main.mjs",
|
||||
"types": "main.d.mts"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue