Skip to content

Commit e3fe0bb

Browse files
authored
Don't automatically enable source maps (#1876)
1 parent bd8a382 commit e3fe0bb

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
ggt: patch
3+
---
4+
5+
Don't automatically enable source maps
6+
7+
We introduced `--enable-source-maps` in v1.4.0 using the following shebang:
8+
9+
```
10+
#!/usr/bin/env -S node --enable-source-maps
11+
```
12+
13+
This change was made so that source maps would be enabled by default when running `ggt`, giving Gadget employees more information when `ggt` crashes. However, this has caused some issues with certain environments (e.g. `'-S' is not recognized as an internal or external command`), so we are reverting this change and will go back to the following shebang:
14+
15+
```
16+
#!/usr/bin/env node
17+
```
18+
19+
If you are running `ggt` and want source maps enabled, you can still do so by running `ggt` with the `NODE_OPTIONS` environment variable set to `--enable-source-maps`:
20+
21+
```
22+
NODE_OPTIONS='--enable-source-maps' ggt
23+
```

src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env -S node --enable-source-maps
1+
#!/usr/bin/env node
22

33
import { ggt } from "./ggt.js";
44

0 commit comments

Comments
 (0)