File tree 4 files changed +11
-11
lines changed
4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ Building the monorepo in ${configuration} mode...
37
37
` ) } `,
38
38
async ( ) => {
39
39
let result = await $ `pnpm bootstrap` . timeout ( "60s" ) ;
40
- if ( ! result . ok ( ) ) {
40
+ if ( ! result . ok ) {
41
41
throw new Error (
42
42
`An error occured while bootstrapping the monorepo: \n\n${ result . message } \n`
43
43
) ;
@@ -46,15 +46,15 @@ Building the monorepo in ${configuration} mode...
46
46
if ( configuration === "production" ) {
47
47
result =
48
48
await $ `pnpm nx run-many --target=build --all --exclude="@storm-stack/monorepo" --configuration=production --parallel=5` ;
49
- if ( ! result . ok ( ) ) {
49
+ if ( ! result . ok ) {
50
50
throw new Error (
51
51
`An error occured while building the monorepo in production mode: \n\n${ result . message } \n`
52
52
) ;
53
53
}
54
54
} else {
55
55
result =
56
56
await $ `pnpm nx run-many --target=build --all --exclude="@storm-stack/monorepo" --configuration=${ configuration } --nxBail` ;
57
- if ( ! result . ok ( ) ) {
57
+ if ( ! result . ok ) {
58
58
throw new Error (
59
59
`An error occured while building the monorepo in development mode: \n\n${ result . message } \n`
60
60
) ;
Original file line number Diff line number Diff line change 29
29
await $ `pnpm nx run-many --target=lint,format --all --exclude="@storm-stack/monorepo" --parallel=5` . timeout (
30
30
`${ 30 * 60 } s`
31
31
) ;
32
- if ( ! result . ok ( ) ) {
32
+ if ( ! result . ok ) {
33
33
throw new Error (
34
34
`An error occured while formatting the monorepo: \n\n${ result . message } \n`
35
35
) ;
39
39
await $ `pnpm nx format:write ${ files } --sort-root-tsconfig-paths --all` . timeout (
40
40
`${ 30 * 60 } s`
41
41
) ;
42
- if ( ! result . ok ( ) ) {
42
+ if ( ! result . ok ) {
43
43
throw new Error (
44
44
`An error occured while running \`nx format:write\` on the monorepo: \n\n${ result . message } \n`
45
45
) ;
Original file line number Diff line number Diff line change 24
24
await $ `pnpm nx run-many --target=lint --all --exclude="@storm-stack/monorepo" --parallel=5` . timeout (
25
25
`${ 30 * 60 } s`
26
26
) ;
27
- if ( ! result . ok ( ) ) {
27
+ if ( ! result . ok ) {
28
28
throw new Error (
29
29
`An error occured while linting the monorepo: \n\n${ result . message } \n`
30
30
) ;
34
34
await $ `pnpm exec storm-lint all --skip-cspell --skip-circular-deps` . timeout (
35
35
`${ 30 * 60 } s`
36
36
) ;
37
- if ( ! result . ok ( ) ) {
37
+ if ( ! result . ok ) {
38
38
throw new Error (
39
39
`An error occured while running \`storm-lint\` on the monorepo: \n\n${ result . message } \n`
40
40
) ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ usePwsh();
21
21
22
22
try {
23
23
let result = await $ `pnpm nx clear-cache` . timeout ( `${ 5 * 60 } s` ) ;
24
- if ( ! result . ok ( ) ) {
24
+ if ( ! result . ok ) {
25
25
throw new Error (
26
26
`An error occured while clearing Nx cache: \n\n${ result . message } \n`
27
27
) ;
31
31
await $ `pnpm exec rimraf --no-interactive -- ./.nx/cache ./.nx/workspace-data ./dist ./tmp ./pnpm-lock.yaml` . timeout (
32
32
`${ 5 * 60 } s`
33
33
) ;
34
- if ( ! result . ok ( ) ) {
34
+ if ( ! result . ok ) {
35
35
throw new Error (
36
36
`An error occured while removing cache directories: \n\n${ result . message } \n`
37
37
) ;
41
41
await $ `pnpm exec rimraf --no-interactive --glob "*/**/{node_modules,dist,.storm}` . timeout (
42
42
`${ 5 * 60 } s`
43
43
) ;
44
- if ( ! result . ok ( ) ) {
44
+ if ( ! result . ok ) {
45
45
throw new Error (
46
46
`An error occured while removing node modules and build directories from the monorepo's projects: \n\n${ result . message } \n`
47
47
) ;
51
51
await $ `pnpm exec rimraf --no-interactive --glob "./node_modules/!rimraf/**"` . timeout (
52
52
`${ 5 * 60 } s`
53
53
) ;
54
- if ( ! result . ok ( ) ) {
54
+ if ( ! result . ok ) {
55
55
throw new Error (
56
56
`An error occured while removing node modules from the workspace root: \n\n${ result . message } \n`
57
57
) ;
You can’t perform that action at this time.
0 commit comments