chore(repo): update nx to 12.5.0-beta.5

This commit is contained in:
Jason Jean 2021-06-24 16:17:05 -04:00
parent 5e6cf9646b
commit 4f7191e154
62 changed files with 2876 additions and 2328 deletions

View File

@ -131,3 +131,9 @@ Print additional error stack trace on failure
### version ### version
Show version number Show version number
### watch
Default: `false`
Watch for changes to dep graph and update in-browser

View File

@ -93,3 +93,9 @@ Bind the dep graph server to a specific port.
### version ### version
Show version number Show version number
### watch
Default: `false`
Watch for changes to dep graph and update in-browser

View File

@ -131,3 +131,9 @@ Print additional error stack trace on failure
### version ### version
Show version number Show version number
### watch
Default: `false`
Watch for changes to dep graph and update in-browser

View File

@ -93,3 +93,9 @@ Bind the dep graph server to a specific port.
### version ### version
Show version number Show version number
### watch
Default: `false`
Watch for changes to dep graph and update in-browser

View File

@ -131,3 +131,9 @@ Print additional error stack trace on failure
### version ### version
Show version number Show version number
### watch
Default: `false`
Watch for changes to dep graph and update in-browser

View File

@ -93,3 +93,9 @@ Bind the dep graph server to a specific port.
### version ### version
Show version number Show version number
### watch
Default: `false`
Watch for changes to dep graph and update in-browser

View File

@ -4,9 +4,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["nx-dev/data-access-documentation/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -4,9 +4,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["nx-dev/feature-analytics/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -4,9 +4,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["nx-dev/feature-doc-viewer/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -4,9 +4,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["nx-dev/feature-search/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

86
nx.json
View File

@ -43,47 +43,35 @@
"appsDir": "" "appsDir": ""
}, },
"projects": { "projects": {
"nx": {}, "angular": {
"tao": {}, "implicitDependencies": ["workspace", "cypress", "jest"]
"devkit": {},
"workspace": {},
"web": {},
"cypress": {},
"jest": {},
"react": {},
"storybook": {},
"nx-plugin": {},
"node": {},
"next": {},
"nest": {
"implicitDependencies": ["node", "linter"]
}, },
"linter": { "cli": {
"implicitDependencies": ["eslint-plugin-nx"]
},
"express": {
"implicitDependencies": ["node"]
},
"eslint-plugin-nx": {},
"create-nx-workspace": {
"implicitDependencies": ["workspace"] "implicitDependencies": ["workspace"]
}, },
"create-nx-plugin": { "create-nx-plugin": {
"implicitDependencies": ["nx-plugin"] "implicitDependencies": ["nx-plugin"]
}, },
"cli": { "create-nx-workspace": {
"implicitDependencies": ["workspace"] "implicitDependencies": ["workspace"]
}, },
"angular": { "cypress": {},
"implicitDependencies": ["workspace", "cypress", "jest"] "dep-graph-dep-graph": {
"tags": ["core"]
}, },
"e2e-utils": {}, "dep-graph-dep-graph-e2e": {
"e2e-cli": { "implicitDependencies": ["dep-graph-dep-graph"]
"implicitDependencies": ["cli"] },
"devkit": {},
"docs": {
"tags": ["scope:nx-dev"]
}, },
"e2e-angular": { "e2e-angular": {
"implicitDependencies": ["angular"] "implicitDependencies": ["angular"]
}, },
"e2e-cli": {
"implicitDependencies": ["cli"]
},
"e2e-cypress": { "e2e-cypress": {
"implicitDependencies": ["cypress"] "implicitDependencies": ["cypress"]
}, },
@ -111,49 +99,61 @@
"e2e-storybook": { "e2e-storybook": {
"implicitDependencies": ["storybook"] "implicitDependencies": ["storybook"]
}, },
"e2e-utils": {},
"e2e-web": { "e2e-web": {
"implicitDependencies": ["web"] "implicitDependencies": ["web"]
}, },
"e2e-workspace": { "e2e-workspace": {
"implicitDependencies": ["create-nx-workspace", "angular", "react"] "implicitDependencies": ["create-nx-workspace", "angular", "react"]
}, },
"eslint-plugin-nx": {},
"express": {
"implicitDependencies": ["node"]
},
"gatsby": { "gatsby": {
"tags": [] "tags": []
}, },
"dep-graph-dep-graph-e2e": { "jest": {},
"implicitDependencies": ["dep-graph-dep-graph"] "linter": {
"implicitDependencies": ["eslint-plugin-nx"]
}, },
"dep-graph-dep-graph": { "nest": {
"tags": ["core"] "implicitDependencies": ["node", "linter"]
}, },
"next": {},
"node": {},
"nx": {},
"nx-dev": { "nx-dev": {
"tags": ["scope:nx-dev", "type:app"], "tags": ["scope:nx-dev", "type:app"],
"implicitDependencies": ["docs"] "implicitDependencies": ["docs"]
}, },
"nx-dev-data-access-documents": {
"tags": ["scope:nx-dev", "type:data-access"]
},
"nx-dev-e2e": { "nx-dev-e2e": {
"tags": ["scope:nx-dev", "type:e2e"], "tags": ["scope:nx-dev", "type:e2e"],
"implicitDependencies": ["nx-dev"] "implicitDependencies": ["nx-dev"]
}, },
"nx-dev-ui-common": { "nx-dev-feature-analytics": {
"tags": ["scope:nx-dev", "type:ui"] "tags": ["scope:nx-dev", "type:feature"]
}, },
"nx-dev-feature-doc-viewer": { "nx-dev-feature-doc-viewer": {
"tags": ["scope:nx-dev", "type:feature"] "tags": ["scope:nx-dev", "type:feature"]
}, },
"nx-dev-data-access-documents": {
"tags": ["scope:nx-dev", "type:data-access"]
},
"nx-dev-feature-search": { "nx-dev-feature-search": {
"tags": ["scope:nx-dev", "type:feature"] "tags": ["scope:nx-dev", "type:feature"]
}, },
"docs": { "nx-dev-ui-common": {
"tags": ["scope:nx-dev"] "tags": ["scope:nx-dev", "type:ui"]
},
"nx-dev-feature-analytics": {
"tags": ["scope:nx-dev", "type:feature"]
}, },
"nx-plugin": {},
"react": {},
"storybook": {},
"tao": {},
"typedoc-theme": { "typedoc-theme": {
"tags": [] "tags": []
} },
"web": {},
"workspace": {}
} }
} }

