Skip to content

Commit

Permalink
refactor: small changes to tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpza committed Sep 13, 2024
1 parent 2c96be2 commit 0343c62
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 20 deletions.
1 change: 1 addition & 0 deletions test/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const config: JestConfigWithTsJest = {
preset: "ts-jest",
testRegex: String.raw`.*(test|spec)\.tsx?$`,
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
prettierPath: undefined,
};

export default config;
18 changes: 4 additions & 14 deletions test/projects/extras/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,23 @@
{
// "extends": "@tsconfig/node18",
"include": ["src"],

"ts-node": {
"require": ["typescript-transform-paths/register"]
},

"compilerOptions": {
"target": "esnext",
"noEmit": true,
"outDir": "dist",

"rootDir": ".",
"module": "CommonJS",
"esModuleInterop": true,
"moduleResolution": "node",
"declaration": true,

"baseUrl": "./src",
"paths": {
"#identifier": ["./id.ts"]
},

"plugins": [
{
"transform": "typescript-transform-paths"
},
{
"transform": "typescript-transform-paths",
"afterDeclarations": true
}
{ "transform": "typescript-transform-paths" },
{ "transform": "typescript-transform-paths", "afterDeclarations": true }
]
}
}
8 changes: 2 additions & 6 deletions test/projects/general/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{
"extends": "@tsconfig/node18",
"compilerOptions": {
"target": "es5",
"module": "ESNext",
"target": "esnext",
"outDir": "__built",
"moduleResolution": "node",

"declaration": true,
"baseUrl": "./",
"paths": {
Expand All @@ -13,9 +11,7 @@
"#utils/*": ["./utils/*", "./secondary/*"],
"*": ["*"]
},

"esModuleInterop": true,

"plugins": [
{ "transform": "typescript-transform-paths" },
{ "transform": "typescript-transform-paths", "afterDeclarations": true }
Expand Down

0 comments on commit 0343c62

Please sign in to comment.