Skip to content

Commit 16b13a9

Browse files
committed
fix: update to Nx workspace to v20.6.0
Closes #247
1 parent 5ba46b4 commit 16b13a9

File tree

12 files changed

+35
-44
lines changed

12 files changed

+35
-44
lines changed

.github/actions/install-dependencies/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ runs:
2626
with:
2727
lookup-only: true
2828
path: '**/node_modules'
29-
key: bun-${{ hashFiles('bun.lockb') }}
29+
key: bun-${{ hashFiles('bun.lockb','bun.lock') }}
3030

3131
- name: Install packages
3232
run: bun install --frozen-lockfile

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ runs:
4545
with:
4646
lookup-only: true
4747
path: '**/node_modules'
48-
key: bun-${{ hashFiles('bun.lockb') }}
48+
key: bun-${{ hashFiles('bun.lockb','bun.lock') }}
4949

5050
- name: Install packages
5151
run: bun install --frozen-lockfile

.nx/workflows/agents.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ launch-templates:
99
- name: Restore Node Modules Cache
1010
uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml'
1111
inputs:
12-
key: 'package-lock.json|yarn.lock|pnpm-lock.yaml|bun.lock|bun.lockb'
12+
key: 'package-lock.json|yarn.lock|pnpm-lock.yaml|bun.lockb|bun.lock'
1313
paths: 'node_modules'
1414
base-branch: 'develop'
1515

@@ -54,7 +54,6 @@ launch-templates:
5454
- name: Check bun
5555
script: |
5656
bun --version
57-
echo "bunx=`which bunx`"
5857
5958
- name: Install Node Modules (with Bun)
6059
script: bun install --frozen-lockfile --ignore-scripts

bun.lockb

-8.37 KB
Binary file not shown.

bunfig.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[install]
2+
saveTextLockfile = false

