Skip to content

Commit

Permalink
build(bundling): replace tsc with pkgroll for bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
wd-David committed Jun 20, 2022
1 parent fd512d0 commit 1d18059
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@
"version": "1.1.6",
"description": "An esbuild plugin to generate extra pino files for bundling",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"repository": "https://github.com/davipon/esbuild-plugin-pino",
"bugs": "https://github.com/davipon/esbuild-plugin-pino/issues",
"scripts": {
"prepare": "husky install",
"build": "tsc",
"test": "rm -rf dist && tsc && vitest run",
"build": "pkgroll",
"test": "rm -rf dist && pkgroll && vitest run",
"format": "prettier --write .",
"lint": "prettier --check . && eslint .",
"cz": "cz",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import type { Plugin } from 'esbuild'
* }).catch(() => process.exit(1))
* ```
*/
export = function esbuildPluginPino({
export default function esbuildPluginPino({
transports
}: {
transports: string[]
Expand Down

0 comments on commit 1d18059

Please sign in to comment.