@plasmicapp/cli 0.1.185 → 0.1.186

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/dist/index.js CHANGED
File without changes
@@ -155,7 +155,9 @@ function findInstalledPackageJsonFile(context, pkg) {
155
155
  const rootDir = packageJsonPath
156
156
  ? path_1.default.dirname(packageJsonPath)
157
157
  : context.rootDir;
158
- const files = fast_glob_1.default.sync(`${rootDir}/**/node_modules/${pkg}/package.json`);
158
+ const files = fast_glob_1.default.sync(`${rootDir}/**/node_modules/${pkg}/package.json`, {
159
+ ignore: [`**/node_modules/**/node_modules/**`],
160
+ });
159
161
  return files.length > 0 ? files[0] : undefined;
160
162
  }
161
163
  function parsePackageJson(path) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicapp/cli",
3
- "version": "0.1.185",
3
+ "version": "0.1.186",
4
4
  "description": "plasmic cli for syncing local code with Plasmic designs",
5
5
  "engines": {
6
6
  "node": ">=12"
@@ -169,7 +169,9 @@ function findInstalledPackageJsonFile(context: PlasmicContext, pkg: string) {
169
169
  const rootDir = packageJsonPath
170
170
  ? path.dirname(packageJsonPath)
171
171
  : context.rootDir;
172
- const files = glob.sync(`${rootDir}/**/node_modules/${pkg}/package.json`);
172
+ const files = glob.sync(`${rootDir}/**/node_modules/${pkg}/package.json`, {
173
+ ignore: [`**/node_modules/**/node_modules/**`],
174
+ });
173
175
  return files.length > 0 ? files[0] : undefined;
174
176
  }
175
177