@travetto/manifest 3.0.0-rc.8 → 3.0.0-rc.9

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/package.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/manifest",
3
- "version": "3.0.0-rc.8",
3
+ "version": "3.0.0-rc.9",
4
4
  "description": "Manifest support",
5
5
  "keywords": [
6
6
  "path",
package/src/package.ts CHANGED
@@ -171,7 +171,7 @@ export class PackageUtil {
171
171
  try {
172
172
  return JSON.parse(await fs.readFile(cache, 'utf8'));
173
173
  } catch {
174
- const text = execSync('npm query .workspace', { cwd: rootPath, encoding: 'utf8', env: {} });
174
+ const text = execSync('npm query .workspace', { cwd: rootPath, encoding: 'utf8', env: { PATH: process.env.PATH, NODE_PATH: process.env.NODE_PATH } });
175
175
  const res: { location: string, name: string }[] = JSON.parse(text);
176
176
  const out = this.#workspaces[rootPath] = res.map(d => ({ sourcePath: d.location, name: d.name }));
177
177
  await fs.writeFile(cache, JSON.stringify(out), 'utf8');