tstyche 5.0.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -86,10 +86,6 @@ This simple! (And it has watch mode too.)
86
86
 
87
87
  Visit [tstyche.org](https://tstyche.org) to view the full documentation.
88
88
 
89
- ## Feedback
90
-
91
- If you have any questions or suggestions, [start a discussion](https://github.com/tstyche/tstyche/discussions/new/choose) or [open an issue](https://github.com/tstyche/tstyche/issues/new/choose) on GitHub. Preferring a chat? Join our [Discord server](https://discord.gg/gCSasd3QJq).
92
-
93
89
  ## License
94
90
 
95
91
  [MIT][license-url] © TSTyche
package/build/tstyche.js CHANGED
@@ -957,8 +957,8 @@ class Store {
957
957
  return compilerInstance;
958
958
  }
959
959
  static async #loadModule(modulePath) {
960
- const exports = {};
961
- const module = { exports };
960
+ const exports$1 = {};
961
+ const module = { exports: exports$1 };
962
962
  const packageConfigText = await fs.readFile(Path.resolve(modulePath, "../../package.json"), { encoding: "utf8" });
963
963
  const { version: packageVersion } = JSON.parse(packageConfigText);
964
964
  if (!Version.isSatisfiedWith(packageVersion, "5.3")) {
@@ -968,7 +968,7 @@ class Store {
968
968
  const toExpose = ["isTypeIdenticalTo"];
969
969
  const modifiedSourceText = sourceText.replace("return checker;", `return { ...checker, ${toExpose.join(", ")} };`);
970
970
  const compiledWrapper = vm.compileFunction(modifiedSourceText, ["exports", "require", "module", "__filename", "__dirname"], { filename: modulePath });
971
- compiledWrapper(exports, createRequire(modulePath), module, modulePath, Path.dirname(modulePath));
971
+ compiledWrapper(exports$1, createRequire(modulePath), module, modulePath, Path.dirname(modulePath));
972
972
  return module.exports;
973
973
  }
974
974
  static #onDiagnostics(diagnostic) {
@@ -4042,6 +4042,8 @@ class ProjectService {
4042
4042
  }
4043
4043
  #getDefaultCompilerOptions() {
4044
4044
  const defaultCompilerOptions = {
4045
+ allowJs: true,
4046
+ checkJs: true,
4045
4047
  allowImportingTsExtensions: true,
4046
4048
  exactOptionalPropertyTypes: true,
4047
4049
  jsx: this.#compiler.JsxEmit.Preserve,
@@ -5477,7 +5479,7 @@ class FileRunner {
5477
5479
  class Runner {
5478
5480
  #eventEmitter = new EventEmitter();
5479
5481
  #resolvedConfig;
5480
- static version = "5.0.0";
5482
+ static version = "5.0.1";
5481
5483
  constructor(resolvedConfig) {
5482
5484
  this.#resolvedConfig = resolvedConfig;
5483
5485
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tstyche",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "Everything You Need for Type Testing.",
5
5
  "keywords": [
6
6
  "typescript",