@ldsg/create-app 0.3.31 → 0.3.32

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/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './utils';
1
+ export * from "./utils";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
- import { Resource } from '@ldsg/resource';
2
- import { ResourceRecord } from '@ldsg/types';
3
- import { Express } from 'express';
1
+ import { Resource } from "@ldsg/resource";
2
+ import { ResourceRecord } from "@ldsg/types";
3
+ import { Express } from "express";
4
4
  interface CreateAppParams {
5
5
  resources?: Resource[];
6
6
  resourceRecords?: ResourceRecord[];
@@ -11,17 +11,17 @@ const createApp = async (params) => {
11
11
  }
12
12
  else {
13
13
  if (!resourceRecords) {
14
- throw new Error('invalid manifest resources');
14
+ throw new Error("invalid manifest resources");
15
15
  }
16
16
  const instantiateResourcesRequiredByAppRes = (0, resource_instantiator_1.instantiateResourcesRequiredByApp)({
17
- resourceRecords
17
+ resourceRecords,
18
18
  });
19
19
  resources = instantiateResourcesRequiredByAppRes.resources;
20
20
  }
21
21
  await Promise.all(resources.map((resource) => resource.init()));
22
22
  const applicationResource = resources.find((value) => value.kind === application_1.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS.kind);
23
23
  if (!applicationResource) {
24
- throw new Error('invalid application resource');
24
+ throw new Error("invalid application resource");
25
25
  }
26
26
  const res = applicationResource.createExpressApp();
27
27
  return res;
@@ -1,2 +1,2 @@
1
- export * from './create-app';
1
+ export * from "./create-app";
2
2
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldsg/create-app",
3
- "version": "0.3.31",
3
+ "version": "0.3.32",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "wanxger",
@@ -12,8 +12,8 @@
12
12
  "dependencies": {
13
13
  "express": "^4.18.2",
14
14
  "express-async-handler": "^1.2.0",
15
- "@ldsg/resource-instantiator": "0.3.31",
16
- "@ldsg/resource": "0.3.31"
15
+ "@ldsg/resource-instantiator": "0.3.32",
16
+ "@ldsg/resource": "0.3.32"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/express": "^4.17.17",
@@ -21,19 +21,23 @@
21
21
  "@types/node": "^20.13.0",
22
22
  "@types/supertest": "^6.0.0",
23
23
  "jest": "^29.5.0",
24
+ "oxfmt": "latest",
25
+ "oxlint": "latest",
24
26
  "supertest": "^6.3.4",
25
27
  "ts-jest": "^29.1.5",
26
28
  "ts-node": "^10.9.2",
27
29
  "tslib": "^2.6.2",
28
30
  "typescript": "^5.8.3",
29
- "@ldsg/types": "0.3.31",
30
- "@ldsg/application": "0.3.31"
31
+ "@ldsg/application": "0.3.32",
32
+ "@ldsg/types": "0.3.32"
31
33
  },
32
34
  "publishConfig": {
33
35
  "access": "public"
34
36
  },
35
37
  "scripts": {
36
38
  "build": "tsc --project tsconfig.build.json",
37
- "clean": "rm -rf dist"
39
+ "clean": "rm -rf dist",
40
+ "format": "oxfmt --write src/",
41
+ "lint": "oxlint src/"
38
42
  }
39
43
  }