@opencrvs/toolkit 2.2.0-rc.045257f → 2.2.0-rc.25c3c81
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/build.sh +15 -2
- package/dist/application-config/index.js +16 -5
- package/dist/authentication/index.d.ts +1 -1
- package/dist/authentication/index.js +4 -8
- package/dist/cli.js +2197 -544
- package/dist/commons/api/router.d.ts +17 -4
- package/dist/commons/application-config/index.d.ts +1 -1
- package/dist/commons/conditionals/conditionals.d.ts +4 -4
- package/dist/commons/conditionals/validate.d.ts +1 -1
- package/dist/commons/events/ActionStatus.d.ts +2 -2
- package/dist/commons/events/ActionType.d.ts +2 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +3 -0
- package/dist/commons/events/Draft.d.ts +34 -1
- package/dist/commons/events/EventConfig.d.ts +446 -0
- package/dist/commons/events/EventDocument.d.ts +2 -0
- package/dist/commons/events/EventIndex.d.ts +1 -0
- package/dist/commons/events/EventInput.d.ts +1 -0
- package/dist/commons/events/EventMetadata.d.ts +1 -0
- package/dist/commons/events/FieldTypeMapping.d.ts +19 -19
- package/dist/commons/events/PlainDate.d.ts +5 -0
- package/dist/commons/events/defineConfig.d.ts +7 -2
- package/dist/commons/events/event.d.ts +4 -1
- package/dist/commons/events/field.d.ts +5 -0
- package/dist/commons/events/locations.d.ts +1 -1
- package/dist/commons/events/scopes.d.ts +2 -1
- package/dist/commons/events/state/index.d.ts +1 -0
- package/dist/commons/events/test.utils.d.ts +59 -6
- package/dist/commons/events/utils.d.ts +28 -2
- package/dist/commons/users/Role.d.ts +23 -0
- package/dist/commons/users/User.d.ts +263 -0
- package/dist/commons/users/authentication.d.ts +67 -0
- package/dist/commons/users/index.d.ts +5 -0
- package/dist/commons/users/roleValidations.d.ts +15 -0
- package/dist/commons/users/scopes.d.ts +1402 -0
- package/dist/commons/users/userReferences.d.ts +176 -0
- package/dist/conditionals/index.js +3 -3
- package/dist/configurator/index.d.ts +24 -0
- package/dist/configurator/index.d.ts.map +1 -0
- package/dist/configurator/index.js +161 -0
- package/dist/configurator/layout.d.ts +28 -0
- package/dist/configurator/layout.d.ts.map +1 -0
- package/dist/configurator/layout.js +78 -0
- package/dist/configurator/paths.d.ts +13 -0
- package/dist/configurator/paths.d.ts.map +1 -0
- package/dist/configurator/paths.js +48 -0
- package/dist/configurator/server/environments.d.ts +20 -0
- package/dist/configurator/server/environments.d.ts.map +1 -0
- package/dist/configurator/server/environments.js +143 -0
- package/dist/configurator/server/files.d.ts +11 -0
- package/dist/configurator/server/files.d.ts.map +1 -0
- package/dist/configurator/server/files.js +67 -0
- package/dist/configurator/server/github.d.ts +56 -0
- package/dist/configurator/server/github.d.ts.map +1 -0
- package/dist/configurator/server/github.js +239 -0
- package/dist/configurator/server/plugin.d.ts +39 -0
- package/dist/configurator/server/plugin.d.ts.map +1 -0
- package/dist/configurator/server/plugin.js +298 -0
- package/dist/configurator/server/seal.d.ts +2 -0
- package/dist/configurator/server/seal.d.ts.map +1 -0
- package/dist/configurator/server/seal.js +36 -0
- package/dist/configurator/server/sshKeys.d.ts +5 -0
- package/dist/configurator/server/sshKeys.d.ts.map +1 -0
- package/dist/configurator/server/sshKeys.js +28 -0
- package/dist/configurator/server/start.d.ts +12 -0
- package/dist/configurator/server/start.d.ts.map +1 -0
- package/dist/configurator/server/start.js +91 -0
- package/dist/configurator/testing.d.ts +11 -0
- package/dist/configurator/testing.d.ts.map +1 -0
- package/dist/configurator/testing.js +74 -0
- package/dist/configurator/ui/bindings/bindings.d.ts +35 -0
- package/dist/configurator/ui/bindings/bindings.d.ts.map +1 -0
- package/dist/configurator/ui/bindings/bindings.js +5 -0
- package/dist/configurator/ui/bindings/parsers.d.ts +7 -0
- package/dist/configurator/ui/bindings/parsers.d.ts.map +1 -0
- package/dist/configurator/ui/bindings/parsers.js +85 -0
- package/dist/configurator/ui/form/users.d.ts +11 -0
- package/dist/configurator/ui/form/users.d.ts.map +1 -0
- package/dist/configurator/ui/form/users.js +33 -0
- package/dist/configurator/ui/plan/dependencyHosts.d.ts +2 -0
- package/dist/configurator/ui/plan/dependencyHosts.d.ts.map +1 -0
- package/dist/configurator/ui/plan/dependencyHosts.js +36 -0
- package/dist/configurator/ui/plan/templateValues.d.ts +11 -0
- package/dist/configurator/ui/plan/templateValues.d.ts.map +1 -0
- package/dist/configurator/ui/plan/templateValues.js +70 -0
- package/dist/configurator/workflows.d.ts +53 -0
- package/dist/configurator/workflows.d.ts.map +1 -0
- package/dist/configurator/workflows.js +161 -0
- package/dist/configurator-assets/forms/bindings.yml +263 -0
- package/dist/configurator-assets/templates/README.md +18 -0
- package/dist/configurator-assets/templates/charts-values/dependencies/values.override.yaml +4 -0
- package/dist/configurator-assets/templates/charts-values/dependencies/values.yaml +99 -0
- package/dist/configurator-assets/templates/charts-values/opencrvs-services/values.override.yaml +4 -0
- package/dist/configurator-assets/templates/charts-values/opencrvs-services/values.yaml +83 -0
- package/dist/configurator-assets/templates/charts-values/opentelemetry/values.yaml +102 -0
- package/dist/configurator-assets/templates/charts-values/traefik/values.override.yaml +4 -0
- package/dist/configurator-assets/templates/charts-values/traefik/values.yaml +130 -0
- package/dist/configurator-assets/templates/inventory/inventory.template.yml +98 -0
- package/dist/configurator-assets/ui/apple-touch-icon.png +0 -0
- package/dist/configurator-assets/ui/assets/index-Bf3eC7uO.js +169 -0
- package/dist/configurator-assets/ui/assets/index-CaqYFJUk.css +6 -0
- package/dist/configurator-assets/ui/assets/opencrvs-logo-sIjz08HT.svg +1 -0
- package/dist/configurator-assets/ui/assets/poppins-400-BwTUGeWf.woff2 +0 -0
- package/dist/configurator-assets/ui/assets/poppins-500-CWICHMj6.woff2 +0 -0
- package/dist/configurator-assets/ui/assets/poppins-600-DJVo7c07.woff2 +0 -0
- package/dist/configurator-assets/ui/assets/poppins-700-g9MkRaG0.woff2 +0 -0
- package/dist/configurator-assets/ui/favicon-32x32.png +0 -0
- package/dist/configurator-assets/ui/index.html +25 -0
- package/dist/environment/custom-types.d.ts +1 -0
- package/dist/environment/custom-types.d.ts.map +1 -1
- package/dist/environment/derived-variables.d.ts +8 -0
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/derived-variables.js +9 -0
- package/dist/environment/questions.d.ts +42 -9
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/questions.js +70 -47
- package/dist/environment/registry.d.ts +15 -0
- package/dist/environment/registry.d.ts.map +1 -0
- package/dist/environment/registry.js +112 -0
- package/dist/environment/setup-environment.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +104 -23
- package/dist/events/index.js +635 -149
- package/dist/migrations/add-notify-config.d.ts +40 -0
- package/dist/migrations/add-notify-config.d.ts.map +1 -0
- package/dist/migrations/add-notify-config.js +249 -0
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +602 -143
- package/dist/migrations/move-declaration-to-declare-action.d.ts.map +1 -1
- package/dist/migrations/move-declaration-to-declare-action.js +27 -144
- package/dist/migrations/read-declaration-through-helper.d.ts.map +1 -1
- package/dist/migrations/read-declaration-through-helper.js +3 -61
- package/dist/migrations/resolve-versioned-event-config.d.ts +56 -0
- package/dist/migrations/resolve-versioned-event-config.d.ts.map +1 -0
- package/dist/migrations/resolve-versioned-event-config.js +353 -0
- package/dist/migrations/utils.d.ts +61 -0
- package/dist/migrations/utils.d.ts.map +1 -0
- package/dist/migrations/utils.js +218 -0
- package/dist/notification/index.js +616 -66
- package/dist/roles/index.d.ts +2 -0
- package/dist/roles/index.d.ts.map +1 -0
- package/dist/roles/index.js +730 -0
- package/dist/scopes/index.d.ts +0 -10
- package/dist/scopes/index.js +3 -7
- package/dist/templates/charts-values/dependencies/values.yaml +4 -1
- package/dist/templates/charts-values/opencrvs-services/values.yaml +2 -2
- package/dist/verify/endpoints.d.ts +11 -0
- package/dist/verify/endpoints.d.ts.map +1 -1
- package/dist/verify/endpoints.js +21 -27
- package/opencrvs-toolkit-2.2.0-rc.25c3c81.tgz +0 -0
- package/package.json +16 -3
- package/tsconfig.build.json +11 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.json +15 -6
- package/dist/environment/dockerhub.d.ts +0 -15
- package/dist/environment/dockerhub.d.ts.map +0 -1
- package/dist/environment/dockerhub.js +0 -104
- package/opencrvs-toolkit-2.2.0-rc.045257f.tgz +0 -0
package/dist/scopes/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
|
-
import { Role } from './roles';
|
|
3
2
|
export declare const JurisdictionFilter: z.ZodEnum<{
|
|
4
3
|
administrativeArea: "administrativeArea";
|
|
5
4
|
all: "all";
|
|
@@ -1399,14 +1398,5 @@ export declare function canUserNotifyEvent(userScopes: EncodedScope[], eventType
|
|
|
1399
1398
|
* @returns Array of scopes in string format, encoded for use in JWT tokens.
|
|
1400
1399
|
*/
|
|
1401
1400
|
export declare function defineScopes(scopes: Scope[]): (string & z.$brand<"EncodedScope">)[];
|
|
1402
|
-
/**
|
|
1403
|
-
* Helper for defining user roles. Should be used in country config.
|
|
1404
|
-
*
|
|
1405
|
-
* @param roles Array of roles in object format.
|
|
1406
|
-
*/
|
|
1407
|
-
export declare function defineRoles(roles: Role[]): {
|
|
1408
|
-
id: string;
|
|
1409
|
-
scopes: (string & z.$brand<"EncodedScope">)[];
|
|
1410
|
-
}[];
|
|
1411
1401
|
export {};
|
|
1412
1402
|
//# sourceMappingURL=scopes.d.ts.map
|
package/dist/scopes/index.js
CHANGED
|
@@ -47,7 +47,6 @@ __export(scopes_exports, {
|
|
|
47
47
|
canUserCreateEvent: () => canUserCreateEvent,
|
|
48
48
|
canUserNotifyEvent: () => canUserNotifyEvent,
|
|
49
49
|
decodeScope: () => decodeScope,
|
|
50
|
-
defineRoles: () => defineRoles,
|
|
51
50
|
defineScopes: () => defineScopes,
|
|
52
51
|
encodeScope: () => encodeScope,
|
|
53
52
|
getAcceptedScopesByType: () => getAcceptedScopesByType,
|
|
@@ -64,7 +63,7 @@ __export(scopes_exports, {
|
|
|
64
63
|
module.exports = __toCommonJS(scopes_exports);
|
|
65
64
|
var z9 = __toESM(require("zod/v4"));
|
|
66
65
|
|
|
67
|
-
// ../commons/src/scopes.ts
|
|
66
|
+
// ../commons/src/users/scopes.ts
|
|
68
67
|
var z8 = __toESM(require("zod/v4"));
|
|
69
68
|
var qs = __toESM(require("qs"));
|
|
70
69
|
|
|
@@ -73,7 +72,7 @@ var import_uuid = require("uuid");
|
|
|
73
72
|
var z = __toESM(require("zod/v4"));
|
|
74
73
|
var UUID = z.uuid().brand("UUID");
|
|
75
74
|
|
|
76
|
-
// ../commons/src/authentication.ts
|
|
75
|
+
// ../commons/src/users/authentication.ts
|
|
77
76
|
var import_jwt_decode = __toESM(require("jwt-decode"));
|
|
78
77
|
var z2 = __toESM(require("zod/v4"));
|
|
79
78
|
var TokenUserType = z2.enum(["user", "system"]);
|
|
@@ -362,7 +361,7 @@ var EventStatus = z7.enum([
|
|
|
362
361
|
"ARCHIVED"
|
|
363
362
|
]);
|
|
364
363
|
|
|
365
|
-
// ../commons/src/scopes.ts
|
|
364
|
+
// ../commons/src/users/scopes.ts
|
|
366
365
|
var JurisdictionFilter = z8.enum(["administrativeArea", "location", "all"]).describe(
|
|
367
366
|
"Filters based on user jurisdiction relative to their office location in hierarchy."
|
|
368
367
|
);
|
|
@@ -737,9 +736,6 @@ function canUserNotifyEvent(userScopes, eventType) {
|
|
|
737
736
|
function defineScopes(scopes) {
|
|
738
737
|
return scopes.map((scope) => Scope2.parse(scope)).map(encodeScope);
|
|
739
738
|
}
|
|
740
|
-
function defineRoles(roles) {
|
|
741
|
-
return roles;
|
|
742
|
-
}
|
|
743
739
|
|
|
744
740
|
// src/scopes/index.ts
|
|
745
741
|
z9.globalRegistry.clear();
|
|
@@ -25,8 +25,11 @@ storage_type: host_path
|
|
|
25
25
|
node_selector:
|
|
26
26
|
role: data1
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
rustfs:
|
|
29
29
|
use_default_credentials: false
|
|
30
|
+
host_data_path: {{rustfs_host_data_path}}
|
|
31
|
+
pvc:
|
|
32
|
+
name: {{rustfs_pvc_name}}
|
|
30
33
|
{{#if restore_enabled}}
|
|
31
34
|
restore:
|
|
32
35
|
type: {{restore_type}}
|
|
@@ -40,7 +40,7 @@ elasticsearch:
|
|
|
40
40
|
host: elasticsearch.opencrvs-deps-{{env}}.svc.cluster.local
|
|
41
41
|
|
|
42
42
|
s3:
|
|
43
|
-
host:
|
|
43
|
+
host: rustfs-0.rustfs.opencrvs-deps-{{env}}.svc.cluster.local
|
|
44
44
|
|
|
45
45
|
redis:
|
|
46
46
|
auth_mode: use_secret
|
|
@@ -53,7 +53,7 @@ postgres:
|
|
|
53
53
|
platform:
|
|
54
54
|
imagePullSecrets:
|
|
55
55
|
# Default value for credentials created while yarn environment:init
|
|
56
|
-
- name:
|
|
56
|
+
- name: registry-credentials
|
|
57
57
|
|
|
58
58
|
auth:
|
|
59
59
|
env:
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
+
interface EventTriggerConfig {
|
|
2
|
+
id: string;
|
|
3
|
+
actions: string[];
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Fetches the event configuration so the event action triggers can be checked
|
|
7
|
+
* against the real event ids and action types. Returns `null` if the endpoint
|
|
8
|
+
* is unreachable or does not return the expected shape.
|
|
9
|
+
*/
|
|
10
|
+
export declare function fetchEventConfigs(baseUrl: string): Promise<EventTriggerConfig[] | null>;
|
|
1
11
|
export declare function runVerifyEndpoints(target?: string): Promise<void>;
|
|
12
|
+
export {};
|
|
2
13
|
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/verify/endpoints.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/verify/endpoints.ts"],"names":[],"mappings":"AAuKA,UAAU,kBAAkB;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB;AA4BD;;;;GAIG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,kBAAkB,EAAE,GAAG,IAAI,CAAC,CActC;AAmPD,wBAAsB,kBAAkB,CACtC,MAAM,GAAE,MAA2B,GAClC,OAAO,CAAC,IAAI,CAAC,CAsIf"}
|
package/dist/verify/endpoints.js
CHANGED
|
@@ -42,6 +42,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
+
exports.fetchEventConfigs = fetchEventConfigs;
|
|
45
46
|
exports.runVerifyEndpoints = runVerifyEndpoints;
|
|
46
47
|
/*
|
|
47
48
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -178,26 +179,24 @@ function requestStatus(url, method) {
|
|
|
178
179
|
}
|
|
179
180
|
});
|
|
180
181
|
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
: [];
|
|
200
|
-
return { id: record.id, actions };
|
|
182
|
+
/** One version of an event. Only its action types are needed here. */
|
|
183
|
+
const ServedEventConfigVersion = z.object({
|
|
184
|
+
actions: z.array(z.object({ type: z.string() }))
|
|
185
|
+
});
|
|
186
|
+
/**
|
|
187
|
+
* One event from `GET /config/events`. It comes in two shapes:
|
|
188
|
+
* - `{ id, versions: [{ actions }] }` from toolkit 2.2 and later
|
|
189
|
+
* - `{ id, actions }` from older toolkits, which have no versions
|
|
190
|
+
*/
|
|
191
|
+
const ServedEventConfig = z.union([
|
|
192
|
+
z.object({ id: z.string(), versions: z.array(ServedEventConfigVersion) }),
|
|
193
|
+
ServedEventConfigVersion.extend({ id: z.string() })
|
|
194
|
+
]);
|
|
195
|
+
function toEventTriggerConfig(config) {
|
|
196
|
+
// A trigger may use an action from any version, so collect them all
|
|
197
|
+
const versions = 'versions' in config ? config.versions : [config];
|
|
198
|
+
const actions = versions.flatMap((version) => version.actions.map(({ type }) => type));
|
|
199
|
+
return { id: config.id, actions: Array.from(new Set(actions)) };
|
|
201
200
|
}
|
|
202
201
|
/**
|
|
203
202
|
* Fetches the event configuration so the event action triggers can be checked
|
|
@@ -213,13 +212,8 @@ function fetchEventConfigs(baseUrl) {
|
|
|
213
212
|
if (!response.ok) {
|
|
214
213
|
return null;
|
|
215
214
|
}
|
|
216
|
-
const
|
|
217
|
-
|
|
218
|
-
return null;
|
|
219
|
-
}
|
|
220
|
-
return body
|
|
221
|
-
.map(toEventTriggerConfig)
|
|
222
|
-
.filter((config) => config !== null);
|
|
215
|
+
const parsed = z.array(ServedEventConfig).safeParse(yield response.json());
|
|
216
|
+
return parsed.success ? parsed.data.map(toEventTriggerConfig) : null;
|
|
223
217
|
}
|
|
224
218
|
catch (_a) {
|
|
225
219
|
return null;
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencrvs/toolkit",
|
|
3
|
-
"version": "2.2.0-rc.
|
|
3
|
+
"version": "2.2.0-rc.25c3c81",
|
|
4
4
|
"description": "OpenCRVS toolkit for building country configurations",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"bin": {
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"./events": "./dist/events/index.js",
|
|
14
14
|
"./telemetry": "./dist/telemetry/index.js",
|
|
15
15
|
"./scopes": "./dist/scopes/index.js",
|
|
16
|
+
"./roles": "./dist/roles/index.js",
|
|
16
17
|
"./authentication": "./dist/authentication/index.js",
|
|
17
18
|
"./events/deduplication": "./dist/events/deduplication.js",
|
|
18
19
|
"./conditionals": "./dist/conditionals/index.js",
|
|
@@ -22,7 +23,10 @@
|
|
|
22
23
|
"build": "./build.sh",
|
|
23
24
|
"build:all": "pnpm -w exec lerna run build --include-dependencies --scope @opencrvs/toolkit",
|
|
24
25
|
"test": "vitest run",
|
|
25
|
-
"test:
|
|
26
|
+
"test:watch": "vitest",
|
|
27
|
+
"test:compilation": "tsc --noEmit && tsc --noEmit -p src/configurator/tsconfig.json",
|
|
28
|
+
"configurator:bindings": "node --experimental-strip-types --disable-warning=ExperimentalWarning --disable-warning=MODULE_TYPELESS_PACKAGE_JSON src/configurator/scripts/check-bindings.ts --write",
|
|
29
|
+
"configurator:bindings:check": "node --experimental-strip-types --disable-warning=ExperimentalWarning --disable-warning=MODULE_TYPELESS_PACKAGE_JSON src/configurator/scripts/check-bindings.ts"
|
|
26
30
|
},
|
|
27
31
|
"repository": {
|
|
28
32
|
"type": "git",
|
|
@@ -52,6 +56,7 @@
|
|
|
52
56
|
"superjson": "1.9.0-0",
|
|
53
57
|
"ts-morph": "^27.0.2",
|
|
54
58
|
"uuid": "^9.0.0",
|
|
59
|
+
"yaml": "^2.7.1",
|
|
55
60
|
"zod": "^4.6.5",
|
|
56
61
|
"zod-openapi": "^5.4.6"
|
|
57
62
|
},
|
|
@@ -62,13 +67,21 @@
|
|
|
62
67
|
"@types/libsodium-wrappers": "^0.7.10",
|
|
63
68
|
"@types/object-hash": "^3.0.6",
|
|
64
69
|
"@types/prompts": "^2.4.9",
|
|
70
|
+
"@types/react": "18.3.1",
|
|
71
|
+
"@types/react-dom": "18.3.0",
|
|
65
72
|
"@types/ssh2": "^1.15.5",
|
|
66
73
|
"@types/uuid": "^9.0.3",
|
|
74
|
+
"@vitejs/plugin-react": "^6.0.4",
|
|
67
75
|
"esbuild": "^0.24.0",
|
|
76
|
+
"react": "18.3.1",
|
|
77
|
+
"react-dom": "18.3.1",
|
|
78
|
+
"survey-core": "^3.2.3",
|
|
79
|
+
"survey-react-ui": "^3.2.3",
|
|
80
|
+
"vite": "^8.1.5",
|
|
68
81
|
"vitest": "^4.1.10"
|
|
69
82
|
},
|
|
70
83
|
"moduleNameMapper": {
|
|
71
84
|
"@opencrvs/commons/events": "@opencrvs/commons/build/dist/common/events/index.js",
|
|
72
|
-
"@opencrvs/commons/scopes": "@opencrvs/commons/build/dist/common/scopes.js"
|
|
85
|
+
"@opencrvs/commons/scopes": "@opencrvs/commons/build/dist/common/users/scopes.js"
|
|
73
86
|
}
|
|
74
87
|
}
|
package/tsconfig.build.json
CHANGED
|
@@ -7,5 +7,15 @@
|
|
|
7
7
|
// Without it the commons sources resolve through `paths` instead of the built
|
|
8
8
|
// project, and every one of them trips the rootDir check.
|
|
9
9
|
"references": [{ "path": "../commons/tsconfig-commonjs.json" }],
|
|
10
|
-
"exclude": [
|
|
10
|
+
"exclude": [
|
|
11
|
+
"**/node_modules/**",
|
|
12
|
+
"dist",
|
|
13
|
+
"**/*.test.ts",
|
|
14
|
+
"src/configurator/ui",
|
|
15
|
+
"src/configurator/tests",
|
|
16
|
+
"src/configurator/scripts",
|
|
17
|
+
"src/configurator/server/fakeGitHub.ts",
|
|
18
|
+
"src/configurator/vite.config.ts",
|
|
19
|
+
"src/configurator/yamlForms.ts"
|
|
20
|
+
]
|
|
11
21
|
}
|