@travetto/compiler 3.0.0-rc.33 → 3.0.0-rc.34
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 +2 -2
- package/bin/trv.js +4 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Beyond the [Typescript](https://typescriptlang.org) compiler functionality, the
|
|
|
23
23
|
|
|
24
24
|
## CLI
|
|
25
25
|
|
|
26
|
-
The cli, [trv](https://github.com/travetto/travetto/tree/main/module/compiler/bin/trv.js#
|
|
26
|
+
The cli, [trv](https://github.com/travetto/travetto/tree/main/module/compiler/bin/trv.js#L60) is a compilation aware entry point, that 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, always builds the entire project. With the efficient caching behavior, this leads to generally a minimal overhead but allows for centralization of all operations.
|
|
27
27
|
|
|
28
28
|
The CLI supports the following operations:
|
|
29
29
|
|
|
@@ -67,7 +67,7 @@ The compiler will move through the following phases on a given compilation execu
|
|
|
67
67
|
|
|
68
68
|
### Bootstrapping
|
|
69
69
|
|
|
70
|
-
Given that the framework is distributed as [Typescript](https://typescriptlang.org) only files, there is a bootstrapping problem that needs to be mitigated. The [trv](https://github.com/travetto/travetto/tree/main/module/compiler/bin/trv.js#
|
|
70
|
+
Given that the framework is distributed as [Typescript](https://typescriptlang.org) only files, there is a bootstrapping problem that needs to be mitigated. The [trv](https://github.com/travetto/travetto/tree/main/module/compiler/bin/trv.js#L60) 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 [trv](https://github.com/travetto/travetto/tree/main/module/compiler/bin/trv.js#L60) 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.
|
|
71
71
|
|
|
72
72
|
### Lock Management
|
|
73
73
|
|
package/bin/trv.js
CHANGED
|
@@ -16,6 +16,10 @@ const COMPILER_FILES = [...['launcher', 'transpile', 'lock', 'log', 'lock-pinger
|
|
|
16
16
|
* @return {Promise<import('@travetto/compiler/support/launcher').launch>}
|
|
17
17
|
*/
|
|
18
18
|
const $getLauncher = async (ctx) => {
|
|
19
|
+
const tsconfigFile = path.resolve(ctx.workspacePath, 'tsconfig.json');
|
|
20
|
+
if (!(await fs.stat(tsconfigFile).catch(() => undefined))) {
|
|
21
|
+
await fs.writeFile(tsconfigFile, JSON.stringify({ extends: '@travetto/compiler/tsconfig.trv.json' }), 'utf8');
|
|
22
|
+
}
|
|
19
23
|
const compPkg = createRequire(path.resolve(ctx.workspacePath, 'node_modules')).resolve('@travetto/compiler/package.json');
|
|
20
24
|
const files = [];
|
|
21
25
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/compiler",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.34",
|
|
4
4
|
"description": "The compiler infrastructure for the Travetto framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"compiler",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@parcel/watcher": "^2.1.0",
|
|
34
|
-
"@travetto/manifest": "^3.0.0-rc.
|
|
34
|
+
"@travetto/manifest": "^3.0.0-rc.19",
|
|
35
35
|
"@travetto/terminal": "^3.0.0-rc.11",
|
|
36
|
-
"@travetto/transformer": "^3.0.0-rc.
|
|
36
|
+
"@travetto/transformer": "^3.0.0-rc.23"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@travetto/cli": "^3.0.0-rc.
|
|
39
|
+
"@travetto/cli": "^3.0.0-rc.25"
|
|
40
40
|
},
|
|
41
41
|
"peerDependenciesMeta": {
|
|
42
42
|
"@travetto/cli": {
|