Skip to content

Commit

Permalink
feat: upgrade to [email protected] (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgrain authored Jul 26, 2023
1 parent 55c7292 commit dfc8fec
Show file tree
Hide file tree
Showing 7 changed files with 475 additions and 217 deletions.
2 changes: 1 addition & 1 deletion .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 12 additions & 3 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,20 @@ new TypeScriptSourceFile(project, 'src/esbuild-types.ts', {
name: 'CompilerOptions',
isExported: true,
properties: [
['alwaysStrict', 'boolean'],
['baseUrl', 'boolean'],
['experimentalDecorators', 'boolean'],
['importsNotUsedAsValues', "'remove' | 'preserve' | 'error'"],
['jsx', "'preserve' | 'react-native' | 'react' | 'react-jsx' | 'react-jsxdev'"],
['jsxFactory', 'string'],
['jsxFragmentFactory', 'string'],
['useDefineForClassFields', 'boolean'],
['importsNotUsedAsValues', "'remove' | 'preserve' | 'error'"],
['jsxImportSource', 'string'],
['paths', 'Record<string, string[]>'],
['preserveValueImports', 'boolean'],
['strict', 'boolean'],
['target', 'string'],
['useDefineForClassFields', 'boolean'],
['verbatimModuleSyntax', 'boolean'],
].map(([name, type]) => ({
name,
isReadonly: true,
Expand All @@ -335,7 +344,7 @@ new TypeScriptSourceFile(project, 'src/esbuild-types.ts', {
}],
});
esbuildTypes
?.getInterface('TransformOptions')
?.getInterface('CommonOptions')
?.getProperty('tsconfigRaw')
?.setType(`string | ${tsconfigOptions.getName()}`);
},
Expand Down
Loading

0 comments on commit dfc8fec

Please sign in to comment.