ts-type-module-example VS typescript-esm-packager

Compare ts-type-module-example vs typescript-esm-packager and see what are their differences.

ts-type-module-example

Turning your TypeScript package into "type": "module" (by qnighy)

typescript-esm-packager

A collection of tools to build ESM packages with TypeScript. (by sister-software)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
ts-type-module-example typescript-esm-packager
1 2
8 5
- -
0.0 5.9
about 3 years ago about 1 year ago
TypeScript TypeScript
- MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

ts-type-module-example

Posts with mentions or reviews of ts-type-module-example. We have used some of these posts to build our list of alternatives and similar projects.

typescript-esm-packager

Posts with mentions or reviews of typescript-esm-packager. We have used some of these posts to build our list of alternatives and similar projects.
  • Things to keep in mind when publishing a JavaScript library in 2023
    1 project | news.ycombinator.com | 29 Apr 2023
    The rumors are true! Luxury housing is in development, and it’s taking place in Hell’s most gentrified neighborhood. Sources close to the project are calling it ES Modules, and everybody who’s anybody wants in on this high-end horror show.

    Honestly, I love the new module syntax compared to the old `require` song and dance. They fit nicely with promises and ensure some level of behavioral consistency in the browser and other runtimes. We could even drop the need for bundling for small enough projects, and get back to the simpler times of dropping a script tag in your HTML. I just don’t understand why Node can’t get its story straight.

    Let’s just talk about the file extension thing first. The brain trust at the lab decided that ES module files should have a .mjs extension to indicate the contents of the file. Fair enough. But .js also works sometimes, depending on the configuration set in the package.json file? We’ll chock this up to gradual adoption.

    There’s also some fun caveats about module resolution to keep things interesting. ES Modules need either a fully qualified path, or a relative path — both must include file extensions. Again, that’s also fine. I actually prefer it! So there’s the mystery factor of what happens to all the current NPM packages that aren’t compliant. Simple! We just have a special flag to make those work.

    So how do we get this ball of tape running in the browser exactly? A bundler…the very thing we were trying to avoid in the first place! Remember the dream of isomorphic code? Not debugging a Webpack build with shoddy source maps? We’re right back where we started but with a whole new set of meta problems.

    The most entertaining part of this game is telling your coworkers the difference between an import map and a package.json exports declaration. God help you if have TypeScript holding up this paper shack. Try building a ES module compatible library that includes TSX files just using the TypeScript compiler. Remember that it’s gotta be .mjs files that get output, and all your imports have to be fully qualified.

    If you’re nostalgic for the DMV, I recommend that you visit the TypeScript repo and check out how this module thing is going. You see, there are two developers at Microsoft. One tells truths, and the other plugs their ears and shouts, “LALALALALALA! TypeScript doesn’t and won’t ever rewrite modules!”

    It’s been like this for years and will take some additional years to complete. And don’t get me wrong, I’m sympathetic to the difficulties of this affair. But it’s becoming more like a sudden urge to vomit when the someone in the room starts heaving at your table.

    And finally, I’m so spoiled that I expect free stuff from the community. I built a tool to make ES modules and TypeScript play nice. It’s my greatest wish that it gets deprecated before I’m sent to live on a farm upstate…

    https://github.com/sister-software/typescript-esm-packager

  • Show HN: Finally, a Simple TypeScript ESM Packager
    1 project | news.ycombinator.com | 31 Mar 2023

What are some alternatives?

When comparing ts-type-module-example and typescript-esm-packager you can also consider the following projects:

wiremock-captain - A better way to use the WireMock simulator to test HTTP APIs

cloudflare-worker-jwt - A lightweight JWT implementation with ZERO dependencies for Cloudflare Workers.

esm-polyfills - ESM module polyfills for nodejs

top-level-await-in-aws-lamba-with-typescript - 🚀 Using top-level await in AWS Lambda with TypeScript, esbuild and Serverless Framework

klap 👏 - zero config, zero dependency bundler for tiny javascript packages

npm-package-ts-scaffolding - A simple scaffolding tool for creating a new project to be published to npm. It provides a build command that will compile your code to a CommonJS Node 14.16 target, allowing named imports for CommonJS packages inside ESM files.

cynic - simple async run-anywhere js testing framework