Skip to content

Commit

Permalink
feat: user-provided TypeScript config (backport #931) (#979)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to
`maintenance/v5.2`:
- [feat: user-provided TypeScript config
(#931)](#931)

<!--- Backport version: 9.5.1 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

Co-authored-by: Momo Kornher <kornherm@amazon.co.uk>
  • Loading branch information
aws-cdk-automation and mrgrain committed May 16, 2024
1 parent f1e9394 commit 13c574d
Show file tree
Hide file tree
Showing 21 changed files with 1,869 additions and 251 deletions.
2 changes: 1 addition & 1 deletion build-tools/code-gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const { commit, suffix } = (function () {
writeFileSync(
join(__dirname, '..', 'src', 'version.ts'),
[
"import { versionMajorMinor } from 'typescript'",
"import { versionMajorMinor } from 'typescript';",
'',
'// GENERATED: This file is generated by build-tools/code-gen.ts -- Do not edit by hand!',
'',
Expand Down
1 change: 1 addition & 0 deletions src/case.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const camel = withCache(Case.camel);
export const constant = withCache(Case.constant);
export const pascal = withCache(Case.pascal);
export const snake = withCache(Case.snake);
export const kebab = withCache(Case.kebab);

class Cache {
public static fetch(text: string, func: (text: string) => string): string {
Expand Down

0 comments on commit 13c574d

Please sign in to comment.