Skip to content

Commit

Permalink
chore: make JS module
Browse files Browse the repository at this point in the history
  • Loading branch information
crookedneighbor committed Oct 26, 2024
1 parent d9c70ec commit 1144f21
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# 0.24.4
0.24.5

_Potentially Breaking Changes_

- Revert back to JavaScript module

0.24.4

- Drop dependency on superagent

Expand Down
2 changes: 2 additions & 0 deletions src/models/scryfall-error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ class ExtendableError extends Error {

this.name = this.constructor.name;

// @ts-expect-error this a v8 specific thing
if (typeof Error.captureStackTrace === "function") {
// @ts-expect-error this a v8 specific thing
Error.captureStackTrace(this, this.constructor);
} else {
this.stack = new Error(message).stack;
Expand Down
6 changes: 4 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"compilerOptions": {
"strict": true,
"module": "CommonJS",
"moduleResolution": "Bundler",
"module": "preserve",
"outDir": "./dist",
"declaration": true,
"esModuleInterop": true
"esModuleInterop": true,
"lib": ["dom", "ES2022"]
},
"include": ["src/**/*.ts"],
"exclude": ["src/**/__mocks__/"]
Expand Down

0 comments on commit 1144f21

Please sign in to comment.