Skip to content

Commit

Permalink
chore(update): migrate latest version and fix tests (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
estevanbs authored Oct 11, 2024
1 parent 8fc3d67 commit 9d4b040
Show file tree
Hide file tree
Showing 6 changed files with 3,241 additions and 8,541 deletions.
3 changes: 2 additions & 1 deletion apps/todo/react/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@
"production": {
"buildTarget": "todo-react:build:production"
}
}
},
"dependsOn": ["build"]
}
}
}
1 change: 1 addition & 0 deletions libs/plugin/core/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ export default {
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../../coverage/libs/plugin/core',
testTimeout: 10000
};
3 changes: 2 additions & 1 deletion libs/plugin/core/src/utils/get-project-import-path.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { ProjectConfiguration, readJsonFile } from '@nx/devkit';
import { TSConfigBase } from '../interfaces';
import { getRootTsConfigPath } from '@nx/js';

export function getProjectImportPath({ sourceRoot }: ProjectConfiguration) {
const { compilerOptions } = readJsonFile<TSConfigBase>('tsconfig.base.json');
const { compilerOptions } = readJsonFile<TSConfigBase>(getRootTsConfigPath());

return Object.keys(compilerOptions.paths).find((importPath) => {
return compilerOptions.paths[importPath].find(
Expand Down
Loading

0 comments on commit 9d4b040

Please sign in to comment.