Skip to content

Commit

Permalink
feat(tsconfig): Use ${configDir}
Browse files Browse the repository at this point in the history
Updates TypeScript configurations to use the `${configDir}` template
variable.

Closes #720.
  • Loading branch information
langri-sha committed Jul 2, 2024
1 parent b18943b commit dd609a9
Show file tree
Hide file tree
Showing 83 changed files with 254 additions and 292 deletions.
18 changes: 3 additions & 15 deletions .projenrc.mts
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,7 @@ const publish = (project: Project) => {
new TypeScriptConfig(project, {
fileName: 'tsconfig.build.json',
config: {
extends: '@langri-sha/tsconfig/build.json',
compilerOptions: {
baseUrl: '.',
outDir: 'lib',
},
extends: '@langri-sha/tsconfig/build',
},
})

Expand Down Expand Up @@ -669,15 +665,7 @@ project.addSubproject(
{
name: '@langri-sha/schemastore-to-typescript',
outdir: path.join('packages', 'schemastore-to-typescript'),
typeScriptConfig: {
config: {
compilerOptions: {
paths: {
got: ['node_modules/got/dist/source'],
},
},
},
},
typeScriptConfig: {},
npmIgnore: {},
package: {
...pkg,
Expand Down Expand Up @@ -720,7 +708,7 @@ project.addSubproject(
...pkg,
copyrightYear: '2024',
entrypoint: 'base.json',
peerDeps: ['typescript@^5.0.0'],
peerDeps: ['typescript@^5.5.0'],
},
},
subproject,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/babel-preset",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/babel-test",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/eslint-config",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/jest-config",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/jest-test",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/lint-staged",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/monorepo",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/prettier",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/projen-babel",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/projen-beachball",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/projen-codeowners",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/projen-editorconfig",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/projen-eslint",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/projen-husky",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/projen-jest-config",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/projen-license",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/projen-lint-staged",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/projen-lint-synthesized",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/projen-pnpm-workspace",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/projen-prettier",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/projen-project",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/projen-renovate",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/projen-typescript-config",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/schemastore-to-typescript",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/tsconfig",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/vitest",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(tsconfig): Use `${configDir}`",
"packageName": "@langri-sha/webpack",
"email": "[email protected]",
"dependentChangeType": "none"
}
6 changes: 1 addition & 5 deletions packages/babel-preset/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
// ~~ Generated by projen. To modify, edit .projenrc.mts and run "npx projen".
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@langri-sha/tsconfig/project.json",
"compilerOptions": {
"baseUrl": ".",
"outDir": ".tsbuild"
},
"extends": "@langri-sha/tsconfig/project",
"references": [
{
"path": "../babel-test"
Expand Down
6 changes: 1 addition & 5 deletions packages/babel-test/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// ~~ Generated by projen. To modify, edit .projenrc.mts and run "npx projen".
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@langri-sha/tsconfig/build.json",
"compilerOptions": {
"baseUrl": ".",
"outDir": "lib"
}
"extends": "@langri-sha/tsconfig/build"
}
6 changes: 1 addition & 5 deletions packages/babel-test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
// ~~ Generated by projen. To modify, edit .projenrc.mts and run "npx projen".
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@langri-sha/tsconfig/project.json",
"compilerOptions": {
"baseUrl": ".",
"outDir": ".tsbuild"
},
"extends": "@langri-sha/tsconfig/project",
"references": [
{
"path": "../monorepo"
Expand Down
6 changes: 1 addition & 5 deletions packages/eslint-config/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
// ~~ Generated by projen. To modify, edit .projenrc.mts and run "npx projen".
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@langri-sha/tsconfig/project.json",
"compilerOptions": {
"baseUrl": ".",
"outDir": ".tsbuild"
},
"extends": "@langri-sha/tsconfig/project",
"references": [
{
"path": "../tsconfig"
Expand Down
6 changes: 1 addition & 5 deletions packages/jest-config/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// ~~ Generated by projen. To modify, edit .projenrc.mts and run "npx projen".
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@langri-sha/tsconfig/build.json",
"compilerOptions": {
"baseUrl": ".",
"outDir": "lib"
}
"extends": "@langri-sha/tsconfig/build"
}
6 changes: 1 addition & 5 deletions packages/jest-config/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
// ~~ Generated by projen. To modify, edit .projenrc.mts and run "npx projen".
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@langri-sha/tsconfig/project.json",
"compilerOptions": {
"baseUrl": ".",
"outDir": ".tsbuild"
},
"extends": "@langri-sha/tsconfig/project",
"references": [
{
"path": "../tsconfig"
Expand Down
6 changes: 1 addition & 5 deletions packages/jest-test/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// ~~ Generated by projen. To modify, edit .projenrc.mts and run "npx projen".
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@langri-sha/tsconfig/build.json",
"compilerOptions": {
"baseUrl": ".",
"outDir": "lib"
}
"extends": "@langri-sha/tsconfig/build"
}
6 changes: 1 addition & 5 deletions packages/jest-test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
// ~~ Generated by projen. To modify, edit .projenrc.mts and run "npx projen".
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@langri-sha/tsconfig/project.json",
"compilerOptions": {
"baseUrl": ".",
"outDir": ".tsbuild"
},
"extends": "@langri-sha/tsconfig/project",
"references": [
{
"path": "../tsconfig"
Expand Down
6 changes: 1 addition & 5 deletions packages/lint-staged/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
// ~~ Generated by projen. To modify, edit .projenrc.mts and run "npx projen".
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@langri-sha/tsconfig/project.json",
"compilerOptions": {
"baseUrl": ".",
"outDir": ".tsbuild"
},
"extends": "@langri-sha/tsconfig/project",
"references": [
{
"path": "../tsconfig"
Expand Down
6 changes: 1 addition & 5 deletions packages/monorepo/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// ~~ Generated by projen. To modify, edit .projenrc.mts and run "npx projen".
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@langri-sha/tsconfig/build.json",
"compilerOptions": {
"baseUrl": ".",
"outDir": "lib"
}
"extends": "@langri-sha/tsconfig/build"
}
6 changes: 1 addition & 5 deletions packages/monorepo/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
// ~~ Generated by projen. To modify, edit .projenrc.mts and run "npx projen".
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@langri-sha/tsconfig/project.json",
"compilerOptions": {
"baseUrl": ".",
"outDir": ".tsbuild"
},
"extends": "@langri-sha/tsconfig/project",
"references": [
{
"path": "../tsconfig"
Expand Down
Loading

0 comments on commit dd609a9

Please sign in to comment.