Skip to content

Commit 1df2773

Browse files
committed
chore(root): Improve caching of CI (#1936)
1 parent b76c43f commit 1df2773

File tree

4 files changed

+38
-15
lines changed

4 files changed

+38
-15
lines changed

packages/tailwind/integrations/integrations.spec.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1+
import { spawnSync } from 'node:child_process';
12
import path from 'node:path';
2-
import shell from 'shelljs';
33

44
const $ = (command: string, cwd: string = path.resolve(__dirname, '..')) => {
5-
const executionResult = shell.exec(command, {
5+
process.stderr.write(`${cwd} $ ${command}\n`);
6+
const returns = spawnSync(command, {
7+
shell: true,
68
cwd,
7-
fatal: true,
8-
silent: true,
9+
stdio: 'inherit',
910
});
10-
if (executionResult.code !== 0) {
11-
process.stdout.write(executionResult.stderr);
12-
process.stderr.write(executionResult.stderr);
13-
}
1411
expect(
15-
executionResult.code,
12+
returns.status,
1613
`Expected command "${command}" to work properly but it returned a non-zero exit code`,
1714
).toBe(0);
1815
};

packages/tailwind/integrations/nextjs/package-lock.json

Lines changed: 11 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/tailwind/integrations/vite/package-lock.json

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

turbo.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@
2222
],
2323
"outputs": [".next/**", "!.next/cache/**"]
2424
},
25+
"react-email-with-resend#build": {
26+
"dependsOn": ["^build"],
27+
"outputs": [".next/**", "!.next/cache/**"]
28+
},
29+
"react-email-with-next-scaleway": {
30+
"dependsOn": ["^build"],
31+
"outputs": [".next/**", "!.next/cache/**"]
32+
},
2533
"demo#build": {
2634
"dependsOn": ["^build"],
2735
"outputs": [".react-email/**", "!.react-email/.next/cache/**"]
@@ -40,10 +48,6 @@
4048
"dependsOn": ["build"],
4149
"cache": false
4250
},
43-
"@react-email/tailwind#test": {
44-
"dependsOn": ["build"],
45-
"cache": false
46-
},
4751
"test:watch": {
4852
"cache": false
4953
},

0 commit comments

Comments
 (0)