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

chore: replace deno.land/x with jsr in examples and badges #187

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# deno_emit

[![deno emit](https://doc.deno.land/badge.svg)](https://doc.deno.land/https://deno.land/x/emit/mod.ts)
[![deno emit](https://jsr.io/badges/@deno/emit)](https://jsr.io/@deno/emit)
[![Twitter handle][]][Twitter badge]
[![Discord Chat](https://img.shields.io/discord/684898665143206084?logo=discord&style=social)](https://discord.gg/deno)

Expand Down
8 changes: 4 additions & 4 deletions js/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# emit

[![deno emit](https://doc.deno.land/badge.svg)](https://doc.deno.land/https://deno.land/x/emit/mod.ts)
[![deno emit](https://jsr.io/badges/@deno/emit)](https://jsr.io/@deno/emit)

Transpile and bundle JavaScript and TypeScript in Deno and Deno Deploy.

Expand All @@ -13,13 +13,13 @@ transpiled fashion. An example of taking some TypeScript and transpiling to
JavaScript:

```ts
import { transpile } from "https://deno.land/x/emit/mod.ts";
import { transpile } from "jsr:@deno/emit";

const url = new URL("./testdata/mod.ts", import.meta.url);
const result = await transpile(url);

const code = result.get(url.href);
console.log(code.includes("export default function hello()"));
console.log(code?.includes("export default function hello()"));
```

## Bundle
Expand All @@ -29,7 +29,7 @@ This is similar to the functionality provided by `deno bundle` on the Deno
command line. An example:

```ts
import { bundle } from "https://deno.land/x/emit/mod.ts";
import { bundle } from "jsr:@deno/emit";
const result = await bundle(
new URL("https://deno.land/[email protected]/examples/chat/server.ts"),
);
Expand Down
12 changes: 6 additions & 6 deletions js/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
* ### Example - Transpiling
*
* ```ts
* import { transpile } from "https://deno.land/x/emit/mod.ts";
* import { transpile } from "jsr:@deno/emit";
*
* const url = new URL("./testdata/mod.ts", import.meta.url);
* const result = await transpile(url.href);
* const result = await transpile(url);
*
* const { code } = result;
* console.log(code.includes("export default function hello()"));
* const code = result.get(url.href);
* console.log(code?.includes("export default function hello()"));
* ```
*
* ### Example - Bundling
*
* ```ts
* import { bundle } from "https://deno.land/x/emit/mod.ts";
* import { bundle } from "jsr:@deno/emit";
* const result = await bundle(
* "https://deno.land/[email protected]/examples/chat/server.ts",
* );
Expand Down Expand Up @@ -156,7 +156,7 @@ export interface CompilerOptions {
* ### Example
*
* ```ts
* import { bundle } from "https://deno.land/x/emit/mod.ts";
* import { bundle } from "jsr:@deno/emit";
* const result = await bundle(
* "https://deno.land/[email protected]/examples/chat/server.ts",
* );
Expand Down
Loading