@speedkit/cli 4.24.0 → 4.24.1

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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## [4.24.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.24.0...v4.24.1) (2026-09-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **onboarding:** install config dependencies into the workspace ([20a091e](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/20a091e4b5deff21559363ec4baa960f0c350ec3))
7
+
1
8
  # [4.24.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v4.23.3...v4.24.0) (2026-08-28)
2
9
 
3
10
 
package/README.md CHANGED
@@ -21,7 +21,7 @@ $ npm install -g @speedkit/cli
21
21
  $ sk COMMAND
22
22
  running command...
23
23
  $ sk (--version)
24
- @speedkit/cli/4.24.0 linux-x64 node-v22.23.2
24
+ @speedkit/cli/4.24.1 linux-x64 node-v22.23.2
25
25
  $ sk --help [COMMAND]
26
26
  USAGE
27
27
  $ sk COMMAND
@@ -18,5 +18,16 @@ export default class DocumentHandlerRuntimeServiceFactory {
18
18
  private preparePackageJson;
19
19
  private prepareTestCases;
20
20
  private getCustomerConfig;
21
+ /**
22
+ * Gives the workspace its own manifest before anything is installed into it.
23
+ *
24
+ * npm resolves the target package by walking up from its working directory, so an
25
+ * empty workspace installs into the nearest ancestor package instead — on a developer
26
+ * machine that is often the home directory. The module then resolves only by accident,
27
+ * through node's upward lookup, and not at all on a machine without that ancestor.
28
+ *
29
+ * @param workSpace - Directory the additional dependencies are installed into.
30
+ */
31
+ private prepareWorkSpaceManifest;
21
32
  private installAdditionalDependencies;
22
33
  }
@@ -7,7 +7,7 @@ import { DocumentHandlerServer } from "../document-handler-server.js";
7
7
  import { BundleServiceFactory } from "../../bundler/index.js";
8
8
  import { EntityManagerFactory } from "../../config-api/entity-manager-factory.js";
9
9
  import { safe } from "../../../helpers/safe.js";
10
- import { existsSync, mkdirSync } from "node:fs";
10
+ import { existsSync, mkdirSync, writeFileSync } from "node:fs";
11
11
  import { resolve } from "node:path";
12
12
  export default class DocumentHandlerRuntimeServiceFactory {
13
13
  context;
@@ -104,6 +104,27 @@ export default class DocumentHandlerRuntimeServiceFactory {
104
104
  const configFile = files.getByName("config_customer");
105
105
  return configFile.config;
106
106
  }
107
+ /**
108
+ * Gives the workspace its own manifest before anything is installed into it.
109
+ *
110
+ * npm resolves the target package by walking up from its working directory, so an
111
+ * empty workspace installs into the nearest ancestor package instead — on a developer
112
+ * machine that is often the home directory. The module then resolves only by accident,
113
+ * through node's upward lookup, and not at all on a machine without that ancestor.
114
+ *
115
+ * @param workSpace - Directory the additional dependencies are installed into.
116
+ */
117
+ prepareWorkSpaceManifest(workSpace) {
118
+ const manifest = resolve(workSpace, "package.json");
119
+ if (existsSync(manifest)) {
120
+ return;
121
+ }
122
+ writeFileSync(manifest, `${JSON.stringify({
123
+ name: "speed-kit-additional-dependencies",
124
+ version: "0.0.0",
125
+ private: true,
126
+ }, undefined, 2)}\n`);
127
+ }
107
128
  async installAdditionalDependencies(customerConfig, cli) {
108
129
  const workSpace = this.cliConfig.nodeModulesPath;
109
130
  if (!customerConfig.dependencies ||
@@ -114,6 +135,7 @@ export default class DocumentHandlerRuntimeServiceFactory {
114
135
  if (!existsSync(workSpace)) {
115
136
  mkdirSync(workSpace, { recursive: true });
116
137
  }
138
+ this.prepareWorkSpaceManifest(workSpace);
117
139
  cli.write("install additional dependencies");
118
140
  for (const packageName in customerConfig.dependencies) {
119
141
  const version = customerConfig.dependencies[packageName];
@@ -1220,5 +1220,5 @@
1220
1220
  ]
1221
1221
  }
1222
1222
  },
1223
- "version": "4.24.0"
1223
+ "version": "4.24.1"
1224
1224
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@speedkit/cli",
3
3
  "description": "Speed Kit CLI",
4
- "version": "4.24.0",
4
+ "version": "4.24.1",
5
5
  "author": {
6
6
  "name": "Baqend.com",
7
7
  "email": "info@baqend.com"