0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-31 09:14:20 -04:00
denoland-deno/cli/tests/testdata/npm/require_added_nm_folder/main.js

11 lines
317 B
JavaScript
Raw Normal View History

import { getValue } from "npm:@denotest/require-added-nm-folder";
Deno.mkdirSync("./node_modules/.other-package");
Deno.writeTextFileSync("./node_modules/.other-package/package.json", "{}");
Deno.writeTextFileSync(
"./node_modules/.other-package/index.js",
"exports.get = () => 5;",
);
console.log(getValue());