Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite in typescript #63

Merged
merged 12 commits into from
Feb 26, 2022
Prev Previous commit
fix: dts from tsc
  • Loading branch information
imranbarbhuiya committed Feb 26, 2022
commit 16a175d0471f4a4872ac7d6216bdec46cdb45be7
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsup",
"build": "tsup & tsc -p tsconfig.json",
"prepublish": "npm run build",
"lint": "eslint src/"
},
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"lib": ["es2021"],
"skipLibCheck": true,
"declaration": true,
"emitDeclarationOnly": true,
"outDir": "dist"
},
"includes": ["src/**/*.tsx"]
"files": ["src/index.tsx"]
}
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Options } from 'tsup';
export const tsup: Options = {
target: 'esnext',
clean: true,
dts: true,
dts: false,
entry: ['src/index.tsx'],
keepNames: true,
minify: true,
Expand Down