@travetto/compiler 5.0.13 → 5.0.14

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/bin/common.js CHANGED
@@ -85,6 +85,9 @@ async function getEntry() {
85
85
 
86
86
  // Load
87
87
  try {
88
+ // @ts-ignore
89
+ try { await import('node:module').then(v => v.enableCompileCache()); } catch { }
90
+
88
91
  /** @type {import('../support/entry.trvc')} */
89
92
  const res = await import(target('support/entry.trvc.ts').dest);
90
93
  return await res.main(ctx);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/compiler",
3
- "version": "5.0.13",
3
+ "version": "5.0.14",
4
4
  "description": "The compiler infrastructure for the Travetto framework",
5
5
  "keywords": [
6
6
  "compiler",
@@ -33,12 +33,12 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@parcel/watcher": "^2.4.1",
36
- "@travetto/manifest": "^5.0.7",
37
- "@travetto/transformer": "^5.0.8",
38
- "@types/node": "^22.7.4"
36
+ "@travetto/manifest": "^5.0.8",
37
+ "@travetto/transformer": "^5.0.9",
38
+ "@types/node": "^22.7.7"
39
39
  },
40
40
  "peerDependencies": {
41
- "@travetto/cli": "^5.0.10"
41
+ "@travetto/cli": "^5.0.11"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "@travetto/cli": {
@@ -31,7 +31,8 @@ export class TypescriptUtil {
31
31
  sourceRoot: ctx.workspace.path,
32
32
  rootDir: ctx.workspace.path,
33
33
  outDir: CommonUtil.resolveWorkspace(ctx),
34
- module: ctx.workspace.type === 'commonjs' ? ts.ModuleKind.CommonJS : ts.ModuleKind.ESNext,
34
+ moduleResolution: (ctx.workspace.type === 'commonjs' ? ts.ModuleResolutionKind.Node16 : ts.ModuleResolutionKind.Bundler),
35
+ module: ctx.workspace.type === 'commonjs' ? ts.ModuleKind.Node16 : ts.ModuleKind.ESNext,
35
36
  };
36
37
  }
37
38
  return OPT_CACHE[ctx.workspace.path];