Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TypeScript 5.2, use tshy for hybrid builds
This is a massive patch, but only a few things have really changed. TypeScript upgraded to version 5.2, which has new and more restrictive behaviors around module loading and ESM/CommonJS dialect emitting. To work around this, and provide a simpler and more consistent build experience, tshy is now used to build all modules, the built Test code, and used in the @tapjs/create-plugin initializer for use in future plugins. The dist directories are thus renamed from `mjs` and `cjs` to the more comprehensible `esm` and `commonjs`. This is a no-op for most users, but it did mean a lot of edits to import paths in tests. A shortcoming that was surfaced by the build change showed that it was possible to add a plugin that can _only_ be loaded by `require()`, and not by `import()`. This is now detected, and the plugin addition is prevented in that case.
- Loading branch information
Showing
776 changed files
with
2,307 additions
and
3,346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
{ | ||
"compilerOptions": { | ||
"rootDir": "./src", | ||
"jsx": "react", | ||
"declaration": true, | ||
"declarationMap": true, | ||
"inlineSources": true, | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"moduleResolution": "node16", | ||
"inlineSources": true, | ||
"jsx": "react", | ||
"module": "nodenext", | ||
"moduleResolution": "nodenext", | ||
"noUncheckedIndexedAccess": true, | ||
"resolveJsonModule": true, | ||
"skipLibCheck": true, | ||
"sourceMap": true, | ||
"strict": true, | ||
"target": "es2022", | ||
"module": "esnext" | ||
"target": "es2022" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"extends": ["../../typedoc.base.json"], | ||
"tsconfig": "./tsconfig/esm.json", | ||
"tsconfig": "./.tshy/esm.json", | ||
"entryPoints": ["./src/**/*.+(ts|tsx|mts)"] | ||
} |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type":"commonjs"} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"type":"module"} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.