@codedrifters/configulator 0.0.118 → 0.0.120
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/lib/index.d.mts +1 -5
- package/lib/index.d.ts +1 -5
- package/lib/index.js +8 -9
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +8 -9
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -757,7 +757,7 @@ var VERSION = {
|
|
|
757
757
|
*
|
|
758
758
|
* CLI and lib are versioned separately, so this is the CLI version.
|
|
759
759
|
*/
|
|
760
|
-
AWS_CDK_CLI_VERSION: "2.
|
|
760
|
+
AWS_CDK_CLI_VERSION: "2.1109.0",
|
|
761
761
|
/**
|
|
762
762
|
* CDK Version to use for construct projects.
|
|
763
763
|
*
|
|
@@ -1178,6 +1178,7 @@ var VSCodeConfig = class extends Component8 {
|
|
|
1178
1178
|
};
|
|
1179
1179
|
|
|
1180
1180
|
// src/projects/monorepo-project.ts
|
|
1181
|
+
var postInstallDependenciesMap = /* @__PURE__ */ new WeakMap();
|
|
1181
1182
|
var MonorepoProject = class extends TypeScriptAppProject {
|
|
1182
1183
|
constructor(userOptions) {
|
|
1183
1184
|
const buildWorkflowOptions = userOptions.turboOptions?.remoteCacheOptions ? TurboRepo.buildWorkflowOptions(
|
|
@@ -1349,10 +1350,7 @@ var MonorepoProject = class extends TypeScriptAppProject {
|
|
|
1349
1350
|
requiredOptions
|
|
1350
1351
|
);
|
|
1351
1352
|
super({ ...options });
|
|
1352
|
-
|
|
1353
|
-
* List of functions to call after dependencies have been installed.
|
|
1354
|
-
*/
|
|
1355
|
-
this.postInstallDependencies = new Array();
|
|
1353
|
+
postInstallDependenciesMap.set(this, []);
|
|
1356
1354
|
this.pnpmVersion = options.pnpmVersion;
|
|
1357
1355
|
new VSCodeConfig(this);
|
|
1358
1356
|
new PnpmWorkspace(this, options.pnpmOptions?.pnpmWorkspaceOptions);
|
|
@@ -1411,22 +1409,23 @@ var MonorepoProject = class extends TypeScriptAppProject {
|
|
|
1411
1409
|
* This is used to resolve dependency versions from `*` to a concrete version constraint.
|
|
1412
1410
|
*/
|
|
1413
1411
|
requestInstallDependencies(resolver) {
|
|
1414
|
-
this.
|
|
1412
|
+
postInstallDependenciesMap.get(this).push(resolver.resolveDepsAndWritePackageJson);
|
|
1415
1413
|
}
|
|
1416
1414
|
/**
|
|
1417
1415
|
* Hooks into the install dependencies cycle
|
|
1418
1416
|
*/
|
|
1419
1417
|
postSynthesize() {
|
|
1420
|
-
|
|
1418
|
+
const postInstallDependencies = postInstallDependenciesMap.get(this);
|
|
1419
|
+
if (postInstallDependencies?.length) {
|
|
1421
1420
|
const nodePkg = this.package;
|
|
1422
1421
|
nodePkg.installDependencies();
|
|
1423
|
-
const completedRequests =
|
|
1422
|
+
const completedRequests = postInstallDependencies.map(
|
|
1424
1423
|
(request) => request()
|
|
1425
1424
|
);
|
|
1426
1425
|
if (completedRequests.some(Boolean)) {
|
|
1427
1426
|
nodePkg.installDependencies();
|
|
1428
1427
|
}
|
|
1429
|
-
this
|
|
1428
|
+
postInstallDependenciesMap.set(this, []);
|
|
1430
1429
|
}
|
|
1431
1430
|
}
|
|
1432
1431
|
};
|