Skip to content

Commit

Permalink
Revert "wip: cts and mts"
Browse files Browse the repository at this point in the history
This reverts commit a13770c.
  • Loading branch information
MichalLytek committed Apr 7, 2023
1 parent 14bb239 commit 077a8e9
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 54 deletions.
26 changes: 0 additions & 26 deletions src/utils/graphql-version.mts

This file was deleted.

File renamed without changes.
10 changes: 2 additions & 8 deletions tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"outDir": "./build/cjs",
"paths": {
"@/utils/graphql-version": ["./src/utils/graphql-version.cts"],
"@/*": ["./src/*"]
}
},
"exclude": ["./node_modules", "./build", "./src/**/*.mts"],
"include": ["./src", "./src/**/*.cts"]
"outDir": "./build/cjs"
}
}
20 changes: 2 additions & 18 deletions tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,6 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "esnext",
"outDir": "./build/esm",
"paths": {
"@/utils/graphql-version": ["./src/utils/graphql-version.mts"],
"@/*": ["./src/*"]
},
"plugins": [
// {
// "transform": "typescript-transformer-esm",
// "after": true
// },
// {
// "transform": "typescript-transformer-esm",
// "afterDeclarations": true
// }
]
},
"exclude": ["./node_modules", "./build", "./src/**/*.cts"],
"include": ["./src", "./src/**/*.mts"]
"outDir": "./build/esm"
}
}
11 changes: 9 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"sourceMap": false,
"outDir": "./build",
"paths": {
// "@/utils/graphql-version": ["./src/utils/graphql-version.cts"],
// "@/*": ["./src/*"],
"@/*": ["./src/*"],
"type-graphql": ["./src/index.ts"]
},
"removeComments": true,
Expand Down Expand Up @@ -38,6 +37,14 @@
{
"transform": "typescript-transform-paths",
"afterDeclarations": true
},
{
"transform": "typescript-transformer-esm",
"after": true
},
{
"transform": "typescript-transformer-esm",
"afterDeclarations": true
}
]
},
Expand Down

0 comments on commit 077a8e9

Please sign in to comment.