Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Commit

Permalink
update nx version to 12.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongemi committed Jun 18, 2021
1 parent 9e0c3a8 commit c15b859
Show file tree
Hide file tree
Showing 10 changed files with 944 additions and 620 deletions.
File renamed without changes.
28 changes: 28 additions & 0 deletions migrations.json
@@ -0,0 +1,28 @@
{
"migrations": [
{
"version": "12.4.0-beta.1",
"cli": "nx",
"description": "Add testEnvironment: 'jsdom' in web apps + libraries",
"factory": "./src/migrations/update-12-4-0/add-test-environment-for-node",
"package": "@nrwl/jest",
"name": "support-jest-27"
},
{
"version": "12.4.0-beta.1",
"cli": "nx",
"description": "Support for Jest 27 via updating ts-jest + jest-preset-angular",
"factory": "./src/migrations/update-12-4-0/update-jest-preset-angular",
"package": "@nrwl/jest",
"name": "update-ts-jest-and-jest-preset-angular"
},
{
"cli": "nx",
"version": "12.4.0-beta.0",
"description": "Remove ESLint parserOptions.project config if no rules requiring type-checking are in use",
"factory": "./src/migrations/update-12-4-0/remove-eslint-project-config-if-no-type-checking-rules",
"package": "@nrwl/linter",
"name": "remove-eslint-project-config-if-no-type-checking-rules"
}
]
}
18 changes: 9 additions & 9 deletions package.json
Expand Up @@ -34,13 +34,13 @@
"@babel/plugin-transform-flow-strip-types": "^7.13.0",
"@babel/plugin-transform-object-assign": "^7.12.13",
"@babel/plugin-transform-react-jsx-source": "^7.14.2",
"@nrwl/devkit": "12.3.6",
"@nrwl/eslint-plugin-nx": "12.3.6",
"@nrwl/jest": "12.3.6",
"@nrwl/nx-plugin": "12.3.6",
"@nrwl/react": "12.3.6",
"@nrwl/tao": "12.3.6",
"@nrwl/workspace": "12.3.6",
"@nrwl/devkit": "12.4.0",
"@nrwl/eslint-plugin-nx": "12.4.0",
"@nrwl/jest": "12.4.0",
"@nrwl/nx-plugin": "12.4.0",
"@nrwl/react": "12.4.0",
"@nrwl/tao": "12.4.0",
"@nrwl/workspace": "12.4.0",
"@types/jest": "26.0.8",
"@types/node": "12.12.38",
"@typescript-eslint/eslint-plugin": "2.19.2",
Expand All @@ -51,11 +51,11 @@
"eslint": "7.14.0",
"eslint-config-prettier": "6.0.0",
"ignore": "^5.1.8",
"jest": "26.6.3",
"jest": "27.0.3",
"metro-resolver": "0.66.0",
"node-fetch": "^2.6.1",
"prettier": "2.2.1",
"ts-jest": "26.1.4",
"ts-jest": "27.0.3",
"ts-node": "9.1.1",
"tslint": "6.1.3",
"typescript": "4.0.5"
Expand Down
1 change: 1 addition & 0 deletions packages/react-native/jest.config.js
Expand Up @@ -11,4 +11,5 @@ module.exports = {
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/packages/react-native',
testEnvironment: 'node',
};
11 changes: 11 additions & 0 deletions packages/react-native/migrations.json
Expand Up @@ -99,6 +99,17 @@
"alwaysAddToPackageJson": false
}
}
},
"12.4.0": {
"version": "12.4.0-beta.0",
"packages": {
"@nrwl/jest": { "version": "12.4.0", "alwaysAddToPackageJson": false },
"@nrwl/linter": {
"version": "12.4.0",
"alwaysAddToPackageJson": false
},
"@nrwl/react": { "version": "12.4.0", "alwaysAddToPackageJson": false }
}
}
}
}
8 changes: 4 additions & 4 deletions packages/react-native/package.json
@@ -1,6 +1,6 @@
{
"name": "@nrwl/react-native",
"version": "12.3.6",
"version": "12.4.0",
"description": "React Native Plugin for Nx",
"keywords": [
"Monorepo",
Expand All @@ -25,9 +25,9 @@
"dependencies": {
"@angular-devkit/architect": "^0.1200.0",
"@angular-devkit/schematics": "^12.0.0",
"@nrwl/jest": "12.3.6",
"@nrwl/linter": "12.3.6",
"@nrwl/react": "12.3.6",
"@nrwl/jest": "12.4.0",
"@nrwl/linter": "12.4.0",
"@nrwl/react": "12.4.0",
"chalk": "^4.1.0",
"ignore": "^5.1.8",
"node-fetch": "2.6.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/src/utils/versions.ts
@@ -1,4 +1,4 @@
export const nxVersion = '12.3.6';
export const nxVersion = '12.4.0';

export const reactVersion = '17.0.1';
export const typesReactVersion = '17.0.6';
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/publish.js
Expand Up @@ -30,7 +30,7 @@ if (!version) {
throw new Error('Need the version');
}
const projectMeta = getProject(project);
const outputPath = projectMeta.targets.build.options.outputPath;
const outputPath = projectMeta.architect.build.options.outputPath;
if (!existsSync(outputPath)) {
throw new Error('Must build the project first');
}
Expand Down
2 changes: 1 addition & 1 deletion workspace.json
Expand Up @@ -6,7 +6,7 @@
"sourceRoot": "packages/react-native/src",
"projectType": "library",
"schematics": {},
"targets": {
"architect": {
"lint": {
"builder": "@nrwl/linter:lint",
"options": {
Expand Down

0 comments on commit c15b859

Please sign in to comment.