Skip to content

Commit

Permalink
build: config package
Browse files Browse the repository at this point in the history
  • Loading branch information
wahyubucil committed Oct 31, 2023
1 parent 151881a commit 11659ca
Show file tree
Hide file tree
Showing 4 changed files with 2,817 additions and 78 deletions.
11 changes: 11 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const { configure, presets } = require('eslint-kit')

module.exports = configure({
allowDebug: process.env.NODE_ENV !== 'production',
presets: [
presets.imports(),
presets.node(),
presets.prettier(),
presets.typescript(),
],
})
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"quoteProps": "consistent"
}
39 changes: 22 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,31 +32,36 @@
"openapi",
"swagger"
],
"engines": {
"node": ">=18"
},
"scripts": {
"build-fast": "tsup src/index.ts --format esm,cjs",
"build-fast": "tsup src/index.ts src/boot.ts --format esm,cjs",
"build": "pnpm run build-fast --dts-resolve",
"prepublishOnly": "pnpm run build"
"prepublishOnly": "pnpm run build",
"lint": "eslint \"src/**/*.{js,mjs,cjs,ts,mts}\"",
"lint:fix": "eslint \"src/**/*.{js,mjs,cjs,ts,mts}\" --fix"
},
"devDependencies": {
"@nestjs/common": "^10.2.7",
"@nestjs/swagger": "^7.1.14",
"@types/node": "^20.8.10",
"tsup": "^7.2.0",
"typescript": "^5.2.2",
"zod": "^3.22.4"
"dependencies": {
"@anatine/zod-nestjs": "^2.0.3",
"@anatine/zod-openapi": "^2.2.0",
"@asteasolutions/zod-to-openapi": "^6.2.0",
"openapi3-ts": "^4.1.2"
},
"peerDependencies": {
"@nestjs/common": "^10.2.7",
"@nestjs/swagger": "^7.1.14",
"zod": "^3.22.4"
},
"engines": {
"node": ">=18"
},
"dependencies": {
"@anatine/zod-nestjs": "^2.0.3",
"@anatine/zod-openapi": "^2.2.0",
"@asteasolutions/zod-to-openapi": "^6.2.0",
"openapi3-ts": "^4.1.2"
"devDependencies": {
"@nestjs/common": "^10.2.7",
"@nestjs/swagger": "^7.1.14",
"@types/node": "^20.8.10",
"eslint": "^8.41.0",
"eslint-kit": "^10.0.0",
"tsup": "^7.2.0",
"typescript": "^5.2.2",
"zod": "^3.22.4",
"prettier": "^3.0.0"
}
}
Loading

0 comments on commit 11659ca

Please sign in to comment.