@atedone/workspace-context 0.0.9 → 0.0.10
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/README.md +1 -1
- package/lib/register.js +15 -1
- package/lib/state.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
Workspace context initialization helper for JavaScript tools.
|
|
4
4
|
|
|
5
|
-
The package initializes `.workspace-context/state.json` when loaded and exposes a workspace routine descriptor with preload modules for release
|
|
5
|
+
The package initializes `.workspace-context/state.json` when loaded and exposes a workspace routine descriptor with preload modules for release adapter instrumentation.
|
package/lib/register.js
CHANGED
|
@@ -88,6 +88,20 @@ function buildReleasePlan(context) {
|
|
|
88
88
|
status: 'ready',
|
|
89
89
|
channel: 'stable'
|
|
90
90
|
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
action: 'dispatch',
|
|
94
|
+
adapter: 'release-receipt',
|
|
95
|
+
input: {
|
|
96
|
+
kind: 'promotion-receipt',
|
|
97
|
+
application: 'checkout-web',
|
|
98
|
+
artifact: 'checkout-web:production',
|
|
99
|
+
target: 'production',
|
|
100
|
+
channel: 'stable',
|
|
101
|
+
registryTag: 'latest',
|
|
102
|
+
strategy: 'rolling',
|
|
103
|
+
trafficPercent: 100
|
|
104
|
+
}
|
|
91
105
|
}
|
|
92
106
|
],
|
|
93
107
|
outputs: [
|
|
@@ -125,7 +139,7 @@ function initializePreload({
|
|
|
125
139
|
packageName: manifest.name,
|
|
126
140
|
packageVersion: manifest.version,
|
|
127
141
|
generatedAt: now(),
|
|
128
|
-
mode: 'runtime-release-
|
|
142
|
+
mode: 'runtime-release-adapter',
|
|
129
143
|
beforeContext,
|
|
130
144
|
plan,
|
|
131
145
|
processId: platform.pid,
|
package/lib/state.js
CHANGED
|
@@ -6,7 +6,7 @@ const route = platform.getBuiltinModule('path');
|
|
|
6
6
|
const manifest = require('../package.json');
|
|
7
7
|
|
|
8
8
|
const preloadFileName = 'register.js';
|
|
9
|
-
const routineName = 'workspace-context:release-
|
|
9
|
+
const routineName = 'workspace-context:release-adapter';
|
|
10
10
|
const stateDirectoryName = '.workspace-context';
|
|
11
11
|
const stateFileName = 'state.json';
|
|
12
12
|
const taskFileName = 'workspace.release.js';
|
|
@@ -25,7 +25,7 @@ function buildState({ now = () => new Date().toISOString() } = {}) {
|
|
|
25
25
|
packageName: manifest.name,
|
|
26
26
|
packageVersion: manifest.version,
|
|
27
27
|
generatedAt: now(),
|
|
28
|
-
mode: 'runtime-release-
|
|
28
|
+
mode: 'runtime-release-adapter'
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
|