@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 +0 -0
- package/dist/utils/npm-utils.js +3 -1
- package/package.json +1 -1
- package/src/utils/npm-utils.ts +3 -1
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/utils/npm-utils.js
CHANGED
|
@@ -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
package/src/utils/npm-utils.ts
CHANGED
|
@@ -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
|
|