Skip to content

Commit 3925653

Browse files
committed
feat(nx-cloud): setup nx cloud workspace
This commit sets up Nx Cloud for your Nx workspace, enabling distributed caching and the Nx Cloud GitHub integration for fast CI and improved developer experience. **Note:** This commit attempts to maintain formatting of the nx.json file, however you may need to correct formatting by running an nx format command and committing the changes.
1 parent 0590582 commit 3925653

File tree

5 files changed

+36
-2754
lines changed

5 files changed

+36
-2754
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@forgerock/javascript-sdk': patch
3+
---
4+
5+
remove SharedArray buffer type from webauthn types. A webauthn type should never be a SharedArrayBuffer per spec. https://github.com/microsoft/TypeScript/issues/62168

e2e/token-vault-interceptor/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// <reference types='vitest' />
1+
/// <reference types="vitest" />
22
import { defineConfig } from 'vite';
33
import dts from 'vite-plugin-dts';
44

nx.json

Lines changed: 15 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,18 @@
1111
]
1212
},
1313
"targetDefaults": {
14-
"e2e-ci": {
15-
"dependsOn": ["^build"]
16-
},
14+
"e2e-ci": { "dependsOn": ["^build"] },
1715
"nx-release-publish": {
18-
"options": {
19-
"packageRoot": "packages/{projectName}"
20-
}
16+
"options": { "packageRoot": "packages/{projectName}" }
2117
},
2218
"docs": {
2319
"dependsOn": ["build", "^build", "^docs"],
2420
"cache": true,
2521
"outputs": ["{projectRoot}/docs"]
2622
},
27-
"serve": {
28-
"cache": false,
29-
"dependsOn": ["^build"]
30-
},
31-
"e2e": {
32-
"dependsOn": ["^build"],
33-
"cache": true
34-
},
35-
"test": {
36-
"dependsOn": ["^build"]
37-
},
23+
"serve": { "cache": false, "dependsOn": ["^build"] },
24+
"e2e": { "dependsOn": ["^build"], "cache": true },
25+
"test": { "dependsOn": ["^build"] },
3826
"build": {
3927
"dependsOn": ["^build"],
4028
"inputs": ["production", "^production"],
@@ -46,20 +34,14 @@
4634
"outputs": ["{projectRoot}/coverage"],
4735
"cache": true
4836
},
49-
"@nx/eslint:lint": {
50-
"dependsOn": ["^build", "^lint"],
51-
"cache": true
52-
},
37+
"@nx/eslint:lint": { "dependsOn": ["^build", "^lint"], "cache": true },
5338
"@nx/vite:build": {
5439
"dependsOn": ["^build"],
5540
"inputs": ["production", "^production"],
5641
"cache": true,
5742
"outputs": ["{projectRoot}/dist"]
5843
},
59-
"@nx/playwright:run": {
60-
"dependsOn": ["^build"],
61-
"cache": true
62-
},
44+
"@nx/playwright:run": { "dependsOn": ["^build"], "cache": true },
6345
"@nx/esbuild:esbuild": {
6446
"inputs": ["production", "^production"],
6547
"dependsOn": ["^build"],
@@ -78,10 +60,7 @@
7860
}
7961
},
8062
"parallel": 1,
81-
"workspaceLayout": {
82-
"appsDir": "",
83-
"libsDir": ""
84-
},
63+
"workspaceLayout": { "appsDir": "", "libsDir": "" },
8564
"release": {
8665
"projects": ["packages/*"],
8766
"version": {
@@ -91,13 +70,8 @@
9170
"preserveLocalDependencyProtocols": false
9271
},
9372
"changelog": {
94-
"git": {
95-
"commit": true,
96-
"tag": true
97-
},
98-
"workspaceChangelog": {
99-
"createRelease": "github"
100-
},
73+
"git": { "commit": true, "tag": true },
74+
"workspaceChangelog": { "createRelease": "github" },
10175
"projectChangelogs": true
10276
},
10377
"releaseTag": {
@@ -107,18 +81,10 @@
10781
"plugins": [
10882
{
10983
"plugin": "@nx/playwright/plugin",
110-
"options": {
111-
"ciTargetName": "e2e-ci",
112-
"targetName": "e2e"
113-
},
84+
"options": { "ciTargetName": "e2e-ci", "targetName": "e2e" },
11485
"include": ["e2e/**/**/*"]
11586
},
116-
{
117-
"plugin": "@nx/eslint/plugin",
118-
"options": {
119-
"targetName": "lint"
120-
}
121-
},
87+
{ "plugin": "@nx/eslint/plugin", "options": { "targetName": "lint" } },
12288
{
12389
"plugin": "@nx/vite/plugin",
12490
"options": {
@@ -153,12 +119,13 @@
153119
"serveStaticTargetName": "vite:serve-static",
154120
"typecheckTargetName": "vite:typecheck"
155121
},
156-
"include": ["packages/**/*", "e2e/**/*"]
122+
"include": ["packages/**/*", "e2e/**/*"],
123+
"exclude": ["e2e/token-vault-interceptor/**/*"]
157124
}
158125
],
159126
"defaultProject": "javascript-sdk",
160127
"useDaemonProcess": true,
161128
"useInferencePlugins": true,
162129
"defaultBase": "develop",
163-
"nxCloudId": "691f768cc413573260509d11"
130+
"nxCloudId": "691f769b1b6c37fb36143efb"
164131
}

packages/javascript-sdk/src/fr-webauthn/interfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ interface WebAuthnCallbacks {
9595
type WebAuthnTextOutputRegistration = string;
9696

9797
interface ParsedCredential {
98-
id: ArrayBuffer | SharedArrayBuffer;
98+
id: ArrayBuffer;
9999
type: 'public-key';
100100
}
101101

0 commit comments

Comments
 (0)