@travetto/compiler 5.0.17 → 5.0.18

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
@@ -21,7 +21,7 @@ This module expands upon the [Typescript](https://typescriptlang.org) compiler,
21
21
  Beyond the [Typescript](https://typescriptlang.org) compiler functionality, the module provides the primary entry point into the development process.
22
22
 
23
23
  ## CLI
24
- The compiler cli, [trvc](https://github.com/travetto/travetto/tree/main/module/compiler/bin/trvc.js#L4) is the entry point for compilation-related operations. It has the ability to check for active builds, and ongoing watch operations to ensure only one process is building at a time. Within the framework, regardless of mono-repo or not, the compilation always targets the entire project. With the efficient caching behavior, this leads to generally a minimal overhead but allows for centralization of all operations.
24
+ The compiler cli, [trvc](https://github.com/travetto/travetto/tree/main/module/compiler/bin/trvc.js#L20) is the entry point for compilation-related operations. It has the ability to check for active builds, and ongoing watch operations to ensure only one process is building at a time. Within the framework, regardless of mono-repo or not, the compilation always targets the entire project. With the efficient caching behavior, this leads to generally a minimal overhead but allows for centralization of all operations.
25
25
 
26
26
  The compiler cli supports the following operations:
27
27
  * `start|watch` - Run the compiler in watch mode
@@ -87,4 +87,4 @@ The compiler will move through the following phases on a given compilation execu
87
87
  * `Invoke Compiler` - Run [Typescript](https://typescriptlang.org) compiler with the aforementioned enhancements
88
88
 
89
89
  ### Bootstrapping
90
- Given that the framework is distributed as [Typescript](https://typescriptlang.org) only files, there is a bootstrapping problem that needs to be mitigated. The [trvc](https://github.com/travetto/travetto/tree/main/module/compiler/bin/trvc.js#L4) entrypoint, along with a small context utility in [Manifest](https://github.com/travetto/travetto/tree/main/module/manifest#readme "Support for project indexing, manifesting, along with file watching") are the only [Javascript](https://developer.mozilla.org/en-US/docs/Web/JavaScript) files needed to run the project. The [trvc](https://github.com/travetto/travetto/tree/main/module/compiler/bin/trvc.js#L4) entry point will compile `@travetto/compiler/support/*` files as the set that is used at startup. These files are also accessible to the compiler as they get re-compiled after the fact.
90
+ Given that the framework is distributed as [Typescript](https://typescriptlang.org) only files, there is a bootstrapping problem that needs to be mitigated. The [trvc](https://github.com/travetto/travetto/tree/main/module/compiler/bin/trvc.js#L20) entrypoint, along with a small context utility in [Manifest](https://github.com/travetto/travetto/tree/main/module/manifest#readme "Support for project indexing, manifesting, along with file watching") are the only [Javascript](https://developer.mozilla.org/en-US/docs/Web/JavaScript) files needed to run the project. The [trvc](https://github.com/travetto/travetto/tree/main/module/compiler/bin/trvc.js#L20) entry point will compile `@travetto/compiler/support/*` files as the set that is used at startup. These files are also accessible to the compiler as they get re-compiled after the fact.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/compiler",
3
- "version": "5.0.17",
3
+ "version": "5.0.18",
4
4
  "description": "The compiler infrastructure for the Travetto framework",
5
5
  "keywords": [
6
6
  "compiler",
@@ -30,11 +30,11 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@parcel/watcher": "^2.5.0",
33
- "@travetto/manifest": "^5.0.10",
34
- "@travetto/transformer": "^5.0.11"
33
+ "@travetto/manifest": "^5.0.11",
34
+ "@travetto/transformer": "^5.0.12"
35
35
  },
36
36
  "peerDependencies": {
37
- "@travetto/cli": "^5.0.17"
37
+ "@travetto/cli": "^5.0.18"
38
38
  },
39
39
  "peerDependenciesMeta": {
40
40
  "@travetto/cli": {
package/src/compiler.ts CHANGED
@@ -69,7 +69,7 @@ export class Compiler {
69
69
  process.exitCode = 1;
70
70
  if (err) {
71
71
  EventUtil.sendEvent('log', { level: 'error', message: err.toString(), time: Date.now() });
72
- log.error('Shutting down due to failure', err.message);
72
+ log.error('Shutting down due to failure', err.stack);
73
73
  }
74
74
  break;
75
75
  }
package/src/watch.ts CHANGED
@@ -61,7 +61,7 @@ export class CompilerWatcher {
61
61
  const mod = entry?.module ?? this.#state.manifestIndex.findModuleForArbitraryFile(file);
62
62
  if (mod && action === 'create' && !entry) {
63
63
  const modRoot = mod.sourceFolder || this.#root;
64
- const moduleFile = file.includes(modRoot) ? file.split(`${modRoot}/`)[1] : file;
64
+ const moduleFile = file.includes(`${modRoot}/`) ? file.split(`${modRoot}/`)[1] : file;
65
65
  entry = this.#state.registerInput(mod, moduleFile);
66
66
  }
67
67
  return { entry, file: entry?.sourceFile ?? file, action };
package/support/log.ts CHANGED
@@ -69,7 +69,6 @@ export class Logger implements LogConfig, LogShape {
69
69
  error(message: string, ...args: unknown[]): void { return this.render({ level: 'error', message, args }); }
70
70
  }
71
71
 
72
-
73
72
  class $RootLogger extends Logger {
74
73
  #logProgress?: boolean;
75
74