Skip to content

Commit a3e7048

Browse files
authored
fix(api): edit watch script so dirname is defined (#104536)
<!-- Describe your PR here. --> Was unable to test endpoint changes as watch script was failing. Fixed by defining dirname <!-- Sentry employees and contractors can delete or ignore the following. --> ### Legal Boilerplate Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.
1 parent cb3c557 commit a3e7048

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api-docs/watch.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import {spawn} from 'node:child_process';
2-
import {join} from 'node:path';
2+
import {dirname, join} from 'node:path';
33
import {stderr, stdout} from 'node:process';
4+
import {fileURLToPath} from 'node:url';
45

56
import sane from 'sane';
67

8+
const __dirname = dirname(fileURLToPath(import.meta.url));
79
const watcherPy = sane(join(__dirname, '../src/sentry'));
810
const watcherJson = sane(join(__dirname, '../api-docs'));
911

0 commit comments

Comments
 (0)