question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Do not publish .ts files on npmjs.org

See original GitHub issue

Hi,

Apparently, angular2-notifications is published on npmjs.org with its ts files. This is a bad practice according to (at least) angular-cli people (see https://github.com/angular/angular-cli/issues/4675#issuecomment-285694210).

It would be great if the ts files were removed in future releases and optionally for the latest release too 😃

Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
flauccommented, Apr 2, 2018

The latest version no longer publishes .ts files

0reactions
tplkcommented, Jan 24, 2018

Also, Angular CLI incremental builds using ng serve seems to cause full angular2-notifications rebuild on any change. Maybe I’m wrong but that’s what I always see: image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - Publishing - TypeScript
If your types are generated by your source code, publish the types with your source code. Both TypeScript and JavaScript projects can generate...
Read more >
Do not publish ts sources to npm · Issue #440 - GitHub
Do not publish ts sources to npm #440 ... It's a much better idea to publish and consume the .d.ts files if what...
Read more >
index.d.ts file not published to NPM - Stack Overflow
When I build this project, the TS compiler generates the .d.ts files as expected, however, these files are not published on NPM and...
Read more >
The 30-second guide to publishing a TypeScript package to ...
Then go to another folder and npm link <your package name> . Go into a .ts file and import your package by name...
Read more >
In-depth guide on creating and publishing NPM with typescript
Ignore the compiled code in GIT. Usually, you do not want auto-generated files under your source control except for package-lock.json, as they ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found