Skip to content

Commit 41cd3de

Browse files
committed
chore: run migrations
1 parent 7c7bb4c commit 41cd3de

File tree

92 files changed

+357
-436
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+357
-436
lines changed

.eslintrc.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"root": true,
33
"ignorePatterns": ["**/*"],
4-
"plugins": ["@nrwl/nx", "unused-imports", "simple-import-sort", "import", "prettier"],
4+
"plugins": ["@nx", "unused-imports", "simple-import-sort", "import", "prettier"],
55
"overrides": [
66
{
77
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
88
"rules": {
9-
"@nrwl/nx/enforce-module-boundaries": [
9+
"@nx/enforce-module-boundaries": [
1010
"error",
1111
{
1212
"enforceBuildableLibDependency": true,
@@ -35,15 +35,15 @@
3535
},
3636
{
3737
"files": ["*.ts", "*.tsx"],
38-
"extends": ["plugin:@nrwl/nx/typescript"],
38+
"extends": ["plugin:@nx/typescript"],
3939
"rules": {
4040
"@typescript-eslint/ban-ts-comment": 0,
4141
"@typescript-eslint/no-var-requires": 0
4242
}
4343
},
4444
{
4545
"files": ["*.js", "*.jsx"],
46-
"extends": ["plugin:@nrwl/nx/javascript"],
46+
"extends": ["plugin:@nx/javascript"],
4747
"rules": {}
4848
},
4949
{

e2e/nx-core-e2e/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"sourceRoot": "e2e/nx-core-e2e/src",
66
"targets": {
77
"e2e": {
8-
"executor": "@nrwl/nx-plugin:e2e",
8+
"executor": "@nx/plugin:e2e",
99
"options": {
1010
"target": "nx-core-e2e:prepare",
1111
"passWithNoTests": true,

e2e/nx-jest-playwright-e2e/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"sourceRoot": "e2e/nx-jest-playwright-e2e/src",
66
"targets": {
77
"e2e": {
8-
"executor": "@nrwl/nx-plugin:e2e",
8+
"executor": "@nx/plugin:e2e",
99
"options": {
1010
"target": "nx-jest-playwright-e2e:prepare",
1111
"jestConfig": "e2e/nx-jest-playwright-e2e/jest.config.ts"

e2e/nx-jest-playwright-e2e/tests/nx-jest-playwright.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { checkFilesExist, readJson, runNxCommandAsync, uniq } from '@nrwl/nx-plugin/testing';
1+
import { checkFilesExist, readJson, runNxCommandAsync, uniq } from '@nx/plugin/testing';
22
import { ensureComplexNxProject } from '@ns3/nx-core/src/testing-utils/ensure-complex-nx-project';
33

44
describe('nx-jest-playwright e2e', () => {

e2e/nx-npm-e2e/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"sourceRoot": "e2e/nx-npm-e2e/src",
66
"targets": {
77
"e2e": {
8-
"executor": "@nrwl/nx-plugin:e2e",
8+
"executor": "@nx/plugin:e2e",
99
"options": {
1010
"target": "nx-npm-e2e:prepare",
1111
"jestConfig": "e2e/nx-npm-e2e/jest.config.ts"

e2e/nx-npm-e2e/tests/nx-npm.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { runCommandAsync, runNxCommandAsync, tmpProjPath, uniq } from '@nrwl/nx-plugin/testing';
1+
import { runCommandAsync, runNxCommandAsync, tmpProjPath, uniq } from '@nx/plugin/testing';
22
import { getPackageManagerCommand } from '@nrwl/tao/src/shared/package-manager';
33
import { ensureComplexNxProject } from '@ns3/nx-core/src/testing-utils/ensure-complex-nx-project';
44
import { readFileSync, writeFileSync } from 'fs';
@@ -10,7 +10,7 @@ describe('nx-npm e2e', () => {
1010
['@ns3/nx-core', 'dist/packages/nx-core'],
1111
);
1212
const pmc = getPackageManagerCommand();
13-
await runCommandAsync(`${pmc.addDev} @nrwl/js`);
13+
await runCommandAsync(`${pmc.addDev} @nx/js`);
1414
const p = JSON.parse(readFileSync(tmpProjPath('package.json')).toString());
1515
p['repository'] = {
1616
type: 'git',
@@ -22,7 +22,7 @@ describe('nx-npm e2e', () => {
2222
it('should create nx-npm', async () => {
2323
const plugin = uniq('nx-npm');
2424

25-
await runNxCommandAsync(`generate @nrwl/js:lib ${plugin} --importPath ${plugin} --bundler tsc`);
25+
await runNxCommandAsync(`generate @nx/js:lib ${plugin} --importPath ${plugin} --bundler tsc`);
2626
await runNxCommandAsync(`generate @ns3/nx-npm:npm --project ${plugin}`);
2727

2828
const buildResult = await runNxCommandAsync(`build ${plugin}`);

e2e/nx-playwright-e2e/tests/nx-playwright.spec.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
runCommandAsync,
55
runNxCommandAsync,
66
uniq,
7-
} from '@nrwl/nx-plugin/testing';
7+
} from '@nx/plugin/testing';
88
import { ensureComplexNxProject } from '@ns3/nx-core/src/testing-utils/ensure-complex-nx-project';
99
import * as assert from 'node:assert/strict';
1010
import { after, before, describe, it } from 'node:test';
@@ -35,9 +35,17 @@ describe('nx-playwright e2e', () => {
3535
assert.match(sanitised, /Successfully ran target e2e for project/);
3636

3737
const helpResult = await runNxCommandAsync(`e2e ${project} --help_`, { silenceError: true });
38-
const hResult = await runNxCommandAsync(`e2e ${project} app.spec.ts -h_`, { silenceError: true });
39-
assert.match(helpResult.stdout, /yarn playwright test --config=.*\/playwright.config.ts --help/);
40-
assert.match(hResult.stdout, /yarn playwright test app.spec.ts --config=.*\/playwright.config.ts -h/);
38+
const hResult = await runNxCommandAsync(`e2e ${project} app.spec.ts -h_`, {
39+
silenceError: true,
40+
});
41+
assert.match(
42+
helpResult.stdout,
43+
/yarn playwright test --config=.*\/playwright.config.ts --help/,
44+
);
45+
assert.match(
46+
hResult.stdout,
47+
/yarn playwright test app.spec.ts --config=.*\/playwright.config.ts -h/,
48+
);
4149
});
4250

4351
describe('--directory', () => {

e2e/nx-serverless-e2e/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"sourceRoot": "e2e/nx-serverless-e2e/src",
66
"targets": {
77
"e2e": {
8-
"executor": "@nrwl/nx-plugin:e2e",
8+
"executor": "@nx/plugin:e2e",
99
"options": {
1010
"target": "nx-serverless-e2e:prepare",
1111
"jestConfig": "e2e/nx-serverless-e2e/jest.config.ts"

e2e/nx-serverless-e2e/tests/serverless.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { checkFilesExist, readJson, runNxCommandAsync, uniq } from '@nrwl/nx-plugin/testing';
1+
import { checkFilesExist, readJson, runNxCommandAsync, uniq } from '@nx/plugin/testing';
22
import { ensureComplexNxProject } from '@ns3/nx-core/src/testing-utils/ensure-complex-nx-project';
33

44
describe('serverless e2e', () => {

jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { getJestProjects } = require('@nrwl/jest');
1+
const { getJestProjects } = require('@nx/jest');
22

33
export default {
44
projects: getJestProjects(),

jest.preset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const nxPreset = require('@nrwl/jest/preset').default;
1+
const nxPreset = require('@nx/jest/preset').default;
22

33
module.exports = { ...nxPreset };

migrations.json

Lines changed: 0 additions & 116 deletions
This file was deleted.

nx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"tasksRunnerOptions": {
77
"default": {
8-
"runner": "@nrwl/nx-cloud",
8+
"runner": "nx-cloud",
99
"options": {
1010
"cacheableOperations": ["build", "lint", "test", "e2e"],
1111
"accessToken": "YzQ0ZjZiNmItNDVjMi00OTVkLWI0YTMtZTJjYjBhZDE0YWEwfHJlYWQtd3JpdGU=",

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
},
3838
"private": true,
3939
"dependencies": {
40+
"@nx/devkit": "16.0.3",
4041
"@swc/helpers": "0.5.1",
4142
"bestzip": "^2.2.1",
4243
"execa": "^5.0.0",
@@ -49,19 +50,13 @@
4950
"@actions/core": "^1.10.0",
5051
"@commitlint/cli": "^17.5.1",
5152
"@commitlint/config-conventional": "^17.4.4",
52-
"@nrwl/cli": "15.9.1",
53-
"@nrwl/devkit": "16.0.3",
54-
"@nrwl/eslint-plugin-nx": "16.0.3",
55-
"@nrwl/jest": "16.0.3",
56-
"@nrwl/js": "16.0.3",
57-
"@nrwl/linter": "16.0.3",
58-
"@nrwl/nx-cloud": "16.0.5",
59-
"@nrwl/nx-plugin": "16.0.3",
60-
"@nrwl/webpack": "16.0.3",
61-
"@nrwl/workspace": "16.0.3",
53+
"@nx/jest": "16.0.3",
54+
"@nx/js": "16.0.3",
55+
"@nx/plugin": "16.0.3",
56+
"@nx/workspace": "16.0.3",
6257
"@swc-node/register": "^1.4.2",
6358
"@swc/cli": "0.1.62",
64-
"@swc/core": "^1.2.173",
59+
"@swc/core": "~1.3.51",
6560
"@types/flat": "^5.0.2",
6661
"@types/fs-extra": "^11.0.1",
6762
"@types/jest": "29.4.0",
@@ -84,13 +79,18 @@
8479
"jsonc-eslint-parser": "^2.1.0",
8580
"lint-staged": "^13.2.0",
8681
"nx": "16.0.3",
82+
"nx-cloud": "16.0.5",
8783
"prettier": "2.8.7",
8884
"semantic-release": "^21.0.0",
8985
"semver": "^7.3.8",
9086
"ts-jest": "29.1.0",
9187
"ts-node": "10.9.1",
9288
"tslib": "^2.4.0",
93-
"typescript": "4.9.5"
89+
"typescript": "4.9.5",
90+
"@nx/devkit": "16.0.3",
91+
"@nx/linter": "16.0.3",
92+
"@nx/eslint-plugin": "16.0.3",
93+
"@nx/webpack": "16.0.3"
9494
},
9595
"config": {
9696
"commitizen": {

packages/nx-core/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"files": ["./package.json", "./generators.json", "./executors.json"],
2020
"parser": "jsonc-eslint-parser",
2121
"rules": {
22-
"@nrwl/nx/nx-plugin-checks": "error"
22+
"@nx/nx-plugin-checks": "error"
2323
}
2424
}
2525
]

packages/nx-core/project.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"projectType": "library",
66
"targets": {
77
"lint": {
8-
"executor": "@nrwl/linter:eslint",
8+
"executor": "@nx/linter:eslint",
99
"options": {
1010
"lintFilePatterns": [
1111
"packages/nx-core/**/*.ts",
@@ -17,15 +17,15 @@
1717
"outputs": ["{options.outputFile}"]
1818
},
1919
"test": {
20-
"executor": "@nrwl/jest:jest",
20+
"executor": "@nx/jest:jest",
2121
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
2222
"options": {
2323
"jestConfig": "packages/nx-core/jest.config.ts",
2424
"passWithNoTests": true
2525
}
2626
},
2727
"build": {
28-
"executor": "@nrwl/js:tsc",
28+
"executor": "@nx/js:tsc",
2929
"outputs": ["{options.outputPath}"],
3030
"options": {
3131
"outputPath": "dist/packages/nx-core",

packages/nx-core/src/testing-utils/ensure-complex-nx-project.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { workspaceRoot } from '@nrwl/devkit';
2-
import { cleanup, runPackageManagerInstall, tmpProjPath } from '@nrwl/nx-plugin/testing';
1+
import { workspaceRoot } from '@nx/devkit';
2+
import { cleanup, runPackageManagerInstall, tmpProjPath } from '@nx/plugin/testing';
33
import { readFileSync, writeFileSync } from 'fs';
44
import { ensureDirSync } from 'fs-extra';
55
import { runNxNewCommand } from './run-nx-new-command';

packages/nx-core/src/testing-utils/run-nx-new-command.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { tmpProjPath } from '@nrwl/nx-plugin/testing';
1+
import { tmpProjPath } from '@nx/plugin/testing';
22
import { execSync } from 'child_process';
33
import { dirname } from 'path';
44

@@ -7,7 +7,7 @@ export function runNxNewCommand(args?: string, silent?: boolean) {
77
return execSync(
88
`node ${require.resolve(
99
'@nrwl/tao',
10-
)} new proj --nx-workspace-root=${localTmpDir} --no-interactive --skip-install --collection=@nrwl/workspace --npmScope=proj --preset=empty ${
10+
)} new proj --nx-workspace-root=${localTmpDir} --no-interactive --skip-install --collection=@nx/workspace --npmScope=proj --preset=empty ${
1111
args || ''
1212
}`,
1313
{

packages/nx-core/src/utils/get-project-configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ExecutorContext, ProjectConfiguration } from '@nrwl/devkit';
1+
import { ExecutorContext, ProjectConfiguration } from '@nx/devkit';
22

33
export function getProjectConfiguration(context: ExecutorContext): ProjectConfiguration {
44
return context.workspace.projects[context.projectName];

packages/nx-core/src/utils/normalize-options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getWorkspaceLayout, names, Tree } from '@nrwl/devkit';
1+
import { getWorkspaceLayout, names, Tree } from '@nx/devkit';
22

33
export interface NormalizedOptions {
44
projectName: string;

0 commit comments

Comments
 (0)