Skip to content

Commit 59c525d

Browse files
author
Dario Rodriguez Gonzalez
committed
fix(schematics): remove references to runSchematic
1 parent 0c5a426 commit 59c525d

11 files changed

Lines changed: 36 additions & 21 deletions

File tree

packages/cli/bin/devon4node

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
'use strict';
44

5-
const devon4node = require("../dist/devon4node");
5+
const devon4node = require('../dist/devon4node');
66

77
try {
88
devon4node.executable();

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build": "tsc -p tsconfig.json",
1111
"build:prod": "tsc -p tsconfig.build.json",
1212
"format": "prettier --write \"src/**/*.ts\"",
13-
"lint": "eslint {src,apps,libs,test}/**/*.ts --fix",
13+
"lint": "eslint src/**/*.ts --fix",
1414
"test": "npm run build && jasmine src/**/*.spec.js",
1515
"prepublish:npm": "npm run build:prod",
1616
"publish:npm": "npm publish --access public",

packages/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"publish:next": "npm publish --access public --tag next",
1212
"test": "jest",
1313
"format": "prettier --write \"**/*.ts\"",
14-
"lint": "eslint {utils,serializer}/**/*.ts --fix"
14+
"lint": "eslint serializer/**/*.ts --fix"
1515
},
1616
"keywords": [
1717
"nestjs",

packages/config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"prepublish:next": "npm run build",
1111
"publish:next": "npm publish --access public --tag next",
1212
"format": "prettier --write \"lib/**/*.ts\"",
13-
"lint": "eslint {src,apps,lib,test}/**/*.ts --fix",
13+
"lint": "eslint {lib,test}/**/*.ts --fix",
1414
"test": "jest",
1515
"test:watch": "jest --watch",
1616
"test:cov": "jest --coverage",

packages/mailer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"publish:next": "npm publish --access public --tag next",
1212
"test": "jest",
1313
"format": "prettier --write \"lib/**/*.ts\"",
14-
"lint": "eslint {src,apps,lib,test}/**/*.ts --fix"
14+
"lint": "eslint lib/**/*.ts --fix"
1515
},
1616
"keywords": [
1717
"nestjs",

packages/schematics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"build": "tsc -p tsconfig.json",
77
"format": "prettier --write \"src/**/*.ts\" \"!src/**/files/**/*\"",
8-
"lint": "eslint {src,apps,libs,test}/**/*.ts --fix",
8+
"lint": "eslint src/**/*.ts --fix",
99
"test": "npm run build && jasmine src/**/*_spec.js",
1010
"rm": "rm -r src/**/*.js && rm -r src/**/*.d.ts && rm -r src/**/*.js.map",
1111
"copy:schemas": "cp node_modules/@nestjs/schematics/dist/lib/module/schema.json src/lib/module/schema.json && cp node_modules/@nestjs/schematics/dist/lib/filter/schema.json src/lib/filter/schema.json && cp node_modules/@nestjs/schematics/dist/lib/guard/schema.json src/lib/guard/schema.json && cp node_modules/@nestjs/schematics/dist/lib/interceptor/schema.json src/lib/interceptor/schema.json && cp node_modules/@nestjs/schematics/dist/lib/middleware/schema.json src/lib/middleware/schema.json && cp node_modules/@nestjs/schematics/dist/lib/pipe/schema.json src/lib/pipe/schema.json",

packages/schematics/src/lib/allinone/all-in-one.factory_spec.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ import * as path from 'path';
55
const collectionPath = path.join(__dirname, '../collection.json');
66

77
describe('schematics', () => {
8-
it('works', () => {
8+
it('works', done => {
99
const runner = new SchematicTestRunner('schematics', collectionPath);
10-
const tree = runner.runSchematic('schematics', {}, Tree.empty());
10+
const obsTree = runner.runSchematicAsync('schematics', {}, Tree.empty());
1111

12-
expect(tree.files).toEqual([]);
12+
obsTree.subscribe(tree => {
13+
expect(tree.files).toEqual([]);
14+
done();
15+
});
1316
});
1417
});

packages/schematics/src/lib/config-module/config-module.factory_spec.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ import * as path from 'path';
55
const collectionPath = path.join(__dirname, '../collection.json');
66

77
describe('schematics', () => {
8-
it('works', () => {
8+
it('works', done => {
99
const runner = new SchematicTestRunner('schematics', collectionPath);
10-
const tree = runner.runSchematic('schematics', {}, Tree.empty());
10+
const obsTree = runner.runSchematicAsync('schematics', {}, Tree.empty());
1111

12-
expect(tree.files).toEqual([]);
12+
obsTree.subscribe(tree => {
13+
expect(tree.files).toEqual([]);
14+
done();
15+
});
1316
});
1417
});

packages/schematics/src/lib/devon4node-application/devon4node-application.factory_spec.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ import * as path from 'path';
55
const collectionPath = path.join(__dirname, '../collection.json');
66

77
describe('schematics', () => {
8-
it('works', () => {
8+
it('works', done => {
99
const runner = new SchematicTestRunner('schematics', collectionPath);
10-
const tree = runner.runSchematic('schematics', {}, Tree.empty());
10+
const obsTree = runner.runSchematicAsync('schematics', {}, Tree.empty());
1111

12-
expect(tree.files).toEqual([]);
12+
obsTree.subscribe(tree => {
13+
expect(tree.files).toEqual([]);
14+
done();
15+
});
1316
});
1417
});

packages/schematics/src/lib/init-typeorm/init-typeorm.factory_spec.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ import * as path from 'path';
55
const collectionPath = path.join(__dirname, '../collection.json');
66

77
describe('schematics', () => {
8-
it('works', () => {
8+
it('works', done => {
99
const runner = new SchematicTestRunner('schematics', collectionPath);
10-
const tree = runner.runSchematic('schematics', {}, Tree.empty());
10+
const obsTree = runner.runSchematicAsync('schematics', {}, Tree.empty());
1111

12-
expect(tree.files).toEqual([]);
12+
obsTree.subscribe(tree => {
13+
expect(tree.files).toEqual([]);
14+
done();
15+
});
1316
});
1417
});

0 commit comments

Comments
 (0)