Skip to content

Commit

Permalink
fix: use module: Preserve (#406)
Browse files Browse the repository at this point in the history
* fix: use `module: Preserve`

* chore: test release
  • Loading branch information
stipsan committed Apr 13, 2024
1 parent 22e7db5 commit 8ffe339
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 22 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "get-it",
"version": "8.4.22",
"version": "8.4.22-canary.0",
"description": "Generic HTTP request library for node, browsers and workers",
"keywords": [
"request",
Expand Down
6 changes: 1 addition & 5 deletions tsconfig.dist.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"extends": "./tsconfig.settings",
"include": ["./src", "./modules.d.ts"],
"compilerOptions": {
"outDir": "./dist",
"rootDir": "."
}
"include": ["./src", "./modules.d.ts"]
}
10 changes: 1 addition & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
{
"extends": "./tsconfig.settings",
"include": ["./src", "./modules.d.ts", "./test"],
"exclude": ["./test-deno/test.ts"],
"compilerOptions": {
"noEmit": true,
"module": "esnext",
"paths": {
"get-it": ["./src"],
"get-it/middleware": ["./src/middleware"]
}
}
"exclude": ["./test-deno/test.ts"]
}
16 changes: 11 additions & 5 deletions tsconfig.settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
{
"compilerOptions": {
"paths": {
"get-it": ["./src"],
"get-it/middleware": ["./src/middleware"]
},

"outDir": "./dist",
"rootDir": ".",
"noEmit": true,

"target": "ES2020",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"lib": ["dom", "es2022"],

// Strict type-checking
Expand All @@ -24,9 +30,9 @@
"useUnknownInCatchVariables": true,

// Module resolution
"moduleResolution": "node",
"module": "Preserve",
"moduleDetection": "force",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true
}
}

0 comments on commit 8ffe339

Please sign in to comment.