-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathlage.config.js
36 lines (35 loc) · 991 Bytes
/
lage.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// @ts-check
/**
* lage types are slightly incorrect with what's required/optional
* @typedef {import('lage').ConfigOptions} ConfigOptions
* @typedef {import('lage').CacheOptions} CacheOptions
* @typedef {Partial<Omit<ConfigOptions, 'cacheOptions'>> & { cacheOptions?: Partial<CacheOptions> }} LageConfig
* @type {LageConfig}
*/
const config = {
pipeline: {
build: ["^build"],
test: ["build"],
watch: [],
},
npmClient: "yarn",
// These options are sent to `backfill`
cacheOptions: {
// These are relative to the git root, and affects the hash of the cache
// Any of these file changes will invalidate cache
environmentGlob: [
"!**/node_modules/**",
"!**/__fixtures__/**",
".github/workflows/*",
"*.json",
"*.yml",
"yarn.lock",
"tools/**/*",
],
/**
* Subset of files in package directories that will be saved into the cache.
*/
outputGlob: ["lib/**/*"],
},
};
module.exports = config;