Friday 17 March 2017

Upload typescript for javascript users with npm publish

I have a small typescript snippet that I'd like people without typescript/scss to be able to use. So people with css and javascript only.

My project is made with such structure:

  • css
    • styles.scss
    • styles2.scss
  • js
    • my-first-class.ts
    • my-second-class.ts
    • interfaces
      • my-first-interface.ts

I'm wondering what is the standard way to achieve this ? I don't really like tsc, because it makes my source code hard to read with all those .js files I don't need scattered around. I don't like having an outDir because then the imports aren't the same for typescript and javascript.



via Ced

No comments:

Post a Comment