View File

@ -60,17 +60,17 @@
"@ngrx/schematics": "12.0.0", "@ngrx/schematics": "12.0.0",
"@ngrx/store": "12.0.0", "@ngrx/store": "12.0.0",
"@ngrx/store-devtools": "12.0.0", "@ngrx/store-devtools": "12.0.0",
"@nrwl/cli": "12.3.0", "@nrwl/cli": "12.5.0-beta.5",
"@nrwl/cypress": "12.3.0", "@nrwl/cypress": "12.5.0-beta.5",
"@nrwl/eslint-plugin-nx": "12.3.0", "@nrwl/eslint-plugin-nx": "12.5.0-beta.5",
"@nrwl/jest": "12.3.0", "@nrwl/jest": "12.5.0-beta.5",
"@nrwl/linter": "12.3.0", "@nrwl/linter": "12.5.0-beta.5",
"@nrwl/next": "12.3.0", "@nrwl/next": "12.5.0-beta.5",
"@nrwl/node": "12.3.0", "@nrwl/node": "12.5.0-beta.5",
"@nrwl/nx-cloud": "12.1.1-beta.12", "@nrwl/nx-cloud": "12.2.7",
"@nrwl/tao": "12.3.0", "@nrwl/tao": "12.5.0-beta.5",
"@nrwl/web": "12.3.0", "@nrwl/web": "12.5.0-beta.5",
"@nrwl/workspace": "12.3.0", "@nrwl/workspace": "12.5.0-beta.5",
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3", "@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
"@popperjs/core": "^2.9.2", "@popperjs/core": "^2.9.2",
"@reduxjs/toolkit": "1.5.0", "@reduxjs/toolkit": "1.5.0",
@ -159,9 +159,9 @@
"jasmine-core": "~2.99.1", "jasmine-core": "~2.99.1",
"jasmine-marbles": "~0.6.0", "jasmine-marbles": "~0.6.0",
"jasmine-spec-reporter": "~4.2.1", "jasmine-spec-reporter": "~4.2.1",
"jest": "26.6.3", "jest": "27.0.3",
"jest-circus": "^26.6.3", "jest-circus": "^26.6.3",
"jest-preset-angular": "8.4.0", "jest-preset-angular": "9.0.3",
"jsonc-parser": "3.0.0", "jsonc-parser": "3.0.0",
"karma": "~4.0.0", "karma": "~4.0.0",
"karma-chrome-launcher": "~2.2.0", "karma-chrome-launcher": "~2.2.0",
@ -224,7 +224,7 @@
"tippy.js": "^6.3.1", "tippy.js": "^6.3.1",
"tmp": "~0.2.1", "tmp": "~0.2.1",
"tree-kill": "1.2.2", "tree-kill": "1.2.2",
"ts-jest": "26.5.5", "ts-jest": "27.0.3",
"ts-loader": "5.4.5", "ts-loader": "5.4.5",
"ts-node": "9.1.1", "ts-node": "9.1.1",
"tsconfig-paths": "^3.9.0", "tsconfig-paths": "^3.9.0",
@ -280,4 +280,4 @@
"ng-packagr/rxjs": "6.6.7", "ng-packagr/rxjs": "6.6.7",
"**/xmlhttprequest-ssl": "~1.6.2" "**/xmlhttprequest-ssl": "~1.6.2"
} }
} }

