@atedone/workspace-context 0.0.5 → 0.0.6
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 +1 -1
- package/lib/state.js +3 -3
- 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 task instrumentation.
|
|
5
|
+
The package initializes `.workspace-context/state.json` when loaded and exposes a workspace routine descriptor with preload modules for release task instrumentation.
|
package/lib/register.js
CHANGED
package/lib/state.js
CHANGED
|
@@ -6,10 +6,10 @@ 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:
|
|
9
|
+
const routineName = 'workspace-context:release';
|
|
10
10
|
const stateDirectoryName = '.workspace-context';
|
|
11
11
|
const stateFileName = 'state.json';
|
|
12
|
-
const taskFileName = 'workspace.
|
|
12
|
+
const taskFileName = 'workspace.release.js';
|
|
13
13
|
|
|
14
14
|
function readEnvironment() {
|
|
15
15
|
return Reflect.get(platform, 'env') || {};
|
|
@@ -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-
|
|
28
|
+
mode: 'runtime-release'
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
|