@travetto/manifest 7.0.1 → 7.0.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/context.ts +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/manifest",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "type": "module",
5
5
  "description": "Support for project indexing, manifesting, along with file watching",
6
6
  "keywords": [
package/src/context.ts CHANGED
@@ -49,8 +49,9 @@ export function getManifestContext(root: string = process.cwd()): ManifestContex
49
49
  const build = workspace.travetto?.build ?? {};
50
50
  const resolve = createRequire(path.resolve(workspace.path, 'node_modules')).resolve.bind(null);
51
51
  const wsPrefix = `${workspace.path}/`;
52
- const modPkg = (!!workspace.workspaces && process.env.TRV_MODULE) ?
53
- readPackage(resolve(`${process.env.TRV_MODULE}/package.json`)) :
52
+ const moduleName = process.env.TRV_MODULE === workspace.name ? workspace.path : process.env.TRV_MODULE;
53
+ const modPkg = (!!workspace.workspaces && moduleName) ?
54
+ readPackage(resolve(`${moduleName}/package.json`)) :
54
55
  findPackage(root, pkg => !!pkg) ?? workspace;
55
56
 
56
57
  if (workspace.type !== 'module') {