dedent
dedent copied to clipboard
Update package
- Upgraded dependencies
- Fixed the macro
- Fixed publish configs to includes macro as well
- Added TypeScript declaration files
- Made it leaves Flow type definitions as comments
- Added ESM (modern target) build, resolves #25
Published the fork as @cometlib/dedent
Hi @cometkim would you mind opening this PR also against dedent-tabs which is a version of this project that I still actively maintain and were I keep all dependencies up to date. I think it would be better if we have fewer published forks so other users do not have to look into a bunch of them and have to decide which updated version they want. Here is the repo: https://github.com/adrianjost/dedent-tabs
We need to manually add types field to package.json, Upcoming TypeScript 4.6's nodenext module resolution won't resolve index.d.ts automatically
Also, for dedent/macro to work with TypeScript 4.6, we need exports mapping in package.json
Do we have a ETA on this? We heavily rely on this fantasy library but have some problems using it in pure ESM environment.
@cometkim I merged #38's changes into this branch. Do these look good to you?
I'll merge this as-is Soon™️ (say, a couple weeks) if you don't have a chance to take a look, no worries if you can't!