Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript, ESM, tap18 support #371

Merged
merged 4 commits into from
Nov 15, 2023
Merged

TypeScript, ESM, tap18 support #371

merged 4 commits into from
Nov 15, 2023

Conversation

lukekarrys
Copy link
Contributor

@lukekarrys lukekarrys commented Nov 5, 2023

This PR contains 4 commits which all contribute to allowing projects to use TypeScript, publish dual CJS/ESM, and use tap@18.

fix: use npx semver to better determine latest npm

This does a better job of allowing the latest compatible npm version to be installed. This is helpful as there were some gaps previously, and this allows us to bump smaller engines ranges and not have to worry about the wrong npm being installed.

fix: always lint all js-ish extensions

The default lint script now will lint all JS extensions including cjs, mjs, and ts. This is written to all repos instead of based on a config because it is difficult to determine the file extensions being used in a project.

feat: add typescript and esm support

If typescript: true is set then a number of changes are made including, checking for typescript deps, updating linting, using tshy to do dual CJS/ESM, etc

fix: remove tap 16 specific config when using tap 18

tap@18 has some slightly different configs that we want to write.

Closes #369
Closes #156

@lukekarrys lukekarrys requested a review from a team as a code owner November 5, 2023 19:05
@lukekarrys lukekarrys force-pushed the lk/latest-npm branch 5 times, most recently from b3e3852 to 5bbb239 Compare November 5, 2023 22:35
@lukekarrys lukekarrys changed the title lk/latest npm TypeScript, ESM support Nov 6, 2023
@lukekarrys lukekarrys force-pushed the lk/latest-npm branch 15 times, most recently from fce710d to 1941005 Compare November 6, 2023 16:02
@lukekarrys lukekarrys force-pushed the lk/latest-npm branch 2 times, most recently from 0bc47d6 to 4c9486d Compare November 6, 2023 18:54
@lukekarrys lukekarrys changed the title TypeScript, ESM support TypeScript, ESM, tap18 support Nov 6, 2023
@lukekarrys lukekarrys enabled auto-merge (rebase) November 8, 2023 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants