Skip to content

Commit

Permalink
chore: improve configs
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed Jun 15, 2024
1 parent fa1d3d7 commit 5447ce3
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 36 deletions.
49 changes: 37 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,38 @@
{
"name": "esbuild-plugin-autoload",
"module": "src/index.ts",
"devDependencies": {
"@types/bun": "latest",
"elysia": "^1.0.23",
"elysia-autoload": "^0.2.4"
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"type": "module"
}
"name": "esbuild-plugin-autoload",
"type": "module",
"version": "0.1.0",
"author": {
"name": "kravets"
},
"repository": {
"type": "git",
"url": "git+https://github.com/kravetsone/esbuild-plugin-autoload"
},
"description": "Bun/esbuild plugin for work with autoload at runtime",
"keywords": [
"esbuild-plugin",
"bun-plugin",
"autoload",
"elysia"
],
"module": "./dist/index.js",
"exports": {
".": "./dist/index.js"
},
"types": "./dist/index.d.ts",
"scripts": {
"prepublishOnly": "bun build.ts"
},
"devDependencies": {
"@types/bun": "latest",
"elysia": "^1.0.23",
"elysia-autoload": "^0.2.4"
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"files": [
"dist"
]
}
44 changes: 20 additions & 24 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
{
"compilerOptions": {
// Enable latest features
"lib": ["ESNext", "DOM"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"allowJs": true,

// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,

// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,

// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
}
"declaration": true,
"verbatimModuleSyntax": true,
"allowSyntheticDefaultImports": true,
// Best practices
"strict": true,
"noFallthroughCasesInSwitch": true,
"skipLibCheck": true,
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false,
"baseUrl": "./src",
"outDir": "./dist"
},
"include": ["src"]
}

0 comments on commit 5447ce3

Please sign in to comment.