View File

@ -5,9 +5,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/angular/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -6,4 +6,5 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } }, globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'angular', displayName: 'angular',
testEnvironment: 'node',
}; };

View File

@ -5,9 +5,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/cli/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -6,4 +6,5 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } }, globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'cli', displayName: 'cli',
testEnvironment: 'node',
}; };

View File

@ -5,9 +5,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/create-nx-plugin/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -6,4 +6,5 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } }, globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'create-nx-plugin', displayName: 'create-nx-plugin',
testEnvironment: 'node',
}; };

View File

@ -13,9 +13,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/create-nx-workspace/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -6,4 +6,5 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } }, globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'create-nx-workspace', displayName: 'create-nx-workspace',
testEnvironment: 'node',
}; };

View File

@ -4,9 +4,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/cypress/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -6,4 +6,5 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } }, globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'cypress', displayName: 'cypress',
testEnvironment: 'node',
}; };

View File

@ -13,9 +13,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/devkit/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -6,4 +6,5 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } }, globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'cli', displayName: 'cli',
testEnvironment: 'node',
}; };

View File

@ -13,9 +13,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/eslint-plugin-nx/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -6,4 +6,5 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } }, globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'eslint-plugin-nx', displayName: 'eslint-plugin-nx',
testEnvironment: 'node',
}; };

View File

@ -5,9 +5,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/express/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -6,4 +6,5 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } }, globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'express', displayName: 'express',
testEnvironment: 'node',
}; };

View File

@ -4,9 +4,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/gatsby/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -6,4 +6,5 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } }, globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'gatsby', displayName: 'gatsby',
testEnvironment: 'node',
}; };

View File

@ -4,9 +4,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/jest/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -6,4 +6,5 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } }, globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'jest', displayName: 'jest',
testEnvironment: 'node',
}; };

View File

@ -1,5 +1,5 @@
import { dirname, extname } from 'path'; import { dirname, extname } from 'path';
import defaultResolver from 'jest-resolve/build/defaultResolver'; import type defaultResolver from 'jest-resolve/build/defaultResolver';
interface ResolveOptions { interface ResolveOptions {
rootDir: string; rootDir: string;
@ -50,7 +50,7 @@ module.exports = function (path: string, options: ResolveOptions) {
} }
// Try to use the defaultResolver // Try to use the defaultResolver
try { try {
return defaultResolver(path, options); return options.defaultResolver(path, options);
} catch (e) { } catch (e) {
if ( if (
path === 'jest-sequencer-@jest/test-sequencer' || path === 'jest-sequencer-@jest/test-sequencer' ||

View File

@ -4,9 +4,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/linter/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -6,4 +6,5 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } }, globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'linter', displayName: 'linter',
testEnvironment: 'node',
}; };

View File

@ -5,9 +5,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/nest/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -6,4 +6,5 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } }, globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'nest', displayName: 'nest',
testEnvironment: 'node',
}; };

View File

@ -4,9 +4,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/next/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -6,4 +6,5 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } }, globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'next', displayName: 'next',
testEnvironment: 'node',
}; };

View File

@ -5,9 +5,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/node/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -6,4 +6,5 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } }, globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'node', displayName: 'node',
testEnvironment: 'node',
}; };

View File

@ -5,9 +5,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/nx-plugin/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -6,4 +6,5 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } }, globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'nx-plugin', displayName: 'nx-plugin',
testEnvironment: 'node',
}; };

