-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move core utils on new core package
- Loading branch information
Showing
20 changed files
with
105 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,6 @@ | ||
{ | ||
"compilerOptions": { | ||
"strict": true, | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"resolveJsonModule": true, | ||
"skipLibCheck": true, | ||
"sourceMap": true, | ||
"verbatimModuleSyntax": true, | ||
"noEmit": true, | ||
"module": "NodeNext", | ||
"moduleResolution": "NodeNext", | ||
"target": "ES2022", | ||
"lib": [ | ||
"ES2022", | ||
"DOM", | ||
"DOM.Iterable" | ||
] | ||
}, | ||
"exclude": ["**/dist/**/*"] | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"types": ["@types/node"] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,3 @@ | ||
{ | ||
"compilerOptions": { | ||
"strict": true, | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"resolveJsonModule": true, | ||
"skipLibCheck": true, | ||
"sourceMap": true, | ||
"verbatimModuleSyntax": true, | ||
"noEmit": true, | ||
"module": "NodeNext", | ||
"moduleResolution": "NodeNext", | ||
"target": "ES2022", | ||
"lib": [ | ||
"ES2022", | ||
"DOM", | ||
"DOM.Iterable" | ||
] | ||
}, | ||
"exclude": ["**/dist/**/*"] | ||
"extends": "../../tsconfig.json" | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"name": "@universal-middleware/core", | ||
"version": "0.1.0", | ||
"type": "module", | ||
"description": "Universal middlewares core utilities", | ||
"files": [ | ||
"dist" | ||
], | ||
"exports": { | ||
".": "./dist/index.js" | ||
}, | ||
"author": "Joël Charles <[email protected]>", | ||
"repository": "https://github.com/magne4000/universal-handler", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "rimraf dist && tsup", | ||
"prepack": "pnpm build", | ||
"test:typecheck": "tsc -p tsconfig.json --noEmit", | ||
"release": "LANG=en_US release-me patch", | ||
"release:minor": "LANG=en_US release-me minor", | ||
"release:commit": "LANG=en_US release-me commit" | ||
}, | ||
"devDependencies": { | ||
"@brillout/release-me": "^0.3.9", | ||
"@types/node": "^20.14.10", | ||
"rimraf": "^6.0.0", | ||
"tsup": "^8.1.0", | ||
"typescript": "^5.5.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# `@universal-middleware/core` | ||
|
||
[Universal Middleware](https://github.com/magne4000/universal-middleware) core utilities. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export type { | ||
Awaitable, | ||
UniversalHandler, | ||
UniversalMiddleware, | ||
} from "./types.js"; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "../../tsconfig.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { defineConfig } from "tsup"; | ||
|
||
export default defineConfig([ | ||
{ | ||
entry: ["./src/index.ts"], | ||
format: ["esm"], | ||
platform: "node", | ||
target: "node18", | ||
dts: { | ||
banner: `declare global { | ||
namespace Universal { | ||
interface Context extends Record<string | number | symbol, unknown> {} | ||
} | ||
}`, | ||
}, | ||
clean: true, | ||
}, | ||
]); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters