Skip to content

Commit

Permalink
chore(repo): move our migrations to 'generators' rather than 'schemat…
Browse files Browse the repository at this point in the history
…ics' (nrwl#16291)
  • Loading branch information
AgentEnder authored and peppoasap committed Apr 18, 2023
1 parent a4e475a commit 0816ae9
Show file tree
Hide file tree
Showing 40 changed files with 41 additions and 245 deletions.
2 changes: 1 addition & 1 deletion packages/angular/migrations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"schematics": {
"generators": {
"install-required-packages": {
"cli": "nx",
"version": "15.7.0-beta.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/angular/migrations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import json = require('./migrations.json');

describe('Angular migrations', () => {
it('should have valid paths', () => {
Object.values(json.schematics).forEach((m) => {
Object.values(json.generators).forEach((m) => {
expect(() =>
require.resolve(path.join(__dirname, `${m.factory}.ts`))
).not.toThrow();
Expand Down
2 changes: 1 addition & 1 deletion packages/cypress/migrations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"schematics": {
"generators": {
"remove-typescript-plugin": {
"cli": "nx",
"version": "12.8.0-beta.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/cypress/migrations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import json = require('./migrations.json');

describe('Cypress migrations', () => {
it('should have valid paths', () => {
Object.values((json as any)?.schematics || {}).forEach((m: any) => {
Object.values(json.generators || {}).forEach((m: any) => {
expect(() =>
require.resolve(path.join(__dirname, `${m.factory}.ts`))
).not.toThrow();
Expand Down
27 changes: 0 additions & 27 deletions packages/cypress/src/utils/testing.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/detox/migrations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"schematics": {
"generators": {
"add-build-target-test-13-5-0": {
"version": "13.5.0-beta.0",
"cli": "nx",
Expand Down
2 changes: 1 addition & 1 deletion packages/detox/migrations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import json = require('./migrations.json');

describe('Detox migrations', () => {
it('should have valid paths', () => {
Object.values((json as any)?.schematics || {}).forEach((m: any) => {
Object.values(json.generators).forEach((m: any) => {
expect(() =>
require.resolve(path.join(__dirname, `${m.factory}.ts`))
).not.toThrow();
Expand Down
2 changes: 1 addition & 1 deletion packages/expo/migrations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"schematics": {
"generators": {
"add-project-root-metro-config-14-0-0": {
"version": "14.0.1-beta.0",
"cli": "nx",
Expand Down
2 changes: 1 addition & 1 deletion packages/express/migrations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"schematics": {},
"generators": {},
"packageJsonUpdates": {
"13.7.0": {
"version": "13.7.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/express/migrations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import json = require('./migrations.json');

describe('Express migrations', () => {
it('should have valid paths', () => {
Object.values(json.schematics).forEach((m: any) => {
Object.values(json.generators).forEach((m: any) => {
expect(() =>
require.resolve(path.join(__dirname, `${m.factory}.ts`))
).not.toThrow();
Expand Down
2 changes: 1 addition & 1 deletion packages/jest/migrations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"schematics": {
"generators": {
"update-jest-preset-angular-8-4-0": {
"version": "12.1.0-beta.1",
"cli": "nx",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest/migrations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import json = require('./migrations.json');

describe('Jest migrations', () => {
it('should have valid paths', () => {
Object.values(json.schematics).forEach((m) => {
Object.values(json.generators).forEach((m) => {
expect(() =>
require.resolve(path.join(__dirname, `${m.factory}.ts`))
).not.toThrow();
Expand Down
37 changes: 0 additions & 37 deletions packages/jest/src/utils/testing.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/linter/migrations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"schematics": {
"generators": {
"remove-eslint-project-config-if-no-type-checking-rules": {
"cli": "nx",
"version": "12.4.0-beta.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/linter/migrations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import json = require('./migrations.json');

describe('Linter migrations', () => {
it('should have valid paths', () => {
Object.values(json.schematics).forEach((m) => {
Object.values(json.generators).forEach((m) => {
expect(() =>
require.resolve(path.join(__dirname, `${m.factory}.ts`))
).not.toThrow();
Expand Down
18 changes: 0 additions & 18 deletions packages/linter/src/utils/testing.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/nest/migrations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"schematics": {
"generators": {
"update-to-nest-8": {
"cli": "nx",
"version": "13.2.0-beta.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/nest/migrations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import json = require('./migrations.json');

describe('Nest migrations', () => {
it('should have valid paths', () => {
Object.values(json.schematics).forEach((m) => {
Object.values(json.generators).forEach((m) => {
expect(() =>
require.resolve(path.join(__dirname, `${m.factory}.ts`))
).not.toThrow();
Expand Down
2 changes: 1 addition & 1 deletion packages/next/migrations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"schematics": {
"generators": {
"fix-nextjs-lib-babel-config-12.8.0": {
"cli": "nx",
"version": "12.8.0-beta.11",
Expand Down
2 changes: 1 addition & 1 deletion packages/next/migrations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import json = require('./migrations.json');

describe('Next migrations', () => {
it('should have valid paths', () => {
Object.values(json.schematics).forEach((m) => {
Object.values(json.generators).forEach((m) => {
expect(() =>
require.resolve(path.join(__dirname, `${m.factory}.ts`))
).not.toThrow();
Expand Down
2 changes: 1 addition & 1 deletion packages/node/migrations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"schematics": {
"generators": {
"remove-webpack-5-packages": {
"cli": "nx",
"version": "13.0.0-beta.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/node/migrations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import json = require('./migrations.json');

describe('Node migrations', () => {
it('should have valid paths', () => {
Object.values(json.schematics).forEach((m) => {
Object.values(json.generators).forEach((m) => {
expect(() =>
require.resolve(path.join(__dirname, `${m.factory}.ts`))
).not.toThrow();
Expand Down
2 changes: 1 addition & 1 deletion packages/nx-plugin/migrations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"schematics": {
"generators": {
"add-swc-deps": {
"cli": "nx",
"version": "14.1.9-beta.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/migrations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"schematics": {
"generators": {
"update-jest-for-react-native": {
"version": "12.5.0-beta.0",
"cli": "nx",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/migrations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import json = require('./migrations.json');

describe('React Native migrations', () => {
it('should have valid paths', () => {
Object.values(json.schematics).forEach((m) => {
Object.values(json.generators).forEach((m) => {
expect(() =>
require.resolve(path.join(__dirname, `${m.factory}.ts`))
).not.toThrow();
Expand Down
2 changes: 1 addition & 1 deletion packages/react/migrations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"schematics": {
"generators": {
"use-react-jsx-in-tsconfig-12.0.0": {
"cli": "nx",
"version": "12.0.0-beta.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/migrations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import json = require('./migrations.json');

describe('React migrations', () => {
it('should have valid paths', () => {
Object.values(json.schematics).forEach((m) => {
Object.values(json.generators).forEach((m) => {
expect(() =>
require.resolve(path.join(__dirname, `${m.factory}.ts`))
).not.toThrow();
Expand Down
2 changes: 1 addition & 1 deletion packages/rollup/migrations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"schematics": {
"generators": {
"add-babel-inputs": {
"cli": "nx",
"version": "15.0.0-beta.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/rollup/migrations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import json = require('./migrations.json');

describe('Rollup migrations', () => {
it('should have valid paths', () => {
Object.values(json.schematics).forEach((m) => {
Object.values(json.generators).forEach((m) => {
expect(() =>
require.resolve(path.join(__dirname, `${m.factory}.ts`))
).not.toThrow();
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/migrations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"schematics": {
"generators": {
"update-13.4.6": {
"version": "13.4.6-beta.1",
"cli": "nx",
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/migrations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import json = require('./migrations.json');

describe('Storybook migrations', () => {
it('should have valid paths', () => {
Object.values(json.schematics).forEach((m) => {
Object.values(json.generators).forEach((m) => {
expect(() =>
require.resolve(path.join(__dirname, `${m.factory}.ts`))
).not.toThrow();
Expand Down
Loading

0 comments on commit 0816ae9

Please sign in to comment.