Skip to content

Commit

Permalink
chore: replace deno.land/x with jsr in examples and badges
Browse files Browse the repository at this point in the history
  • Loading branch information
magurotuna committed Jul 23, 2024
1 parent bfe9b32 commit 604aff2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
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

0 comments on commit 604aff2

Please sign in to comment.