@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 +7 -0
- package/README.md +1 -1
- package/dist/services/document-handler-runtime/factory/document-handler-runtime-service-factory.d.ts +11 -0
- package/dist/services/document-handler-runtime/factory/document-handler-runtime-service-factory.js +23 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
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
package/dist/services/document-handler-runtime/factory/document-handler-runtime-service-factory.d.ts
CHANGED
|
@@ -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
|
}
|
package/dist/services/document-handler-runtime/factory/document-handler-runtime-service-factory.js
CHANGED
|
@@ -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];
|
package/oclif.manifest.json
CHANGED