create-strata 2.2.54 → 2.2.55

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/dist/cli.js CHANGED
@@ -4473,9 +4473,9 @@ function renderPackageJson(projectName, options = {}) {
4473
4473
  "@getstrata/cli": "workspace:*",
4474
4474
  "@getstrata/core": "workspace:*"
4475
4475
  } : {
4476
- "@getstrata/bootstrap": "^2.2.54",
4477
- "@getstrata/cli": "^2.2.54",
4478
- "@getstrata/core": "^2.2.54"
4476
+ "@getstrata/bootstrap": "^2.2.55",
4477
+ "@getstrata/cli": "^2.2.55",
4478
+ "@getstrata/core": "^2.2.55"
4479
4479
  };
4480
4480
  coreDeps.eta = "^4.6.0";
4481
4481
  if (options.layers?.database === "mysql") {
@@ -12,9 +12,9 @@
12
12
  "check": "tsc --noEmit"
13
13
  },
14
14
  "dependencies": {
15
- "@getstrata/bootstrap": "^2.2.54",
16
- "@getstrata/cli": "^2.2.54",
17
- "@getstrata/core": "^2.2.54",
15
+ "@getstrata/bootstrap": "^2.2.55",
16
+ "@getstrata/cli": "^2.2.55",
17
+ "@getstrata/core": "^2.2.55",
18
18
  "eta": "^4.6.0"
19
19
  },
20
20
  "devDependencies": {
@@ -17,11 +17,18 @@ try {
17
17
  config.hostname ? { hostname: config.hostname } : undefined,
18
18
  );
19
19
  } catch (error) {
20
- try {
21
- await context.dispose();
22
- } finally {
23
- await closeDatabase();
20
+ const failures: unknown[] = [];
21
+ for (const cleanup of [() => context.dispose(), closeDatabase]) {
22
+ try {
23
+ await cleanup();
24
+ } catch (failure) {
25
+ failures.push(failure);
26
+ }
24
27
  }
28
+ if (failures.length)
29
+ throw new AggregateError([error, ...failures], "Application startup and cleanup failed.", {
30
+ cause: error,
31
+ });
25
32
  throw error;
26
33
  }
27
34
  console.log(`Listening on ${server.url.origin} (APP_URL ${config.appUrl})`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-strata",
3
- "version": "2.2.54",
3
+ "version": "2.2.55",
4
4
  "description": "Create a new Strata app. Interactive wizard; choose each layer; one database engine.",
5
5
  "type": "module",
6
6
  "license": "MIT",