Skip to content

Commit

Permalink
feat: typescript property typesVersions
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Aug 25, 2022
1 parent a3f2d6a commit 29065f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -109,6 +109,7 @@ By default, these properties are preserved in `package.json`:
#### [TypeScript](https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html)
- `types`
- `typings`
- `typesVersions`

#### Bundlers (Webpack, Rollup, esbuild)
- [`module`](https://stackoverflow.com/questions/42708484/what-is-the-module-package-json-field-for)
Expand Down
1 change: 1 addition & 0 deletions src/default-keep-properties.ts
Expand Up @@ -82,6 +82,7 @@ export const defaultKeepProperties = [
// TypeScript
'types',
'typings',
'typesVersions',

// bundler spec
'module', // https://stackoverflow.com/questions/42708484/what-is-the-module-package-json-field-for
Expand Down

0 comments on commit 29065f5

Please sign in to comment.