nx.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
{
2-
"pluginsConfig": {
3-
"@nx/js": {
4-
"analyzeSourceFiles": true
5-
}
6-
},
72
"release": {
83
"projects": ["packages/*"],
94
"projectsRelationship": "independent",
@@ -17,7 +12,7 @@
1712
}
1813
},
1914
"version": {
20-
"preVersionCommand": "bunx nx run-many -t build --skipNxCache --parallel 4",
15+
"preVersionCommand": "bunx nx run-many -t build",
2116
"conventionalCommits": true,
2217
"generatorOptions": {
2318
"packageRoot": "dist/packages/{projectName}",
@@ -101,7 +96,7 @@
10196
{
10297
"plugin": "@nx/eslint/plugin",
10398
"options": {
104-
"targetName": "eslint:lint",
99+
"targetName": "lint",
105100
"extensions": ["ts", "tsx", "js", "jsx", "html", "vue"]
106101
}
107102
},

package.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"dependencies": {
3636
"@clack/prompts": "^0.10.0",
3737
"@swc/helpers": "0.5.11",
38-
"create-nx-workspace": "20.4.0",
38+
"@nx/devkit": "20.6.2",
39+
"create-nx-workspace": "20.6.2",
3940
"enquirer": "^2.4.1",
4041
"hpagent": "^1.2.0",
4142
"js-yaml": "^4.1.0",
@@ -52,13 +53,12 @@
5253
"@commitlint/cli": "^19.3.0",
5354
"@commitlint/config-angular": "^19.3.0",
5455
"@jest/globals": "29.7.0",
55-
"@nx/devkit": "20.4.0",
56-
"@nx/eslint-plugin": "20.4.0",
57-
"@nx/jest": "20.4.0",
58-
"@nx/js": "20.4.0",
59-
"@nx/node": "20.4.0",
60-
"@nx/plugin": "20.4.0",
61-
"@nx/workspace": "20.4.0",
56+
"@nx/eslint-plugin": "20.6.2",
57+
"@nx/jest": "20.6.2",
58+
"@nx/js": "20.6.2",
59+
"@nx/node": "20.6.2",
60+
"@nx/plugin": "20.6.2",
61+
"@nx/workspace": "20.6.2",
6262
"@swc-node/register": "1.9.1",
6363
"@swc/cli": "0.3.12",
6464
"@swc/core": "1.5.7",
@@ -67,28 +67,27 @@
6767
"@types/node": "18.16.9",
6868
"@types/node-fetch": "^2.6.9",
6969
"@types/semver": "^7.5.8",
70-
"@types/tmp": "^0.2.3",
7170
"@types/unzipper": "^0.10.5",
7271
"@types/xmldoc": "^1.1.6",
7372
"@types/yargs": "^17.0.26",
7473
"@typescript-eslint/eslint-plugin": "^7.3.0",
7574
"@typescript-eslint/parser": "^7.3.0",
76-
"dotenv": "10.0.0",
7775
"eslint": "~8.57.0",
7876
"eslint-config-prettier": "^9.0.0",
7977
"fs-extra": "^10.1.0",
8078
"husky": "^9.0.11",
8179
"jest": "29.7.0",
8280
"jest-environment-jsdom": "29.7.0",
83-
"jest-environment-node": "^29.4.1",
84-
"jest-mock": "28.1.3",
81+
"jest-environment-node": "^29.7.0",
82+
"jsonc-eslint-parser": "^2.1.0",
83+
"jest-mock": "29.7.0",
8584
"lint-staged": "^15.2.7",
86-
"nx": "20.4.0",
85+
"nx": "20.6.2",
8786
"prettier": "2.6.2",
8887
"ts-jest": "29.1.0",
8988
"ts-node": "10.9.1",
9089
"typescript": "5.7.3",
91-
"verdaccio": "^5.0.4"
90+
"verdaccio": "6.0.5"
9291
},
9392
"repository": {
9493
"type": "git",

packages/nx-flutter/src/generators/project/lib/normalize-options.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,15 @@ import { Tree } from '@nx/devkit';
22
import { ProjectGeneratorOptions, NormalizedSchema } from '../schema';
33
import {
44
determineProjectNameAndRootOptions,
5-
ensureProjectName,
5+
ensureRootProjectName,
66
} from '@nx/devkit/src/generators/project-name-and-root-utils';
77

88
export async function normalizeOptions(
99
tree: Tree,
1010
options: ProjectGeneratorOptions
1111
): Promise<NormalizedSchema> {
1212
const projectType = options.template === 'app' ? 'application' : 'library';
13-
await ensureProjectName(
14-
tree,
15-
options as ProjectGeneratorOptions,
16-
projectType
17-
);
13+
await ensureRootProjectName(options as ProjectGeneratorOptions, projectType);
1814
const { projectName, projectRoot } = await determineProjectNameAndRootOptions(
1915
tree,
2016
{
@@ -24,6 +20,7 @@ export async function normalizeOptions(
2420
//rootProject: options.rootProject,
2521
}
2622
);
23+
options.name = projectName;
2724
const parsedTags = options.tags
2825
? options.tags.split(',').map((s) => s.trim())
2926
: [];

packages/nx-ktor/src/generators/project/lib/normalize-options.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ import { Tree } from '@nx/devkit';
22
import { ProjectGeneratorOptions, NormalizedSchema } from '../schema';
33
import {
44
determineProjectNameAndRootOptions,
5-
ensureProjectName,
5+
ensureRootProjectName,
66
} from '@nx/devkit/src/generators/project-name-and-root-utils';
77

88
export async function normalizeOptions(
99
tree: Tree,
1010
options: ProjectGeneratorOptions
1111
): Promise<NormalizedSchema> {
12-
await ensureProjectName(
13-
tree,
12+
await ensureRootProjectName(
1413
options as ProjectGeneratorOptions,
1514
'application'
1615
);
@@ -23,6 +22,7 @@ export async function normalizeOptions(
2322
//rootProject: options.rootProject,
2423
}
2524
);
25+
options.name = projectName;
2626
const parsedTags = options.tags
2727
? options.tags.split(',').map((s) => s.trim())
2828
: [];

packages/nx-micronaut/src/generators/project/lib/normalize-options.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ import { Tree } from '@nx/devkit';
22
import { ProjectGeneratorOptions, NormalizedSchema } from '../schema';
33
import {
44
determineProjectNameAndRootOptions,
5-
ensureProjectName,
5+
ensureRootProjectName,
66
} from '@nx/devkit/src/generators/project-name-and-root-utils';
77

88
export async function normalizeOptions(
99
tree: Tree,
1010
options: ProjectGeneratorOptions
1111
): Promise<NormalizedSchema> {
12-
await ensureProjectName(
13-
tree,
12+
await ensureRootProjectName(
1413
options as ProjectGeneratorOptions,
1514
'application'
1615
);
@@ -23,6 +22,7 @@ export async function normalizeOptions(
2322
//rootProject: options.rootProject,
2423
}
2524
);
25+
options.name = projectName;
2626
const parsedTags = options.tags
2727
? options.tags.split(',').map((s) => s.trim())
2828
: [];

0 commit comments

Comments
 (0)