Skip to content

Commit b42657c

Browse files
committed
build: fix esbuild external modules and declarations
1 parent f610eba commit b42657c

File tree

12 files changed

+5378
-1313
lines changed

12 files changed

+5378
-1313
lines changed

.eslintrc.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,18 @@
2424
{
2525
"files": ["*.ts", "*.tsx"],
2626
"extends": ["plugin:@nx/typescript", "plugin:@nx/react"],
27-
"rules": {}
27+
"rules": {
28+
"@typescript-eslint/no-extra-semi": "error",
29+
"no-extra-semi": "off"
30+
}
2831
},
2932
{
3033
"files": ["*.js", "*.jsx"],
3134
"extends": ["plugin:@nx/javascript"],
32-
"rules": {}
35+
"rules": {
36+
"@typescript-eslint/no-extra-semi": "error",
37+
"no-extra-semi": "off"
38+
}
3339
},
3440
{
3541
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ testem.log
3939
Thumbs.db
4040

4141
.nx/cache
42+
.nx/workspace-data
4243

4344
# Next.js
44-
.next
45+
.next
46+
.cursor/rules/nx-rules.mdc
47+
.github/instructions/nx.instructions.md

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Add files here to ignore them from prettier formatting
22
/dist
33
/coverage
4-
/.nx/cache
4+
/.nx/cache
5+
/.nx/workspace-data

apps/docs/cypress.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@ import { nxE2EPreset } from '@nx/cypress/plugins/cypress-preset';
33
import { defineConfig } from 'cypress';
44

55
export default defineConfig({
6-
e2e: { ...nxE2EPreset(__filename, { cypressDir: 'cypress' }) },
6+
e2e: {
7+
...nxE2EPreset(__filename, { cypressDir: 'cypress' }),
8+
// Please ensure you use `cy.origin()` when navigating between domains and remove this option.
9+
// See https://docs.cypress.io/app/references/migration-guide#Changes-to-cyorigin
10+
injectDocumentDomain: true,
11+
},
712
});

apps/tester/cypress.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@ import { nxE2EPreset } from '@nx/cypress/plugins/cypress-preset';
33
import { defineConfig } from 'cypress';
44

55
export default defineConfig({
6-
e2e: { ...nxE2EPreset(__filename, { cypressDir: 'cypress' }) },
6+
e2e: {
7+
...nxE2EPreset(__filename, { cypressDir: 'cypress' }),
8+
// Please ensure you use `cy.origin()` when navigating between domains and remove this option.
9+
// See https://docs.cypress.io/app/references/migration-guide#Changes-to-cyorigin
10+
injectDocumentDomain: true,
11+
},
712
});

apps/tester/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/basic-features/typescript for more information.
5+
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.

jest.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { getJestProjects } from '@nx/jest';
1+
import { getJestProjectsAsync } from '@nx/jest';
22

3-
export default {
4-
projects: getJestProjects(),
5-
};
3+
export default async () => ({
4+
projects: await getJestProjectsAsync(),
5+
});

nx.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,6 @@
6262
"linter": "eslint"
6363
}
6464
}
65-
}
65+
},
66+
"useInferencePlugins": false
6667
}

package.json

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -19,44 +19,44 @@
1919
"zod": "3.23.8"
2020
},
2121
"devDependencies": {
22-
"@nx/cypress": "17.2.8",
23-
"@nx/devkit": "17.2.8",
24-
"@nx/esbuild": "17.2.8",
25-
"@nx/eslint": "17.2.8",
26-
"@nx/eslint-plugin": "17.2.8",
27-
"@nx/jest": "17.2.8",
28-
"@nx/js": "17.2.8",
29-
"@nx/next": "17.2.8",
30-
"@nx/react": "17.2.8",
31-
"@nx/workspace": "17.2.8",
32-
"@swc-node/register": "1.6.8",
33-
"@swc/core": "1.3.105",
34-
"@testing-library/react": "14.0.0",
35-
"@types/jest": "^29.4.0",
22+
"@nx/cypress": "21.2.4",
23+
"@nx/devkit": "21.2.4",
24+
"@nx/esbuild": "21.2.4",
25+
"@nx/eslint": "21.2.4",
26+
"@nx/eslint-plugin": "21.2.4",
27+
"@nx/jest": "21.2.4",
28+
"@nx/js": "21.2.4",
29+
"@nx/next": "21.2.4",
30+
"@nx/react": "21.2.4",
31+
"@nx/workspace": "21.2.4",
32+
"@swc-node/register": "1.9.2",
33+
"@swc/core": "1.5.7",
34+
"@testing-library/react": "16.1.0",
35+
"@types/jest": "29.5.14",
3636
"@types/node": "18.16.9",
37-
"@types/react": "18.3.2",
38-
"@types/react-dom": "^18.3.0",
39-
"@typescript-eslint/eslint-plugin": "6.11.0",
40-
"@typescript-eslint/parser": "6.11.0",
41-
"babel-jest": "^29.4.1",
42-
"cypress": "13.10.0",
43-
"esbuild": "^0.19.2",
37+
"@types/react": "18.3.1",
38+
"@types/react-dom": "18.3.0",
39+
"@typescript-eslint/eslint-plugin": "7.16.0",
40+
"@typescript-eslint/parser": "7.16.0",
41+
"babel-jest": "29.7.0",
42+
"cypress": "14.2.1",
43+
"esbuild": "^0.25.6",
4444
"eslint": "8.48.0",
45-
"eslint-config-next": "14.2.3",
46-
"eslint-config-prettier": "^9.0.0",
45+
"eslint-config-next": "15.2.4",
46+
"eslint-config-prettier": "10.0.0",
4747
"eslint-plugin-cypress": "^2.13.4",
48-
"eslint-plugin-import": "2.29.0",
49-
"eslint-plugin-jsx-a11y": "6.8.0",
48+
"eslint-plugin-import": "2.31.0",
49+
"eslint-plugin-jsx-a11y": "6.10.1",
5050
"eslint-plugin-react": "7.33.2",
51-
"eslint-plugin-react-hooks": "4.6.0",
52-
"jest": "^29.4.1",
53-
"jest-environment-jsdom": "^29.4.1",
54-
"next": "14.2.3",
55-
"nx": "17.2.8",
51+
"eslint-plugin-react-hooks": "5.0.0",
52+
"jest": "29.7.0",
53+
"jest-environment-jsdom": "29.7.0",
54+
"next": "14.2.30",
55+
"nx": "21.2.4",
5656
"prettier": "3.2.4",
5757
"ts-jest": "^29.1.0",
5858
"ts-node": "10.9.1",
59-
"typescript": "5.4.5"
59+
"typescript": "5.8.3"
6060
},
6161
"nx": {
6262
"includedScripts": []

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
"type": "commonjs",
2525
"exports": {
2626
".": {
27+
"types": "./src/index.d.ts",
2728
"require": "./index.js",
28-
"import": "./index.mjs",
29-
"types": "./index.d.ts"
29+
"import": "./index.mjs"
3030
}
3131
},
3232
"peerDependencies": {

0 commit comments

Comments
 (0)