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

Remove Deno shims #8

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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
19 changes: 9 additions & 10 deletions build.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { build, emptyDir } from "https://deno.land/x/dnt@0.32.0/mod.ts";
import { build, emptyDir } from "https://deno.land/x/dnt@0.37.0/mod.ts";

const version = Deno.args[0];
if (!version) {
Expand All @@ -18,12 +18,11 @@ await emptyDir("./npm");
await build({
entryPoints: ["./mod.ts"],
outDir: "./npm",
test: false,
shims: {
deno: true,
custom: [{
globalNames: ["TextEncoder", "TextDecoder"],
module: "util",
}],
deno: {
test: "dev",
},
},
package: {
// package.json properties
Expand All @@ -44,7 +43,7 @@ await build({
// post build steps
Deno.copyFileSync("LICENSE", "npm/LICENSE");
Deno.copyFileSync("README.md", "npm/README.md");
const process = Deno.run({
cmd: ["git", "tag", version],
});
await process.status();
const process = new Deno.Command("git", {
args: ["tag", version],
}).spawn();
await process.status;
2 changes: 1 addition & 1 deletion oson.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// deno-lint-ignore-file ban-types no-explicit-any
// deno-lint-ignore-file no-explicit-any
// magic numbers for values
export const UNDEFINED_INDEX = -1 as const;
export const ARRAY_HOLE_INDEX = -2 as const;
Expand Down
Loading