Skip to content

Commit

Permalink
chore(core): renamed to core
Browse files Browse the repository at this point in the history
  • Loading branch information
MathurAditya724 committed Mar 19, 2024
1 parent 9b22ba1 commit e436600
Show file tree
Hide file tree
Showing 27 changed files with 1,616 additions and 1,614 deletions.
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"extends": ["../../.eslintrc.base.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.json"],
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/dependency-checks": [
"error",
{
"ignoredFiles": ["{projectRoot}/vite.config.{js,ts,mjs,mts}"]
}
]
}
}
]
}
{
"extends": ["../../.eslintrc.base.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.json"],
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/dependency-checks": [
"error",
{
"ignoredFiles": ["{projectRoot}/vite.config.{js,ts,mjs,mts}"]
}
]
}
}
]
}
File renamed without changes.
26 changes: 13 additions & 13 deletions packages/rate-limiter/package.json → packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "hono-rate-limiter",
"version": "0.0.1",
"dependencies": {
"@swc/helpers": "~0.5.2"
},
"peerDependencies": {
"hono": "^4.1.1"
},
"type": "commonjs",
"main": "./src/index.js",
"typings": "./src/index.d.ts"
}
{
"name": "hono-rate-limiter",
"version": "0.0.1",
"dependencies": {
"@swc/helpers": "~0.5.2"
},
"peerDependencies": {
"hono": "^4.1.1"
},
"type": "commonjs",
"main": "./src/index.js",
"typings": "./src/index.d.ts"
}
106 changes: 53 additions & 53 deletions packages/rate-limiter/project.json → packages/core/project.json
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
{
"name": "rate-limiter",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/rate-limiter/src",
"projectType": "library",
"targets": {
"build": {
"executor": "@nx/js:swc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/packages/rate-limiter",
"main": "packages/rate-limiter/src/index.ts",
"tsConfig": "packages/rate-limiter/tsconfig.lib.json",
"assets": ["README.md"]
}
},
"nx-release-publish": {
"options": {
"packageRoot": "dist\\{projectRoot}"
}
},
"test": {
"executor": "@nx/vite:test",
"outputs": ["{options.reportsDirectory}"],
"options": {
"reportsDirectory": "../../coverage/packages/rate-limiter"
}
},
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"preset": "conventional"
}
},
"deploy": {
"executor": "ngx-deploy-npm:deploy",
"options": {
"access": "public",
"distFolderPath": "dist/packages/rate-limiter"
},
"dependsOn": ["build"]
}
},
"tags": [],
"release": {
"version": {
"generatorOptions": {
"packageRoot": "dist\\{projectRoot}",
"currentVersionResolver": "git-tag"
}
}
}
}
{
"name": "core",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/core/src",
"projectType": "library",
"targets": {
"build": {
"executor": "@nx/js:swc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/packages/core",
"main": "packages/core/src/index.ts",
"tsConfig": "packages/core/tsconfig.lib.json",
"assets": ["README.md"]
}
},
"nx-release-publish": {
"options": {
"packageRoot": "dist\\{projectRoot}"
}
},
"test": {
"executor": "@nx/vite:test",
"outputs": ["{options.reportsDirectory}"],
"options": {
"reportsDirectory": "../../coverage/packages/core"
}
},
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"preset": "conventional"
}
},
"deploy": {
"executor": "ngx-deploy-npm:deploy",
"options": {
"access": "public",
"distFolderPath": "dist/packages/core"
},
"dependsOn": ["build"]
}
},
"tags": [],
"release": {
"version": {
"generatorOptions": {
"packageRoot": "dist\\{projectRoot}",
"currentVersionResolver": "git-tag"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export function createServer<
I extends Input = NonNullable<unknown>,
>({
middleware,
}: { middleware: MiddlewareHandler<E, P, I> | MiddlewareHandler<E, P, I>[] }) {
}: {
middleware: MiddlewareHandler<E, P, I> | MiddlewareHandler<E, P, I>[];
}) {
const wares = Array.isArray(middleware) ? middleware : [middleware];

// Init the app
Expand Down
Loading

0 comments on commit e436600

Please sign in to comment.