View File

@ -5,9 +5,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/nx/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -4,9 +4,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/react/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -6,4 +6,5 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } }, globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'react', displayName: 'react',
testEnvironment: 'node',
}; };

View File

@ -4,9 +4,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/storybook/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -8,4 +8,5 @@ module.exports = {
'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' }, 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' },
}, },
displayName: 'storybook', displayName: 'storybook',
testEnvironment: 'node',
}; };

View File

@ -13,9 +13,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/tao/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -6,4 +6,5 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } }, globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'tao', displayName: 'tao',
testEnvironment: 'node',
}; };

View File

@ -4,9 +4,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/web/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -6,4 +6,5 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } }, globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'web', displayName: 'web',
testEnvironment: 'node',
}; };

View File

@ -4,9 +4,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/workspace/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

View File

@ -6,4 +6,5 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } }, globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'workspace', displayName: 'workspace',
testEnvironment: 'node',
}; };

View File

@ -164,8 +164,8 @@ describe('Command Runner Builder', () => {
); );
expect(result).toEqual(expect.objectContaining({ success: true })); expect(result).toEqual(expect.objectContaining({ success: true }));
const contents = readFile(f); const contents = readFile(f);
expect(contents).toContain(1); expect(contents).toContain('1');
expect(contents).toContain(2); expect(contents).toContain('2');
}); });
describe('readyWhen', () => { describe('readyWhen', () => {

View File

@ -47,7 +47,7 @@ describe('removeProjectConfig', () => {
}); });
}); });
describe('delete project', async () => { describe('delete project', () => {
beforeEach(async () => { beforeEach(async () => {
schema = { schema = {
projectName: 'ng-app', projectName: 'ng-app',

View File

@ -174,7 +174,7 @@ describe('renameNpmPackages Rule', () => {
expect(tree.read(appImportFile).toString()).toContain( expect(tree.read(appImportFile).toString()).toContain(
`import { something } from '@package/renamed'` `import { something } from '@package/renamed'`
); );
}); }, 60000);
it('should only update libs / apps that import the npm package as a dep', async () => { it('should only update libs / apps that import the npm package as a dep', async () => {
tree.overwrite( tree.overwrite(

View File

@ -2,7 +2,6 @@
Object.defineProperty(exports, '__esModule', { value: true }); Object.defineProperty(exports, '__esModule', { value: true });
const path_1 = require('path'); const path_1 = require('path');
const ts = require('typescript'); const ts = require('typescript');
const defaultResolver_1 = require('jest-resolve/build/defaultResolver');
function getCompilerSetup(rootDir) { function getCompilerSetup(rootDir) {
const tsConfigPath = const tsConfigPath =
ts.findConfigFile(rootDir, ts.sys.fileExists, 'tsconfig.spec.json') || ts.findConfigFile(rootDir, ts.sys.fileExists, 'tsconfig.spec.json') ||
@ -56,7 +55,7 @@ module.exports = function (path, options) {
if (path.indexOf('@nrwl/workspace') > -1) { if (path.indexOf('@nrwl/workspace') > -1) {
throw 'Reference to local Nx package found. Use local version instead.'; throw 'Reference to local Nx package found. Use local version instead.';
} }
return defaultResolver_1.default(path, options); return options.defaultResolver(path, options);
} catch (e) { } catch (e) {
// Fallback to using typescript // Fallback to using typescript
compilerSetup = compilerSetup || getCompilerSetup(options.rootDir); compilerSetup = compilerSetup || getCompilerSetup(options.rootDir);

View File

@ -16,47 +16,47 @@
"baseUrl": ".", "baseUrl": ".",
"rootDir": ".", "rootDir": ".",
"paths": { "paths": {
"@nrwl/tao": ["./packages/tao"], "@nrwl/angular": ["./packages/angular"],
"@nrwl/tao/*": ["./packages/tao/*"], "@nrwl/angular/*": ["./packages/angular/*"],
"@nrwl/devkit": ["./packages/devkit"],
"@nrwl/devkit/testing": ["./packages/devkit/testing"],
"@nrwl/devkit/ngcli-adapter": ["./packages/devkit/ngcli-adapter"],
"@nrwl/workspace": ["./packages/workspace"],
"@nrwl/workspace/*": ["./packages/workspace/*"],
"@nrwl/cli": ["./packages/cli"], "@nrwl/cli": ["./packages/cli"],
"@nrwl/cli/*": ["./packages/cli/*"], "@nrwl/cli/*": ["./packages/cli/*"],
"@nrwl/cypress": ["./packages/cypress"], "@nrwl/cypress": ["./packages/cypress"],
"@nrwl/cypress/*": ["./packages/cypress/*"], "@nrwl/cypress/*": ["./packages/cypress/*"],
"@nrwl/devkit": ["./packages/devkit"],
"@nrwl/devkit/ngcli-adapter": ["./packages/devkit/ngcli-adapter"],
"@nrwl/devkit/testing": ["./packages/devkit/testing"],
"@nrwl/e2e/cli": ["./e2e/cli"],
"@nrwl/e2e/utils": ["./e2e/utils"],
"@nrwl/express": ["./packages/express"], "@nrwl/express": ["./packages/express"],
"@nrwl/gatsby": ["./packages/gatsby"], "@nrwl/gatsby": ["./packages/gatsby"],
"@nrwl/jest": ["./packages/jest"],
"@nrwl/linter": ["./packages/linter"],
"@nrwl/nest": ["./packages/nest"], "@nrwl/nest": ["./packages/nest"],
"@nrwl/next": ["./packages/next"], "@nrwl/next": ["./packages/next"],
"@nrwl/node": ["./packages/node"], "@nrwl/node": ["./packages/node"],
"@nrwl/node/*": ["./packages/node/*"], "@nrwl/node/*": ["./packages/node/*"],
"@nrwl/linter": ["./packages/linter"],
"@nrwl/jest": ["./packages/jest"],
"@nrwl/workspace/testing": ["./packages/workspace/testing"],
"@nrwl/react": ["./packages/react"],
"@nrwl/react/*": ["./packages/react/*"],
"@nrwl/storybook": ["./packages/storybook"],
"@nrwl/web": ["./packages/web"],
"@nrwl/web/*": ["./packages/web/*"],
"@nrwl/angular": ["./packages/angular"],
"@nrwl/angular/*": ["./packages/angular/*"],
"@nrwl/e2e/utils": ["./e2e/utils"],
"@nrwl/e2e/cli": ["./e2e/cli"],
"@nrwl/nx-dev/ui/common": ["./nx-dev/ui/common/src/index.ts"],
"@nrwl/nx-dev/feature-doc-viewer": [
"./nx-dev/feature-doc-viewer/src/index.ts"
],
"@nrwl/nx-dev/data-access-documents": [ "@nrwl/nx-dev/data-access-documents": [
"./nx-dev/data-access-documents/src/index.ts" "./nx-dev/data-access-documents/src/index.ts"
], ],
"@nrwl/nx-dev/feature-search": ["./nx-dev/feature-search/src/index.ts"],
"@nrwl/nx-dev/feature-analytics": [ "@nrwl/nx-dev/feature-analytics": [
"./nx-dev/feature-analytics/src/index.ts" "./nx-dev/feature-analytics/src/index.ts"
], ],
"@nrwl/typedoc-theme": ["/typedoc-theme/src/index.ts"] "@nrwl/nx-dev/feature-doc-viewer": [
"./nx-dev/feature-doc-viewer/src/index.ts"
],
"@nrwl/nx-dev/feature-search": ["./nx-dev/feature-search/src/index.ts"],
"@nrwl/nx-dev/ui/common": ["./nx-dev/ui/common/src/index.ts"],
"@nrwl/react": ["./packages/react"],
"@nrwl/react/*": ["./packages/react/*"],
"@nrwl/storybook": ["./packages/storybook"],
"@nrwl/tao": ["./packages/tao"],
"@nrwl/tao/*": ["./packages/tao/*"],
"@nrwl/typedoc-theme": ["/typedoc-theme/src/index.ts"],
"@nrwl/web": ["./packages/web"],
"@nrwl/web/*": ["./packages/web/*"],
"@nrwl/workspace": ["./packages/workspace"],
"@nrwl/workspace/*": ["./packages/workspace/*"],
"@nrwl/workspace/testing": ["./packages/workspace/testing"]
} }
} }
} }

View File

@ -4,9 +4,6 @@
"overrides": [ "overrides": [
{ {
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["./typedoc-theme/tsconfig.*?.json"]
},
"rules": {} "rules": {}
}, },
{ {

File diff suppressed because it is too large Load Diff

1445
yarn.lock

File diff suppressed because it is too large Load Diff