mirror of
https://github.com/bitwarden/browser
synced 2026-02-17 09:59:41 +00:00
Merge remote-tracking branch 'origin/main' into playwright
This commit is contained in:
@@ -78,7 +78,7 @@ After generating your library:
|
||||
|
||||
### Issue: TypeScript path mapping not working
|
||||
|
||||
**Solution**: Run `nx reset` to clear the Nx cache, then try importing from your library again.
|
||||
**Solution**: Run `npx nx reset` to clear the Nx cache, then try importing from your library again.
|
||||
|
||||
## Extending the Generated Code
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ describe("basic-lib generator", () => {
|
||||
expect(tsconfigContent).not.toBeNull();
|
||||
const tsconfig = JSON.parse(tsconfigContent?.toString() ?? "");
|
||||
expect(tsconfig.compilerOptions.paths[`@bitwarden/${options.name}`]).toEqual([
|
||||
`libs/test/src/index.ts`,
|
||||
`./libs/test/src/index.ts`,
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ function updateTsConfigPath(tree: Tree, name: string, srcRoot: string) {
|
||||
updateJson(tree, "tsconfig.base.json", (json) => {
|
||||
const paths = json.compilerOptions.paths || {};
|
||||
|
||||
paths[`@bitwarden/${name}`] = [`${srcRoot}/index.ts`];
|
||||
paths[`@bitwarden/${name}`] = [`./${srcRoot}/index.ts`];
|
||||
|
||||
json.compilerOptions.paths = paths;
|
||||
return json;
|
||||
|
||||
Reference in New Issue
Block a user