diff --git a/package.json b/package.json index 8602a35..8b6be28 100644 --- a/package.json +++ b/package.json @@ -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" -} \ No newline at end of file + "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" + ] +} diff --git a/tsconfig.json b/tsconfig.json index 238655f..fa4904a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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"] }