Skip to content

Commit a24e1f3

Browse files
authored
Apply suggestions from code review
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
1 parent a606708 commit a24e1f3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
"exports": {
2626
".": {
2727
"types": "./dist/index-node.d.mts",
28-
"workerd": "./dist/index-node.mjs",
29-
"edge-light": "./dist/index-node.mjs",
3028
"browser": "./dist/index-browser.mjs",
3129
"default": "./dist/index-node.mjs"
3230
},

src/index-browser.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
export { commitFilesFromBase64 } from "./core.ts";
22

33
export function commitChangesFromRepo() {
4-
throw new Error("commitChangesFromRepo is not supported in the browser");
4+
throw new Error(
5+
"commitChangesFromRepo is not supported in non-Node.js environments"
6+
);
57
}

0 commit comments

Comments
 (0)