Skip to content

Commit 538e915

Browse files
committed
chore: update config
1 parent 0e1c1a4 commit 538e915

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

_tools/publish_npm.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ if (import.meta.main) {
1616
const tag = isPrerelease?.[0] ?? "latest";
1717

1818
const pkg = makeOptions(version);
19-
const result = await Deno.run({
20-
cmd: ["npm", "publish", pkg.outDir, "--tag", String(tag)],
21-
stdout: "piped",
22-
})
23-
.output();
19+
const command = new Deno.Command("npm", {
20+
args: ["publish", pkg.outDir, "--tag", String(tag)],
21+
});
22+
const result = await command.output();
2423

25-
console.log(new TextDecoder().decode(result));
24+
if (!result.success) {
25+
console.error(new TextDecoder().decode(result.stderr));
26+
}
2627
}

deno.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,13 @@
44
"build:npm": "deno run -A _tools/build_npm.ts"
55
},
66
"fmt": {
7-
"files": {
8-
"exclude": ["CHANGELOG.md", "CODE_OF_CONDUCT.md"]
9-
}
7+
"exclude": ["CHANGELOG.md", "CODE_OF_CONDUCT.md"]
108
},
119
"lint": {
12-
"files": {
13-
"exclude": ["CHANGELOG.md", "CODE_OF_CONDUCT.md"]
14-
}
10+
"exclude": ["CHANGELOG.md", "CODE_OF_CONDUCT.md"]
1511
},
1612
"test": {
17-
"files": {
18-
"exclude": ["CHANGELOG.md", "CODE_OF_CONDUCT.md"]
19-
}
13+
"exclude": ["CHANGELOG.md", "CODE_OF_CONDUCT.md"]
2014
},
2115
"compilerOptions": {
2216
"noImplicitReturns": true,

0 commit comments

Comments
 (0)