chore(repo): update nx to 12.5.0-beta.5
This commit is contained in:
parent
5e6cf9646b
commit
4f7191e154
@ -131,3 +131,9 @@ Print additional error stack trace on failure
|
||||
### version
|
||||
|
||||
Show version number
|
||||
|
||||
### watch
|
||||
|
||||
Default: `false`
|
||||
|
||||
Watch for changes to dep graph and update in-browser
|
||||
|
||||
@ -93,3 +93,9 @@ Bind the dep graph server to a specific port.
|
||||
### version
|
||||
|
||||
Show version number
|
||||
|
||||
### watch
|
||||
|
||||
Default: `false`
|
||||
|
||||
Watch for changes to dep graph and update in-browser
|
||||
|
||||
@ -131,3 +131,9 @@ Print additional error stack trace on failure
|
||||
### version
|
||||
|
||||
Show version number
|
||||
|
||||
### watch
|
||||
|
||||
Default: `false`
|
||||
|
||||
Watch for changes to dep graph and update in-browser
|
||||
|
||||
@ -93,3 +93,9 @@ Bind the dep graph server to a specific port.
|
||||
### version
|
||||
|
||||
Show version number
|
||||
|
||||
### watch
|
||||
|
||||
Default: `false`
|
||||
|
||||
Watch for changes to dep graph and update in-browser
|
||||
|
||||
@ -131,3 +131,9 @@ Print additional error stack trace on failure
|
||||
### version
|
||||
|
||||
Show version number
|
||||
|
||||
### watch
|
||||
|
||||
Default: `false`
|
||||
|
||||
Watch for changes to dep graph and update in-browser
|
||||
|
||||
@ -93,3 +93,9 @@ Bind the dep graph server to a specific port.
|
||||
### version
|
||||
|
||||
Show version number
|
||||
|
||||
### watch
|
||||
|
||||
Default: `false`
|
||||
|
||||
Watch for changes to dep graph and update in-browser
|
||||
|
||||
@ -4,9 +4,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["nx-dev/data-access-documentation/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -4,9 +4,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["nx-dev/feature-analytics/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -4,9 +4,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["nx-dev/feature-doc-viewer/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -4,9 +4,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["nx-dev/feature-search/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
86
nx.json
86
nx.json
@ -43,47 +43,35 @@
|
||||
"appsDir": ""
|
||||
},
|
||||
"projects": {
|
||||
"nx": {},
|
||||
"tao": {},
|
||||
"devkit": {},
|
||||
"workspace": {},
|
||||
"web": {},
|
||||
"cypress": {},
|
||||
"jest": {},
|
||||
"react": {},
|
||||
"storybook": {},
|
||||
"nx-plugin": {},
|
||||
"node": {},
|
||||
"next": {},
|
||||
"nest": {
|
||||
"implicitDependencies": ["node", "linter"]
|
||||
"angular": {
|
||||
"implicitDependencies": ["workspace", "cypress", "jest"]
|
||||
},
|
||||
"linter": {
|
||||
"implicitDependencies": ["eslint-plugin-nx"]
|
||||
},
|
||||
"express": {
|
||||
"implicitDependencies": ["node"]
|
||||
},
|
||||
"eslint-plugin-nx": {},
|
||||
"create-nx-workspace": {
|
||||
"cli": {
|
||||
"implicitDependencies": ["workspace"]
|
||||
},
|
||||
"create-nx-plugin": {
|
||||
"implicitDependencies": ["nx-plugin"]
|
||||
},
|
||||
"cli": {
|
||||
"create-nx-workspace": {
|
||||
"implicitDependencies": ["workspace"]
|
||||
},
|
||||
"angular": {
|
||||
"implicitDependencies": ["workspace", "cypress", "jest"]
|
||||
"cypress": {},
|
||||
"dep-graph-dep-graph": {
|
||||
"tags": ["core"]
|
||||
},
|
||||
"e2e-utils": {},
|
||||
"e2e-cli": {
|
||||
"implicitDependencies": ["cli"]
|
||||
"dep-graph-dep-graph-e2e": {
|
||||
"implicitDependencies": ["dep-graph-dep-graph"]
|
||||
},
|
||||
"devkit": {},
|
||||
"docs": {
|
||||
"tags": ["scope:nx-dev"]
|
||||
},
|
||||
"e2e-angular": {
|
||||
"implicitDependencies": ["angular"]
|
||||
},
|
||||
"e2e-cli": {
|
||||
"implicitDependencies": ["cli"]
|
||||
},
|
||||
"e2e-cypress": {
|
||||
"implicitDependencies": ["cypress"]
|
||||
},
|
||||
@ -111,49 +99,61 @@
|
||||
"e2e-storybook": {
|
||||
"implicitDependencies": ["storybook"]
|
||||
},
|
||||
"e2e-utils": {},
|
||||
"e2e-web": {
|
||||
"implicitDependencies": ["web"]
|
||||
},
|
||||
"e2e-workspace": {
|
||||
"implicitDependencies": ["create-nx-workspace", "angular", "react"]
|
||||
},
|
||||
"eslint-plugin-nx": {},
|
||||
"express": {
|
||||
"implicitDependencies": ["node"]
|
||||
},
|
||||
"gatsby": {
|
||||
"tags": []
|
||||
},
|
||||
"dep-graph-dep-graph-e2e": {
|
||||
"implicitDependencies": ["dep-graph-dep-graph"]
|
||||
"jest": {},
|
||||
"linter": {
|
||||
"implicitDependencies": ["eslint-plugin-nx"]
|
||||
},
|
||||
"dep-graph-dep-graph": {
|
||||
"tags": ["core"]
|
||||
"nest": {
|
||||
"implicitDependencies": ["node", "linter"]
|
||||
},
|
||||
"next": {},
|
||||
"node": {},
|
||||
"nx": {},
|
||||
"nx-dev": {
|
||||
"tags": ["scope:nx-dev", "type:app"],
|
||||
"implicitDependencies": ["docs"]
|
||||
},
|
||||
"nx-dev-data-access-documents": {
|
||||
"tags": ["scope:nx-dev", "type:data-access"]
|
||||
},
|
||||
"nx-dev-e2e": {
|
||||
"tags": ["scope:nx-dev", "type:e2e"],
|
||||
"implicitDependencies": ["nx-dev"]
|
||||
},
|
||||
"nx-dev-ui-common": {
|
||||
"tags": ["scope:nx-dev", "type:ui"]
|
||||
"nx-dev-feature-analytics": {
|
||||
"tags": ["scope:nx-dev", "type:feature"]
|
||||
},
|
||||
"nx-dev-feature-doc-viewer": {
|
||||
"tags": ["scope:nx-dev", "type:feature"]
|
||||
},
|
||||
"nx-dev-data-access-documents": {
|
||||
"tags": ["scope:nx-dev", "type:data-access"]
|
||||
},
|
||||
"nx-dev-feature-search": {
|
||||
"tags": ["scope:nx-dev", "type:feature"]
|
||||
},
|
||||
"docs": {
|
||||
"tags": ["scope:nx-dev"]
|
||||
},
|
||||
"nx-dev-feature-analytics": {
|
||||
"tags": ["scope:nx-dev", "type:feature"]
|
||||
"nx-dev-ui-common": {
|
||||
"tags": ["scope:nx-dev", "type:ui"]
|
||||
},
|
||||
"nx-plugin": {},
|
||||
"react": {},
|
||||
"storybook": {},
|
||||
"tao": {},
|
||||
"typedoc-theme": {
|
||||
"tags": []
|
||||
}
|
||||
},
|
||||
"web": {},
|
||||
"workspace": {}
|
||||
}
|
||||
}
|
||||
|
||||
28
package.json
28
package.json
@ -60,17 +60,17 @@
|
||||
"@ngrx/schematics": "12.0.0",
|
||||
"@ngrx/store": "12.0.0",
|
||||
"@ngrx/store-devtools": "12.0.0",
|
||||
"@nrwl/cli": "12.3.0",
|
||||
"@nrwl/cypress": "12.3.0",
|
||||
"@nrwl/eslint-plugin-nx": "12.3.0",
|
||||
"@nrwl/jest": "12.3.0",
|
||||
"@nrwl/linter": "12.3.0",
|
||||
"@nrwl/next": "12.3.0",
|
||||
"@nrwl/node": "12.3.0",
|
||||
"@nrwl/nx-cloud": "12.1.1-beta.12",
|
||||
"@nrwl/tao": "12.3.0",
|
||||
"@nrwl/web": "12.3.0",
|
||||
"@nrwl/workspace": "12.3.0",
|
||||
"@nrwl/cli": "12.5.0-beta.5",
|
||||
"@nrwl/cypress": "12.5.0-beta.5",
|
||||
"@nrwl/eslint-plugin-nx": "12.5.0-beta.5",
|
||||
"@nrwl/jest": "12.5.0-beta.5",
|
||||
"@nrwl/linter": "12.5.0-beta.5",
|
||||
"@nrwl/next": "12.5.0-beta.5",
|
||||
"@nrwl/node": "12.5.0-beta.5",
|
||||
"@nrwl/nx-cloud": "12.2.7",
|
||||
"@nrwl/tao": "12.5.0-beta.5",
|
||||
"@nrwl/web": "12.5.0-beta.5",
|
||||
"@nrwl/workspace": "12.5.0-beta.5",
|
||||
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
|
||||
"@popperjs/core": "^2.9.2",
|
||||
"@reduxjs/toolkit": "1.5.0",
|
||||
@ -159,9 +159,9 @@
|
||||
"jasmine-core": "~2.99.1",
|
||||
"jasmine-marbles": "~0.6.0",
|
||||
"jasmine-spec-reporter": "~4.2.1",
|
||||
"jest": "26.6.3",
|
||||
"jest": "27.0.3",
|
||||
"jest-circus": "^26.6.3",
|
||||
"jest-preset-angular": "8.4.0",
|
||||
"jest-preset-angular": "9.0.3",
|
||||
"jsonc-parser": "3.0.0",
|
||||
"karma": "~4.0.0",
|
||||
"karma-chrome-launcher": "~2.2.0",
|
||||
@ -224,7 +224,7 @@
|
||||
"tippy.js": "^6.3.1",
|
||||
"tmp": "~0.2.1",
|
||||
"tree-kill": "1.2.2",
|
||||
"ts-jest": "26.5.5",
|
||||
"ts-jest": "27.0.3",
|
||||
"ts-loader": "5.4.5",
|
||||
"ts-node": "9.1.1",
|
||||
"tsconfig-paths": "^3.9.0",
|
||||
|
||||
@ -5,9 +5,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["packages/angular/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -6,4 +6,5 @@ module.exports = {
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
|
||||
displayName: 'angular',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
|
||||
@ -5,9 +5,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["packages/cli/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -6,4 +6,5 @@ module.exports = {
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
|
||||
displayName: 'cli',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
|
||||
@ -5,9 +5,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["packages/create-nx-plugin/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -6,4 +6,5 @@ module.exports = {
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
|
||||
displayName: 'create-nx-plugin',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
|
||||
@ -13,9 +13,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["packages/create-nx-workspace/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -6,4 +6,5 @@ module.exports = {
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
|
||||
displayName: 'create-nx-workspace',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
|
||||
@ -4,9 +4,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["packages/cypress/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -6,4 +6,5 @@ module.exports = {
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
|
||||
displayName: 'cypress',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
|
||||
@ -13,9 +13,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["packages/devkit/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -6,4 +6,5 @@ module.exports = {
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
|
||||
displayName: 'cli',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
|
||||
@ -13,9 +13,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["packages/eslint-plugin-nx/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -6,4 +6,5 @@ module.exports = {
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
|
||||
displayName: 'eslint-plugin-nx',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
|
||||
@ -5,9 +5,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["packages/express/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -6,4 +6,5 @@ module.exports = {
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
|
||||
displayName: 'express',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
|
||||
@ -4,9 +4,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["packages/gatsby/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -6,4 +6,5 @@ module.exports = {
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
|
||||
displayName: 'gatsby',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
|
||||
@ -4,9 +4,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["packages/jest/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -6,4 +6,5 @@ module.exports = {
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
|
||||
displayName: 'jest',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { dirname, extname } from 'path';
|
||||
import defaultResolver from 'jest-resolve/build/defaultResolver';
|
||||
import type defaultResolver from 'jest-resolve/build/defaultResolver';
|
||||
|
||||
interface ResolveOptions {
|
||||
rootDir: string;
|
||||
@ -50,7 +50,7 @@ module.exports = function (path: string, options: ResolveOptions) {
|
||||
}
|
||||
// Try to use the defaultResolver
|
||||
try {
|
||||
return defaultResolver(path, options);
|
||||
return options.defaultResolver(path, options);
|
||||
} catch (e) {
|
||||
if (
|
||||
path === 'jest-sequencer-@jest/test-sequencer' ||
|
||||
|
||||
@ -4,9 +4,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["packages/linter/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -6,4 +6,5 @@ module.exports = {
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
|
||||
displayName: 'linter',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
|
||||
@ -5,9 +5,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["packages/nest/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -6,4 +6,5 @@ module.exports = {
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
|
||||
displayName: 'nest',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
|
||||
@ -4,9 +4,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["packages/next/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -6,4 +6,5 @@ module.exports = {
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
|
||||
displayName: 'next',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
|
||||
@ -5,9 +5,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["packages/node/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -6,4 +6,5 @@ module.exports = {
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
|
||||
displayName: 'node',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
|
||||
@ -5,9 +5,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["packages/nx-plugin/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -6,4 +6,5 @@ module.exports = {
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
|
||||
displayName: 'nx-plugin',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
|
||||
@ -5,9 +5,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["packages/nx/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -4,9 +4,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["packages/react/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -6,4 +6,5 @@ module.exports = {
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
|
||||
displayName: 'react',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
|
||||
@ -4,9 +4,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["packages/storybook/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -8,4 +8,5 @@ module.exports = {
|
||||
'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' },
|
||||
},
|
||||
displayName: 'storybook',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
|
||||
@ -13,9 +13,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["packages/tao/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -6,4 +6,5 @@ module.exports = {
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
|
||||
displayName: 'tao',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
|
||||
@ -4,9 +4,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["packages/web/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -6,4 +6,5 @@ module.exports = {
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
|
||||
displayName: 'web',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
|
||||
@ -4,9 +4,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["packages/workspace/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
@ -6,4 +6,5 @@ module.exports = {
|
||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
|
||||
displayName: 'workspace',
|
||||
testEnvironment: 'node',
|
||||
};
|
||||
|
||||
@ -164,8 +164,8 @@ describe('Command Runner Builder', () => {
|
||||
);
|
||||
expect(result).toEqual(expect.objectContaining({ success: true }));
|
||||
const contents = readFile(f);
|
||||
expect(contents).toContain(1);
|
||||
expect(contents).toContain(2);
|
||||
expect(contents).toContain('1');
|
||||
expect(contents).toContain('2');
|
||||
});
|
||||
|
||||
describe('readyWhen', () => {
|
||||
|
||||
@ -47,7 +47,7 @@ describe('removeProjectConfig', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('delete project', async () => {
|
||||
describe('delete project', () => {
|
||||
beforeEach(async () => {
|
||||
schema = {
|
||||
projectName: 'ng-app',
|
||||
|
||||
@ -174,7 +174,7 @@ describe('renameNpmPackages Rule', () => {
|
||||
expect(tree.read(appImportFile).toString()).toContain(
|
||||
`import { something } from '@package/renamed'`
|
||||
);
|
||||
});
|
||||
}, 60000);
|
||||
|
||||
it('should only update libs / apps that import the npm package as a dep', async () => {
|
||||
tree.overwrite(
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
const path_1 = require('path');
|
||||
const ts = require('typescript');
|
||||
const defaultResolver_1 = require('jest-resolve/build/defaultResolver');
|
||||
function getCompilerSetup(rootDir) {
|
||||
const tsConfigPath =
|
||||
ts.findConfigFile(rootDir, ts.sys.fileExists, 'tsconfig.spec.json') ||
|
||||
@ -56,7 +55,7 @@ module.exports = function (path, options) {
|
||||
if (path.indexOf('@nrwl/workspace') > -1) {
|
||||
throw 'Reference to local Nx package found. Use local version instead.';
|
||||
}
|
||||
return defaultResolver_1.default(path, options);
|
||||
return options.defaultResolver(path, options);
|
||||
} catch (e) {
|
||||
// Fallback to using typescript
|
||||
compilerSetup = compilerSetup || getCompilerSetup(options.rootDir);
|
||||
|
||||
@ -16,47 +16,47 @@
|
||||
"baseUrl": ".",
|
||||
"rootDir": ".",
|
||||
"paths": {
|
||||
"@nrwl/tao": ["./packages/tao"],
|
||||
"@nrwl/tao/*": ["./packages/tao/*"],
|
||||
"@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/angular": ["./packages/angular"],
|
||||
"@nrwl/angular/*": ["./packages/angular/*"],
|
||||
"@nrwl/cli": ["./packages/cli"],
|
||||
"@nrwl/cli/*": ["./packages/cli/*"],
|
||||
"@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/gatsby": ["./packages/gatsby"],
|
||||
"@nrwl/jest": ["./packages/jest"],
|
||||
"@nrwl/linter": ["./packages/linter"],
|
||||
"@nrwl/nest": ["./packages/nest"],
|
||||
"@nrwl/next": ["./packages/next"],
|
||||
"@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": [
|
||||
"./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": [
|
||||
"./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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -4,9 +4,6 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"parserOptions": {
|
||||
"project": ["./typedoc-theme/tsconfig.*?.json"]
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
|
||||
3444
workspace.json
3444
workspace.json
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user