lage 1.1.3 → 1.1.4
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/beachball.config.js +17 -0
- package/lib/task/Pipeline.d.ts +1 -1
- package/lib/task/Pipeline.js +9 -1
- package/lib/task/WrappedTarget.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,37 @@
|
|
|
2
2
|
"name": "lage",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Sat, 04 Dec 2021 00:24:05 GMT",
|
|
6
|
+
"tag": "lage_v1.1.4",
|
|
7
|
+
"version": "1.1.4",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "ken@gizzar.com",
|
|
12
|
+
"package": "lage",
|
|
13
|
+
"comment": "fixes the tasks that have the package in its id",
|
|
14
|
+
"commit": "95affe7fc481d92940dd7b9f11a40051fc320865"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Thu, 02 Dec 2021 22:25:07 GMT",
|
|
21
|
+
"tag": "lage_v1.1.3",
|
|
22
|
+
"version": "1.1.3",
|
|
23
|
+
"comments": {
|
|
24
|
+
"none": [
|
|
25
|
+
{
|
|
26
|
+
"author": "4123478+tido64@users.noreply.github.com",
|
|
27
|
+
"package": "lage",
|
|
28
|
+
"comment": "Disable GPG signing in tests to ensure it won't fail",
|
|
29
|
+
"commit": "8198557e7a36803d736ae3b5c816166389ba30a7"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"date": "Thu, 02 Dec 2021 20:21:01 GMT",
|
|
6
36
|
"tag": "lage_v1.1.3",
|
|
7
37
|
"version": "1.1.3",
|
|
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 Sat, 04 Dec 2021 00:24:05 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.1.4
|
|
8
|
+
|
|
9
|
+
Sat, 04 Dec 2021 00:24:05 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- fixes the tasks that have the package in its id (ken@gizzar.com)
|
|
14
|
+
|
|
7
15
|
## 1.1.3
|
|
8
16
|
|
|
9
|
-
Thu, 02 Dec 2021 20:
|
|
17
|
+
Thu, 02 Dec 2021 20:21:01 GMT
|
|
10
18
|
|
|
11
19
|
### Patches
|
|
12
20
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
/** @type {import('beachball').BeachballConfig}*/
|
|
3
|
+
module.exports = {
|
|
4
|
+
ignorePatterns: [
|
|
5
|
+
'.*ignore',
|
|
6
|
+
'.github/**',
|
|
7
|
+
'beachball.config.js',
|
|
8
|
+
'decks/**',
|
|
9
|
+
'docs/**',
|
|
10
|
+
'jasmine.json',
|
|
11
|
+
'jest.config.js',
|
|
12
|
+
'renovate.json',
|
|
13
|
+
'tests/**',
|
|
14
|
+
// This one is especially important (otherwise dependabot would be blocked by change file requirements)
|
|
15
|
+
'yarn.lock',
|
|
16
|
+
],
|
|
17
|
+
};
|
package/lib/task/Pipeline.d.ts
CHANGED
package/lib/task/Pipeline.js
CHANGED
|
@@ -33,6 +33,7 @@ class Pipeline {
|
|
|
33
33
|
run: () => { },
|
|
34
34
|
task: exports.START_TARGET_ID,
|
|
35
35
|
hidden: true,
|
|
36
|
+
cache: false,
|
|
36
37
|
},
|
|
37
38
|
],
|
|
38
39
|
]);
|
|
@@ -127,7 +128,7 @@ class Pipeline {
|
|
|
127
128
|
return Array.isArray(targets) ? targets : [targets];
|
|
128
129
|
}
|
|
129
130
|
/**
|
|
130
|
-
* Converts target configuration to pipeline
|
|
131
|
+
* Converts target configuration to pipeline targets
|
|
131
132
|
* @param id
|
|
132
133
|
* @param target
|
|
133
134
|
*/
|
|
@@ -138,6 +139,13 @@ class Pipeline {
|
|
|
138
139
|
Object.assign(Object.assign({}, target), { id: targetId, cache: target.cache !== false, cwd: this.workspace.root, task: id, run: this.runTask(targetId, this.workspace.root, target.run) || (() => { }) }),
|
|
139
140
|
];
|
|
140
141
|
}
|
|
142
|
+
else if (id.includes("#")) {
|
|
143
|
+
const { packageName: pkg, task } = (0, taskId_1.getPackageAndTask)(id);
|
|
144
|
+
return [
|
|
145
|
+
Object.assign(Object.assign({}, target), { id, cache: target.cache !== false, task: id, cwd: path_1.default.dirname(this.packageInfos[pkg].packageJsonPath), packageName: pkg, run: this.runTask(id, path_1.default.dirname(this.packageInfos[pkg].packageJsonPath), target.run) ||
|
|
146
|
+
this.maybeRunNpmTask(task, this.packageInfos[pkg]) }),
|
|
147
|
+
];
|
|
148
|
+
}
|
|
141
149
|
else {
|
|
142
150
|
const packages = Object.entries(this.packageInfos);
|
|
143
151
|
return packages.map(([pkg, _info]) => {
|
|
@@ -55,7 +55,7 @@ class WrappedTarget {
|
|
|
55
55
|
let hash = null;
|
|
56
56
|
let cacheHit = false;
|
|
57
57
|
const { target, root, config, cacheOptions } = this;
|
|
58
|
-
if (config.cache) {
|
|
58
|
+
if (config.cache && target.cache) {
|
|
59
59
|
hash = await (0, backfill_1.cacheHash)(target.id, target.cwd, root, cacheOptions, config.args);
|
|
60
60
|
if (hash && !config.resetCache) {
|
|
61
61
|
cacheHit = await (0, backfill_1.cacheFetch)(hash, target.id, target.cwd, cacheOptions);
|