Skip to content
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
7 changes: 6 additions & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
"coverage": "deno test --allow-read=./ --parallel --shuffle --coverage && deno coverage --html",
"doc": "deno doc --html rest.ts userscript.ts websocket.ts",
"npm:build": "deno run -A scripts/build_npm.ts",
"npm:check": "cd npm && npm publish --provenance --access=public --dry-run"
"npm:check": {
"command": "cd npm && npm publish --provenance --access=public --dry-run",
"dependencies": [
"npm:build"
]
}
},
"imports": {
"@std/testing/types": "jsr:@std/testing@0/types",
Expand Down
4 changes: 2 additions & 2 deletions scripts/build_npm.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference lib="deno.ns" />
import { build, emptyDir } from "@deno/dnt";

await emptyDir("./npm");
Expand Down Expand Up @@ -47,8 +48,7 @@ await build({
},
// Don't run type checking during build to avoid Node.js compatibility issues
typeCheck: false,
declaration: "separate",
scriptModule: false,
declaration: "inline",
compilerOptions: {
lib: ["ESNext", "DOM", "DOM.Iterable"],
target: "ES2023",
Expand Down