@turbo/types 2.0.14 → 2.0.15-canary.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/types/config.ts +38 -4
package/package.json
CHANGED
package/src/types/config.ts
CHANGED
|
@@ -105,11 +105,11 @@ export interface RootSchema extends BaseSchema {
|
|
|
105
105
|
globalPassThroughEnv?: null | Array<EnvWildcard>;
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
|
+
* @deprecated as of Turborepo 2.0.0. Consider using {@link RootSchema.globalDependencies} instead.
|
|
109
|
+
*
|
|
108
110
|
* A priority-ordered (most-significant to least-significant) array of project-anchored
|
|
109
111
|
* Unix-style paths to `.env` files to include in the global hash.
|
|
110
112
|
*
|
|
111
|
-
* Documentation: https://turbo.build/repo/docs/reference/configuration#globalDotEnv
|
|
112
|
-
*
|
|
113
113
|
* @defaultValue `null`
|
|
114
114
|
*/
|
|
115
115
|
globalDotEnv?: null | Array<AnchoredUnixPath>;
|
|
@@ -143,6 +143,36 @@ export interface RootSchema extends BaseSchema {
|
|
|
143
143
|
* @defaultValue `false`
|
|
144
144
|
*/
|
|
145
145
|
dangerouslyDisablePackageManagerCheck?: boolean;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Specify the filesystem cache directory.
|
|
149
|
+
*
|
|
150
|
+
* Documentation: https://turbo.build/repo/docs/reference/configuration#tasks
|
|
151
|
+
*
|
|
152
|
+
* @defaultValue `"".turbo/cache"`
|
|
153
|
+
*/
|
|
154
|
+
cacheDir?: RelativeUnixPath;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Turbo can run a background process to pre-calculate values used for determining work that needs to be done. This standalone process (daemon) is an optimization, and not required for proper functioning of turbo.
|
|
158
|
+
*
|
|
159
|
+
* Documentation: https://turbo.build/repo/docs/reference/configuration#daemon
|
|
160
|
+
*
|
|
161
|
+
* @defaultValue `false`
|
|
162
|
+
*/
|
|
163
|
+
daemon?: boolean;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Turborepo's Environment Modes allow you to control which environment variables are available to a task at runtime:
|
|
167
|
+
*
|
|
168
|
+
* - **Strict Mode**: Filter environment variables to only those that are specified in the `env` and `globalEnv` keys in `turbo.json`.
|
|
169
|
+
* - **Loose Mode**: Allow all environment variables for the process to be available.
|
|
170
|
+
*
|
|
171
|
+
* Documentation: https://turbo.build/repo/docs/crafting-your-repository/using-environment-variables#environment-modes
|
|
172
|
+
*
|
|
173
|
+
* @defaultValue `"strict"`
|
|
174
|
+
*/
|
|
175
|
+
envMode?: EnvMode;
|
|
146
176
|
}
|
|
147
177
|
|
|
148
178
|
export type LegacyRootSchema = RootSchema & LegacyBaseSchema;
|
|
@@ -194,11 +224,11 @@ export interface Pipeline {
|
|
|
194
224
|
passThroughEnv?: null | Array<EnvWildcard>;
|
|
195
225
|
|
|
196
226
|
/**
|
|
227
|
+
* @deprecated as of Turborepo 2.0.0. Consider using {@link Pipeline.inputs} instead.
|
|
228
|
+
*
|
|
197
229
|
* A priority-ordered (most-significant to least-significant) array of workspace-anchored
|
|
198
230
|
* Unix-style paths to `.env` files to include in the task hash.
|
|
199
231
|
*
|
|
200
|
-
* Documentation: https://turbo.build/repo/docs/reference/configuration#dotEnv
|
|
201
|
-
*
|
|
202
232
|
* @defaultValue `null`
|
|
203
233
|
*/
|
|
204
234
|
dotEnv?: null | Array<AnchoredUnixPath>;
|
|
@@ -317,5 +347,9 @@ export type OutputMode =
|
|
|
317
347
|
export type EnvMode = "strict" | "loose";
|
|
318
348
|
export type UI = "tui" | "stream";
|
|
319
349
|
|
|
350
|
+
/**
|
|
351
|
+
* This is a relative Unix-style path (e.g. `./src/index.ts` or `src/index.ts`). Absolute paths (e.g. `/tmp/foo`) are not valid.
|
|
352
|
+
*/
|
|
353
|
+
export type RelativeUnixPath = string;
|
|
320
354
|
export type AnchoredUnixPath = string;
|
|
321
355
|
export type EnvWildcard = string;
|