Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbfed02 commit 766ab1dCopy full SHA for 766ab1d
tests/integration/pack-packages.ts
@@ -30,10 +30,12 @@ const tarFolder = tmp.dirSync({
30
const tseslintPackages: PackageJSON['devDependencies'] = {};
31
for (const pkg of PACKAGES) {
32
const packageDir = path.join(PACKAGES_DIR, pkg);
33
- const packageJson: PackageJSON = require(path.join(
34
- packageDir,
35
- 'package.json',
36
- ));
+ const packagePath = path.join(packageDir, 'package.json');
+ if (!fs.existsSync(packagePath)) {
+ continue;
+ }
37
+
38
+ const packageJson = require(packagePath) as PackageJSON;
39
if (packageJson.private === true) {
40
continue;
41
}
0 commit comments