Skip to content

Commit 2c56de1

Browse files
committed
feat: include TypeScript type declarations in NPM package (#98)
1 parent 6715353 commit 2c56de1

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
77
## [Unreleased]
88
### Added
99
- Issue #86: Add support for header-only tables (without data rows)
10+
- Issue #98: Include TypeScript type declarations in the NPM package.
1011

1112
### Fixed
1213
- Issue #85: Fixed markdown spec compliance for unbordered tables with center/right aligned first columns. First column now uses left padding logic regardless of alignment to prevent invalid markdown output.

package.npm.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"main": "./cli/cliPrettify.js",
3+
"types": "./cli/cliPrettify.d.ts",
34
"bin": {
45
"markdown-table-prettify": "./cli/index.js"
56
},

tsconfig.dist.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"lib": [ "ES2022" ],
77
"types": [ "node" ],
88
"sourceMap": false,
9+
"declaration": true,
910
"rootDir": "."
1011
},
1112
"include": [

0 commit comments

Comments
 (0)