Skip to content

Commit 7c8c0c2

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 7c8c0c2

File tree

6 files changed

+51
-2768
lines changed

6 files changed

+51
-2768
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: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/// <reference types='vitest' />
21
import { defineConfig } from 'vite';
32
import dts from 'vite-plugin-dts';
43

@@ -25,18 +24,4 @@ export default defineConfig({
2524
tsconfigPath: './tsconfig.lib.json',
2625
}),
2726
],
28-
29-
test: {
30-
watch: false,
31-
globals: true,
32-
environment: 'node',
33-
passWithNoTests: true,
34-
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
35-
36-
reporters: ['default', 'json', 'html'],
37-
coverage: {
38-
reportsDirectory: './coverage',
39-
provider: 'v8',
40-
},
41-
},
4227
});
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { defineConfig } from 'vitest/config';
2+
3+
export default defineConfig({
4+
test: {
5+
watch: false,
6+
globals: true,
7+
environment: 'node',
8+
passWithNoTests: true,
9+
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
10+
reporters: ['default', 'json', 'html'],
11+
coverage: {
12+
reportsDirectory: './coverage',
13+
provider: 'v8',
14+
},
15+
},
16+
});

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)