Update eslint fixtures (#32589)
Extracting portions of #32416 for easier review. This PR lightly updates the build scripts for the eslint fixtures. Co-authored-by: michael faith <michaelfaith@users.noreply.github.com> --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32589). * #32592 * #32591 * #32590 * __->__ #32589 * #32588 --------- Co-authored-by: michael faith <michaelfaith@users.noreply.github.com>
lauren committed
Mar 12, 2025 at 19:07 UTC
0e2402eb20de53e08fd0a767554f93e5e53af873
4 files changed
+12
-8
fixtures/eslint-v6/build.mjs
+3
-2
@@ -1,12 +1,13 @@
1
#!/usr/bin/env node
2
3
-import {exec} from 'node:child_process';
3
+import {execSync} from 'node:child_process';
4
import {dirname, resolve} from 'node:path';
5
import {fileURLToPath} from 'node:url';
6
7
const __filename = fileURLToPath(import.meta.url);
8
const __dirname = dirname(__filename);
9
10
-exec('yarn build -r stable eslint-plugin-react-hooks', {
10
+execSync('yarn build -r stable eslint-plugin-react-hooks', {
11
cwd: resolve(__dirname, '..', '..'),
12
+ stdio: 'inherit',
13
});
fixtures/eslint-v7/build.mjs
+3
-2
@@ -1,12 +1,13 @@
1
#!/usr/bin/env node
2
3
-import {exec} from 'node:child_process';
3
+import {execSync} from 'node:child_process';
4
import {dirname, resolve} from 'node:path';
5
import {fileURLToPath} from 'node:url';
6
7
const __filename = fileURLToPath(import.meta.url);
8
const __dirname = dirname(__filename);
9
10
-exec('yarn build -r stable eslint-plugin-react-hooks', {
10
+execSync('yarn build -r stable eslint-plugin-react-hooks', {
11
cwd: resolve(__dirname, '..', '..'),
12
+ stdio: 'inherit',
13
});
fixtures/eslint-v8/build.mjs
+3
-2
@@ -1,12 +1,13 @@
1
#!/usr/bin/env node
2
3
-import {exec} from 'node:child_process';
3
+import {execSync} from 'node:child_process';
4
import {dirname, resolve} from 'node:path';
5
import {fileURLToPath} from 'node:url';
6
7
const __filename = fileURLToPath(import.meta.url);
8
const __dirname = dirname(__filename);
9
10
-exec('yarn build -r stable eslint-plugin-react-hooks', {
10
+execSync('yarn build -r stable eslint-plugin-react-hooks', {
11
cwd: resolve(__dirname, '..', '..'),
12
+ stdio: 'inherit',
13
});
fixtures/eslint-v9/build.mjs
+3
-2
@@ -1,12 +1,13 @@
1
#!/usr/bin/env node
2
3
-import {exec} from 'node:child_process';
3
+import {execSync} from 'node:child_process';
4
import {dirname, resolve} from 'node:path';
5
import {fileURLToPath} from 'node:url';
6
7
const __filename = fileURLToPath(import.meta.url);
8
const __dirname = dirname(__filename);
9
10
-exec('yarn build -r stable eslint-plugin-react-hooks', {
10
+execSync('yarn build -r stable eslint-plugin-react-hooks', {
11
cwd: resolve(__dirname, '..', '..'),
12
+ stdio: 'inherit',
13
});