Skip to content

Commit

Permalink
fix(typescript): Add missing / to default types path (projen#133)
Browse files Browse the repository at this point in the history
*Issue projen#132, if available:*

*Description of changes:*
This adds the missing `/` in the default `types` path in `TypeScriptProject`

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
  • Loading branch information
bartcallant authored Sep 30, 2020
1 parent ed5357e commit c6a1f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class TypeScriptProject extends NodeProject {
});
}

this.manifest.types = options.entrypointTypes ?? `${path.dirname(this.entrypoint)}${path.basename(this.entrypoint, '.js')}.d.ts`;
this.manifest.types = options.entrypointTypes ?? `${path.join(path.dirname(this.entrypoint), path.basename(this.entrypoint, '.js'))}.d.ts`;

const compilerOptions = {
alwaysStrict: true,
Expand Down

0 comments on commit c6a1f20

Please sign in to comment.