Skip to content

Commit

Permalink
chore(deps): require @nx/devkit 20 (#6)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: require nx 20
  • Loading branch information
driimus authored Oct 29, 2024
1 parent ce1a878 commit 40f2a26
Show file tree
Hide file tree
Showing 8 changed files with 431 additions and 657 deletions.
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/dist
/coverage

/.nx/cache
/.nx/cache
/.nx/workspace-data
3 changes: 2 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@
"createRelease": "github"
}
}
}
},
"useLegacyCache": true
}
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,36 +14,36 @@
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@nx/devkit": "19.4.2",
"@nx/eslint-plugin": "19.4.2",
"@nx/jest": "19.4.2",
"@nx/js": "19.4.2",
"@nx/node": "19.4.2",
"@nx/plugin": "19.4.2",
"@nx/workspace": "19.4.2",
"@swc-node/register": "^1.9.0",
"@nx/devkit": "20.0.6",
"@nx/eslint-plugin": "20.0.6",
"@nx/jest": "20.0.6",
"@nx/js": "20.0.6",
"@nx/node": "20.0.6",
"@nx/plugin": "20.0.6",
"@nx/workspace": "20.0.6",
"@swc-node/register": "1.9.2",
"@swc/cli": "0.3.12",
"@swc/core": "^1.4.17",
"@swc/helpers": "~0.5.2",
"@swc/core": "1.5.7",
"@swc/helpers": "0.5.13",
"@tsconfig/node-lts": "^20.1.3",
"@types/cross-spawn": "^6.0.6",
"@types/jest": "^29.5.12",
"@types/jest": "29.5.14",
"@types/node": "^20.12.7",
"husky": "^9.0.11",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"nx": "19.4.2",
"nx-cloud": "19.0.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"nx": "20.0.6",
"nx-cloud": "19.1.0",
"prettier": "^3.2.5",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"type-fest": "^4.18.3",
"typescript": "^5.4.5",
"typescript": "5.5.4",
"verdaccio": "^5.0.4"
},
"repository": {
"type": "git",
"url": "https://github.com/driimus/nx-trumbitta.git"
},
"packageManager": "pnpm@9.1.3+sha256.7f63001edc077f1cff96cacba901f350796287a2800dfa83fe898f94183e4f5f"
"packageManager": "pnpm@9.12.3"
}
2 changes: 1 addition & 1 deletion packages/nx-plugin-openapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"executors": "./executors.json",
"license": "MIT",
"peerDependencies": {
"@nx/workspace": "^19.0.2",
"@nx/workspace": "^20.0.6",
"cross-spawn": "^7.0.3",
"rimraf": "^5.0.7"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ import { mockSpawn } from '../../test/mockSpawn';
import executor from './executor';
import { GenerateApiLibSourcesExecutorSchema } from './schema';

// jest.mock('prettier', () => null);

beforeEach(() => {
jest.resetAllMocks();
jest.mock('prettier', () => null);
});

describe('Command Runner Builder', () => {
Expand All @@ -33,9 +36,11 @@ describe('Command Runner Builder', () => {
cwd: '/root',
projectName: 'proj',
targetName: 'generate-sources',
workspace: {
isVerbose: false,
nxJsonConfiguration: {},
projectGraph: { dependencies: {}, nodes: {} },
projectsConfigurations: {
version: 2,
npmScope: 'foo',
projects: {
proj: {
root: '',
Expand All @@ -44,7 +49,6 @@ describe('Command Runner Builder', () => {
},
},
},
isVerbose: false,
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default async function runExecutor(
options: GenerateApiLibSourcesExecutorSchema,
context: ExecutorContext,
): Promise<{ success: boolean }> {
const outputDir = context.workspace!.projects[context.projectName!].sourceRoot!;
const outputDir = context.projectsConfigurations.projects[context.projectName!].sourceRoot!;
const root = context.root;

logger.info(`Deleting outputDir ${outputDir}...`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import libraryGenerator from './generator';
import { GenerateApiLibSourcesExecutorSchema } from '../../executors/generate-api-lib-sources/schema';
import { ApiLibGeneratorSchema } from './schema';

jest.mock('prettier', () => null);

describe('api-lib schematic', () => {
let appTree: Tree;

Expand Down
1,032 changes: 399 additions & 633 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit 40f2a26

Please sign in to comment.