summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/package_json/basic/main.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-02-23 10:58:10 -0500
committerGitHub <noreply@github.com>2023-02-23 10:58:10 -0500
commit344317ec501fa124f0c74b44035fa4516999dce6 (patch)
tree3a0e4ca3d83b1a47a0903f08648ef1b896b32195 /cli/tests/testdata/package_json/basic/main.ts
parent214bdbbc2b09ab3f56f0ffe1ad5930d48ec0c76f (diff)
feat(npm): support bare specifiers from package.json in more subcommands and language server (#17891)
Diffstat (limited to 'cli/tests/testdata/package_json/basic/main.ts')
-rw-r--r--cli/tests/testdata/package_json/basic/main.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/cli/tests/testdata/package_json/basic/main.ts b/cli/tests/testdata/package_json/basic/main.ts
new file mode 100644
index 000000000..5911fe32d
--- /dev/null
+++ b/cli/tests/testdata/package_json/basic/main.ts
@@ -0,0 +1,11 @@
+import * as test from "@denotest/esm-basic";
+
+console.log(test.getValue());
+
+export function add(a: number, b: number) {
+ return a + b;
+}
+
+export function getValue() {
+ return test.getValue();
+}