@programinglive/dev-workflow-mcp-server 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.md +7 -0
- package/README.md +1 -1
- package/install.js +11 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.4](https://github.com/programinglive/dev-workflow-mcp-server/compare/v1.1.3...v1.1.4) (2025-10-25)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### đ Bug Fixes
|
|
9
|
+
|
|
10
|
+
* ensure install script uses project root for workflow state ([8b8b32f](https://github.com/programinglive/dev-workflow-mcp-server/commit/8b8b32f5c436b256ec1edb05a406405a5c2455c1))
|
|
11
|
+
|
|
5
12
|
### [1.1.3](https://github.com/programinglive/dev-workflow-mcp-server/compare/v1.1.2...v1.1.3) (2025-10-25)
|
|
6
13
|
|
|
7
14
|
|
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ Each project gets its own isolated workflow state file.
|
|
|
24
24
|
npm install @programinglive/dev-workflow-mcp-server
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
This will automatically create a `.workflow-state.json` file in
|
|
27
|
+
This will automatically create a `.workflow-state.json` file in the **project where you ran `npm install`** (using npm's `INIT_CWD`), keeping workflow history separate per project. If you're installing the package itself (inside `node_modules`), the script skips creation so it never pollutes the shared package directory.
|
|
28
28
|
|
|
29
29
|
### Option 2: Install from Source
|
|
30
30
|
|
package/install.js
CHANGED
|
@@ -14,8 +14,17 @@ const __dirname = path.dirname(__filename);
|
|
|
14
14
|
|
|
15
15
|
async function install() {
|
|
16
16
|
try {
|
|
17
|
-
//
|
|
18
|
-
|
|
17
|
+
// npm sets INIT_CWD to the directory where `npm install` was originally invoked.
|
|
18
|
+
// Fallback to process.cwd() if it's not present (e.g., older npm versions).
|
|
19
|
+
const projectRoot = process.env.INIT_CWD || process.cwd();
|
|
20
|
+
|
|
21
|
+
// If INIT_CWD points inside node_modules, this script is being executed
|
|
22
|
+
// while installing the package itself. In that case, skip creating a state file.
|
|
23
|
+
if (projectRoot.includes(`node_modules${path.sep}`)) {
|
|
24
|
+
console.log('âšī¸ Skipping workflow state creation inside node_modules.');
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
|
|
19
28
|
const stateFile = path.join(projectRoot, '.workflow-state.json');
|
|
20
29
|
|
|
21
30
|
// Check if state file already exists
|