|
1 | 1 | {
|
2 |
| - "$schema": "https://turbo.build/schema.json", |
3 |
| - "pipeline": { |
4 |
| - "build": { |
5 |
| - // A package's `build` script depends on that package's |
6 |
| - // dependencies and devDependencies |
7 |
| - // `build` tasks being completed first |
8 |
| - // (the `^` symbol signifies `upstream`). |
9 |
| - "dependsOn": ["^build"], |
10 |
| - // note: output globs are relative to each package's `package.json` |
11 |
| - // (and not the monorepo root) |
12 |
| - "outputs": [".next/**", "!.next/cache/**", "dist/**", "index.d.ts"] |
13 |
| - }, |
14 |
| - "test": { |
15 |
| - // A package's `test` script depends on that package's |
16 |
| - // own `build` script being completed first. |
17 |
| - "dependsOn": ["build"], |
18 |
| - // A package's `test` script should only be rerun when |
19 |
| - // either a `.tsx` or `.ts` file has changed in `src` or `test` folders. |
20 |
| - "inputs": [ |
21 |
| - "src/**/*.tsx", |
22 |
| - "src/**/*.ts", |
23 |
| - "test/**/*.ts", |
24 |
| - "test/**/*.tsx", |
25 |
| - "lib/**/*.js", |
26 |
| - "lib/**/*.jsx" |
27 |
| - ] |
28 |
| - }, |
29 |
| - // A package's `lint` script has no dependencies and |
30 |
| - // can be run whenever. It also has no filesystem outputs. |
31 |
| - "lint": {}, |
32 |
| - "deploy": { |
33 |
| - // A package's `deploy` script depends on the `build`, |
34 |
| - // `test`, and `lint` scripts of the same package |
35 |
| - // being completed. It also has no filesystem outputs. |
36 |
| - "dependsOn": ["build", "test", "lint"] |
37 |
| - } |
38 |
| - } |
| 2 | + "$schema": "https://turbo.build/schema.json", |
| 3 | + "pipeline": { |
| 4 | + "build": { |
| 5 | + // A package's `build` script depends on that package's |
| 6 | + // dependencies and devDependencies |
| 7 | + // `build` tasks being completed first |
| 8 | + // (the `^` symbol signifies `upstream`). |
| 9 | + "dependsOn": ["^build"], |
| 10 | + // note: output globs are relative to each package's `package.json` |
| 11 | + // (and not the monorepo root) |
| 12 | + "outputs": [ |
| 13 | + ".next/**", |
| 14 | + "!.next/cache/**", |
| 15 | + "dist/**", |
| 16 | + "index.d.ts", |
| 17 | + "out/**" |
| 18 | + ] |
| 19 | + }, |
| 20 | + "test": { |
| 21 | + // A package's `test` script depends on that package's |
| 22 | + // own `build` script being completed first. |
| 23 | + "dependsOn": ["build"], |
| 24 | + // A package's `test` script should only be rerun when |
| 25 | + // either a `.tsx` or `.ts` file has changed in `src` or `test` folders. |
| 26 | + "inputs": [ |
| 27 | + "src/**/*.tsx", |
| 28 | + "src/**/*.ts", |
| 29 | + "test/**/*.ts", |
| 30 | + "test/**/*.tsx", |
| 31 | + "lib/**/*.js", |
| 32 | + "lib/**/*.jsx" |
| 33 | + ] |
| 34 | + }, |
| 35 | + // A package's `lint` script has no dependencies and |
| 36 | + // can be run whenever. It also has no filesystem outputs. |
| 37 | + "lint": {}, |
| 38 | + "deploy": { |
| 39 | + // A package's `deploy` script depends on the `build`, |
| 40 | + // `test`, and `lint` scripts of the same package |
| 41 | + // being completed. It also has no filesystem outputs. |
| 42 | + "dependsOn": ["build", "test", "lint"] |
| 43 | + } |
| 44 | + } |
39 | 45 | }
|
0 commit comments