Skip to content

Commit a5ae991

Browse files
josephfrazierstefanbuck
authored andcommitted
Link typings and types fields in package.json (OctoLinker#204)
* Link `typings` and `types` fields in package.json Example: https://github.com/moment/moment/blob/958846899bb4b15405c7ccf2f8cbff1712916b3a/package.json#L27 Spec: http://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html * README: Add `types` and `typings` to package.json
1 parent f69c359 commit a5ae991

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ OctoLinker is the easiest and best way to navigate between files and projects on
6161
- `resolutions`
6262
- `peerDependencies`
6363
- `optionalDependencies`
64+
- `types` and `typings`
6465

6566
### Python
6667
- `import`

lib/plugins/npm-manifest/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ export default class NpmManifest {
3939
'$.main': linkFile,
4040
'$.bin': linkFile,
4141
'$.browser': linkFile,
42+
'$.typings': linkFile,
43+
'$.types': linkFile,
4244
});
4345
}
4446
}

0 commit comments

Comments
 (0)