lage 1.8.8 → 1.9.0
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/CHANGELOG.json +31 -1
- package/CHANGELOG.md +10 -2
- package/lib/cache/cacheConfig.js +3 -1
- package/lib/cache/cacheConfig.js.map +1 -1
- package/lib/isRunningFromCI.d.ts +1 -0
- package/lib/isRunningFromCI.js +5 -0
- package/lib/isRunningFromCI.js.map +1 -0
- package/package.json +2 -9
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,37 @@
|
|
|
2
2
|
"name": "lage",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Wed, 28 Sep 2022 16:37:25 GMT",
|
|
6
|
+
"tag": "lage_v1.9.0",
|
|
7
|
+
"version": "1.9.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "kchau@microsoft.com",
|
|
12
|
+
"package": "lage",
|
|
13
|
+
"commit": "888a1aa34a214790f5ce43f68033358bb193e6cd",
|
|
14
|
+
"comment": "The defaults for CI environments is completely wrong, we need to make sure the defaults are correct for CI so it will write remote cache and skip local download remote cache"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Tue, 20 Sep 2022 02:32:14 GMT",
|
|
21
|
+
"tag": "lage_v1.8.8",
|
|
22
|
+
"version": "1.8.8",
|
|
23
|
+
"comments": {
|
|
24
|
+
"none": [
|
|
25
|
+
{
|
|
26
|
+
"author": "elcraig@microsoft.com",
|
|
27
|
+
"package": "lage",
|
|
28
|
+
"commit": "8193ad27df772d312844bfc4cc3ea43297e18098",
|
|
29
|
+
"comment": "Hoist widely-used devDependencies to the repo root"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"date": "Mon, 19 Sep 2022 19:44:48 GMT",
|
|
6
36
|
"tag": "lage_v1.8.8",
|
|
7
37
|
"version": "1.8.8",
|
|
8
38
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# Change Log - lage
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 28 Sep 2022 16:37:25 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.9.0
|
|
8
|
+
|
|
9
|
+
Wed, 28 Sep 2022 16:37:25 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- The defaults for CI environments is completely wrong, we need to make sure the defaults are correct for CI so it will write remote cache and skip local download remote cache (kchau@microsoft.com)
|
|
14
|
+
|
|
7
15
|
## 1.8.8
|
|
8
16
|
|
|
9
|
-
Mon, 19 Sep 2022 19:44:
|
|
17
|
+
Mon, 19 Sep 2022 19:44:48 GMT
|
|
10
18
|
|
|
11
19
|
### Patches
|
|
12
20
|
|
package/lib/cache/cacheConfig.js
CHANGED
|
@@ -3,14 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getCacheConfig = void 0;
|
|
4
4
|
const backfill_config_1 = require("backfill-config");
|
|
5
5
|
const backfill_logger_1 = require("backfill-logger");
|
|
6
|
+
const isRunningFromCI_1 = require("../isRunningFromCI");
|
|
6
7
|
const RemoteFallbackCacheProvider_1 = require("./RemoteFallbackCacheProvider");
|
|
7
8
|
function getCacheConfig(cwd, cacheOptions) {
|
|
9
|
+
var _a;
|
|
8
10
|
const defaultCacheConfig = (0, backfill_config_1.createDefaultConfig)(cwd);
|
|
9
11
|
// in lage, default mode is to CACHE locally
|
|
10
12
|
defaultCacheConfig.cacheStorageConfig.provider = "local";
|
|
11
13
|
const logger = (0, backfill_logger_1.makeLogger)("warn");
|
|
12
14
|
const envConfig = (0, backfill_config_1.getEnvConfig)(logger);
|
|
13
|
-
const configWithEnvOverrides = Object.assign(Object.assign(Object.assign(Object.assign({}, defaultCacheConfig), cacheOptions), envConfig), { writeRemoteCache: cacheOptions.writeRemoteCache || !!process.env.LAGE_WRITE_REMOTE_CACHE });
|
|
15
|
+
const configWithEnvOverrides = Object.assign(Object.assign(Object.assign(Object.assign({}, defaultCacheConfig), cacheOptions), envConfig), { writeRemoteCache: cacheOptions.writeRemoteCache || !!process.env.LAGE_WRITE_REMOTE_CACHE || isRunningFromCI_1.isRunningFromCI, skipLocalCache: (_a = cacheOptions.skipLocalCache) !== null && _a !== void 0 ? _a : isRunningFromCI_1.isRunningFromCI });
|
|
14
16
|
const configWithFallback = Object.assign(Object.assign({}, configWithEnvOverrides), { cacheStorageConfig: Object.assign(Object.assign({}, configWithEnvOverrides.cacheStorageConfig), { provider: (logger, cwd) => new RemoteFallbackCacheProvider_1.RemoteFallbackCacheProvider(configWithEnvOverrides, logger, cwd), name: "remote-fallback-provider" }) });
|
|
15
17
|
return configWithFallback;
|
|
16
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cacheConfig.js","sourceRoot":"","sources":["../../src/cache/cacheConfig.ts"],"names":[],"mappings":";;;AAAA,qDAAoE;AACpE,qDAAqD;AAErD,+EAA4E;AAE5E,SAAgB,cAAc,CAAC,GAAW,EAAE,YAA0B
|
|
1
|
+
{"version":3,"file":"cacheConfig.js","sourceRoot":"","sources":["../../src/cache/cacheConfig.ts"],"names":[],"mappings":";;;AAAA,qDAAoE;AACpE,qDAAqD;AACrD,wDAAqD;AAErD,+EAA4E;AAE5E,SAAgB,cAAc,CAAC,GAAW,EAAE,YAA0B;;IACpE,MAAM,kBAAkB,GAAG,IAAA,qCAAmB,EAAC,GAAG,CAAC,CAAC;IAEpD,4CAA4C;IAC5C,kBAAkB,CAAC,kBAAkB,CAAC,QAAQ,GAAG,OAAO,CAAC;IAEzD,MAAM,MAAM,GAAG,IAAA,4BAAU,EAAC,MAAM,CAAC,CAAC;IAClC,MAAM,SAAS,GAAG,IAAA,8BAAY,EAAC,MAAM,CAAC,CAAC;IAEvC,MAAM,sBAAsB,+DACvB,kBAAkB,GAClB,YAAY,GACZ,SAAS,KACZ,gBAAgB,EAAE,YAAY,CAAC,gBAAgB,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,IAAI,iCAAe,EAC3G,cAAc,EAAE,MAAA,YAAY,CAAC,cAAc,mCAAI,iCAAe,GAC/D,CAAC;IAEF,MAAM,kBAAkB,mCACnB,sBAAsB,KACzB,kBAAkB,kCACb,sBAAsB,CAAC,kBAAkB,KAC5C,QAAQ,EAAE,CAAC,MAAc,EAAE,GAAW,EAAE,EAAE,CAAC,IAAI,yDAA2B,CAAC,sBAAsB,EAAE,MAAM,EAAE,GAAG,CAAC,EAC/G,IAAI,EAAE,0BAA0B,MAEnC,CAAC;IAEF,OAAO,kBAAkB,CAAC;AAC5B,CAAC;AA3BD,wCA2BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isRunningFromCI: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isRunningFromCI.js","sourceRoot":"","sources":["../src/isRunningFromCI.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lage",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "A monorepo task runner",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/microsoft/lage"
|
|
@@ -50,16 +50,9 @@
|
|
|
50
50
|
"@types/cosmiconfig": "6.0.0",
|
|
51
51
|
"@types/execa": "2.0.0",
|
|
52
52
|
"@types/ioredis": "4.28.10",
|
|
53
|
-
"@types/jest": "29.0.3",
|
|
54
|
-
"@types/node": "14.18.29",
|
|
55
53
|
"@types/npmlog": "4.1.4",
|
|
56
54
|
"@types/p-queue": "3.2.1",
|
|
57
55
|
"@types/yargs-parser": "15.0.0",
|
|
58
|
-
"
|
|
59
|
-
"gh-pages": "4.0.0",
|
|
60
|
-
"jest": "29.0.3",
|
|
61
|
-
"ts-jest": "29.0.1",
|
|
62
|
-
"ts-node": "8.10.2",
|
|
63
|
-
"typescript": "4.6.4"
|
|
56
|
+
"ts-node": "8.10.2"
|
|
64
57
|
}
|
|
65
58
|
}
|