-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates for deno v2: add task and script for distributable; testing f…
…or distributable; use jsr with comments for possible other environments aiming to use current versions in deno 2, with testing working; though it's unclear why prior attempts were reverted;
- Loading branch information
Showing
6 changed files
with
53 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export { | ||
decodeBase64Url, | ||
encodeBase64Url, | ||
} from "https://deno.land/[email protected]/encoding/base64url.ts"; | ||
} from "jsr:@std/[email protected]"; | ||
//} from "https://jsr.io/@std/encoding/1.0.5/mod.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import * as esbuild from "npm:esbuild"; | ||
import { denoPlugins } from "jsr:@luca/esbuild-deno-loader"; | ||
|
||
const result = await esbuild.build({ | ||
plugins: [...denoPlugins()], | ||
entryPoints: ["./mod.ts"], | ||
outfile: `./dist/mod.js`, | ||
bundle: true, | ||
format: "esm", | ||
}); | ||
|
||
const testing = await esbuild.build({ | ||
plugins: [...denoPlugins()], | ||
entryPoints: ["./tests/test.ts"], | ||
outfile: `./dist/test.js`, | ||
bundle: true, | ||
format: "esm", | ||
}); | ||
|
||
|
||
esbuild.stop(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
export { | ||
decodeBase64Url, | ||
encodeBase64Url, | ||
} from "https://deno.land/[email protected]/encoding/base64url.ts"; | ||
} from "https://deno.land/[email protected]/encoding/base64url.ts"; | ||
/* | ||
browsers: | ||
} from "https://deno.land/[email protected]/encoding/base64url.ts"; | ||
middleware, including deno test: | ||
} from "jsr:@std/encoding"; | ||
untested: | ||
} from "https://jsr.io/@std/encoding/1.0.5/mod.ts"; | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ export { | |
assertEquals, | ||
assertRejects, | ||
assertThrows, | ||
} from "https://deno.land/[email protected]/testing/asserts.ts"; | ||
|
||
export { decodeHex } from "https://deno.land/[email protected]/encoding/hex.ts"; | ||
} from "jsr:@std/assert"; | ||
// see ../examples/depts.ts | ||
// with v2 of deno test seems jsr preferred | ||
export { decodeHex } from "jsr:@std/[email protected]"; | ||
//export { decodeHex } from "https://deno.land/[email protected]/encoding/hex.ts"; |