Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deno init should have @std/assert as bare specifier #24580

Closed
dsherret opened this issue Jul 14, 2024 · 0 comments · Fixed by #24581
Closed

deno init should have @std/assert as bare specifier #24580

dsherret opened this issue Jul 14, 2024 · 0 comments · Fixed by #24581

Comments

@dsherret
Copy link
Member

import { assertEquals } from "jsr:@std/assert";
import { add } from "./mod.ts";

Deno.test(function addTest() {
  assertEquals(add(2, 3), 5);
});

Would be better to be:

import { assertEquals } from "@std/assert";
import { add } from "./mod.ts";

Deno.test(function addTest() {
  assertEquals(add(2, 3), 5);
});

Using a proper version constraint in the deno.json. If the version can't be determined then it should fallback to @1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant