@travetto/compiler 5.0.12 → 5.0.13
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 +1 -1
- package/bin/manifest-context.mjs +3 -3
- package/package.json +4 -4
package/bin/common.js
CHANGED
|
@@ -61,7 +61,7 @@ async function getEntry() {
|
|
|
61
61
|
const { getManifestContext } = await import(manifestJs);
|
|
62
62
|
|
|
63
63
|
/** @type {Ctx} */
|
|
64
|
-
const ctx = getManifestContext(
|
|
64
|
+
const ctx = getManifestContext();
|
|
65
65
|
const target = getTarget.bind(null, ctx);
|
|
66
66
|
|
|
67
67
|
// Setup Tsconfig
|
package/bin/manifest-context.mjs
CHANGED
|
@@ -21,13 +21,13 @@ function findPackage(base, pred) {
|
|
|
21
21
|
}
|
|
22
22
|
return pkg;
|
|
23
23
|
}
|
|
24
|
-
export function getManifestContext(root
|
|
24
|
+
export function getManifestContext(root = process.cwd()) {
|
|
25
25
|
const workspace = findPackage(root, pkg => !!pkg?.workspaces || !!pkg?.travetto?.build?.isolated);
|
|
26
26
|
const build = workspace.travetto?.build ?? {};
|
|
27
27
|
const resolve = createRequire(path.resolve(workspace.path, 'node_modules')).resolve.bind(null);
|
|
28
28
|
const wsPrefix = `${workspace.path}/`;
|
|
29
|
-
const modPkg =
|
|
30
|
-
readPackage(resolve(`${
|
|
29
|
+
const modPkg = (!!workspace.workspaces && process.env.TRV_MODULE) ?
|
|
30
|
+
readPackage(resolve(`${process.env.TRV_MODULE}/package.json`)) :
|
|
31
31
|
findPackage(root, pkg => !!pkg) ?? workspace;
|
|
32
32
|
return {
|
|
33
33
|
workspace: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/compiler",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.13",
|
|
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.
|
|
37
|
-
"@travetto/transformer": "^5.0.
|
|
36
|
+
"@travetto/manifest": "^5.0.7",
|
|
37
|
+
"@travetto/transformer": "^5.0.8",
|
|
38
38
|
"@types/node": "^22.7.4"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@travetto/cli": "^5.0.
|
|
41
|
+
"@travetto/cli": "^5.0.10"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"@travetto/cli": {
|