Skip to content

Commit

Permalink
build: update to nx 15 / ng 15
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus-Ende committed Feb 8, 2023
1 parent ba47513 commit 96c4c9f
Show file tree
Hide file tree
Showing 15 changed files with 18,569 additions and 19,692 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16
v16.19.0
4 changes: 2 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"jestConfig": "libs/ng-mockito/ng-mockito/jest.config.ts",
"passWithNoTests": true
},
"outputs": ["coverage/libs/ng-mockito/ng-mockito"]
"outputs": ["{workspaceRoot}/coverage/libs/ng-mockito/ng-mockito"]
}
},
"generators": {
Expand Down Expand Up @@ -59,7 +59,7 @@
"jestConfig": "libs/ng-mockito/integration/jest.config.ts",
"passWithNoTests": true
},
"outputs": ["coverage/libs/ng-mockito/integration"]
"outputs": ["{workspaceRoot}/coverage/libs/ng-mockito/integration"]
}
},
"generators": {
Expand Down
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const { getJestProjects } = require('@nrwl/jest');

module.exports = { projects: getJestProjects() };
export default { projects: getJestProjects() };
3 changes: 3 additions & 0 deletions jest.preset.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const nxPreset = require('@nrwl/jest/preset').default;

module.exports = { ...nxPreset };
3 changes: 0 additions & 3 deletions jest.preset.ts

This file was deleted.

5 changes: 3 additions & 2 deletions libs/ng-mockito/integration/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
/* eslint-disable */
export default {
displayName: 'ng-mockito-integration',

setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
Expand All @@ -19,5 +20,5 @@ module.exports = {
'^.+.(ts|mjs|js|html)$': 'jest-preset-angular',
},
transformIgnorePatterns: ['node_modules/(?!.*.mjs$)'],
preset: '../../../jest.preset.ts',
preset: '../../../jest.preset.js',
};
3 changes: 2 additions & 1 deletion libs/ng-mockito/integration/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
"noFallthroughCasesInSwitch": true,
"target": "es2020"
},
"angularCompilerOptions": {
"strictInjectionParameters": true,
Expand Down
5 changes: 3 additions & 2 deletions libs/ng-mockito/ng-mockito/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
/* eslint-disable */
export default {
displayName: 'ng-mockito-ng-mockito',

setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
Expand All @@ -19,5 +20,5 @@ module.exports = {
'^.+.(ts|mjs|js|html)$': 'jest-preset-angular',
},
transformIgnorePatterns: ['node_modules/(?!.*.mjs$)'],
preset: '../../../jest.preset.ts',
preset: '../../../jest.preset.js',
};
5 changes: 4 additions & 1 deletion libs/ng-mockito/ng-mockito/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
{
"path": "./tsconfig.spec.json"
}
]
],
"compilerOptions": {
"target": "es2020"
}
}
5 changes: 3 additions & 2 deletions libs/ng-mockito/ng-mockito/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../dist/out-tsc",
"target": "es2015",
"target": "ES2022",
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"types": [],
"lib": ["dom", "es2018"]
"lib": ["dom", "es2018"],
"useDefineForClassFields": false
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
Expand Down
4 changes: 3 additions & 1 deletion libs/ng-mockito/ng-mockito/tsconfig.lib.prod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"extends": "./tsconfig.lib.json",
"compilerOptions": {
"declarationMap": false
"declarationMap": false,
"target": "ES2022",
"useDefineForClassFields": false
},
"angularCompilerOptions": {
"compilationMode": "partial"
Expand Down
Loading

0 comments on commit 96c4c9f

Please sign in to comment.