Skip to content

Commit

Permalink
fix(cli): enable sourcemaps in cli bin
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Jul 30, 2024
1 parent 1fe57de commit ec173d5
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
2 changes: 2 additions & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"p-retry": "^5.1.2",
"path": "^0.12.7",
"rxjs": "7.5.5",
"source-map-support": "^0.5.21",
"throttle-debounce": "^5.0.0",
"toposort": "^2.0.2",
"typescript": "5.4.2",
Expand All @@ -76,6 +77,7 @@
"@types/ejs": "^3.1.1",
"@types/node": "^18.15.11",
"@types/openurl": "^1.0.0",
"@types/source-map-support": "^0.5.10",
"@types/throttle-debounce": "^5.0.0",
"@types/toposort": "^2.0.6",
"@types/yargs": "^17.0.10",
Expand Down
3 changes: 3 additions & 0 deletions packages/cli/src/mud.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env node

// enable sourcemaps
import "source-map-support/register";

// Load .env file into process.env
import * as dotenv from "dotenv";
dotenv.config();
Expand Down
27 changes: 23 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ec173d5

Please sign in to comment.