Skip to content

Commit

Permalink
[ci] yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and actions-user committed Feb 22, 2021
1 parent d3b6f76 commit c0501f7
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 15 deletions.
6 changes: 2 additions & 4 deletions esinstall/src/entrypoints.ts
Expand Up @@ -189,7 +189,7 @@ export function resolveEntrypoint(

// if, no export map and dep points directly to a file within a package, return that reference.
if (path.extname(dep) && !validatePackageName(dep).validForNewPackages) {
return realpathSync.native(resolve.sync(dep, { basedir: cwd }));
return realpathSync.native(resolve.sync(dep, {basedir: cwd}));
}

// Otherwise, resolve directly to the dep specifier. Note that this supports both
Expand Down Expand Up @@ -231,9 +231,7 @@ export function resolveEntrypoint(
throw new Error(`"${dep}" has unexpected entrypoint: ${JSON.stringify(foundEntrypoint)}.`);
}

return realpathSync.native(
resolve.sync(path.join(depManifestLoc || '', '..', foundEntrypoint)),
);
return realpathSync.native(resolve.sync(path.join(depManifestLoc || '', '..', foundEntrypoint)));
}

const picoMatchGlobalOptions = Object.freeze({
Expand Down
2 changes: 1 addition & 1 deletion esinstall/src/util.ts
Expand Up @@ -51,7 +51,7 @@ export function resolveDependencyManifest(
// resolve doesn't care about export map rules, so should find a package.json
// if one does exist.
const pkgPth = resolve.sync(`${dep}/package.json`, {
basedir: cwd
basedir: cwd,
});

const depManifest = realpathSync.native(pkgPth);
Expand Down
Expand Up @@ -8,7 +8,7 @@ describe('Package with only exports and no main', () => {

await execa('yarn', ['--silent', 'run', 'testinstall'], {
cwd,
reject: true
reject: true,
});
});
});
});
2 changes: 1 addition & 1 deletion test/esinstall/exports-only-no-main/mod.js
@@ -1 +1 @@
import "exports-only-no-main/mod";
import 'exports-only-no-main/mod';
2 changes: 1 addition & 1 deletion test/esinstall/exports-only-no-main/package.json
Expand Up @@ -12,4 +12,4 @@
"devDependencies": {
"snowpack": "^3.0.11"
}
}
}
1 change: 0 additions & 1 deletion test/esinstall/exports-only-no-main/snowpack.config.js
@@ -1,2 +1 @@

module.exports = {};
4 changes: 2 additions & 2 deletions test/esinstall/exports-only/exports-only.test.js
Expand Up @@ -8,7 +8,7 @@ describe('Package with only exports', () => {

await execa('yarn', ['--silent', 'run', 'testinstall'], {
cwd,
reject: true
reject: true,
});
});
});
});
2 changes: 1 addition & 1 deletion test/esinstall/exports-only/mod.js
@@ -1 +1 @@
import "exports-only";
import 'exports-only';
2 changes: 1 addition & 1 deletion test/esinstall/exports-only/package.json
Expand Up @@ -12,4 +12,4 @@
"devDependencies": {
"snowpack": "^3.0.11"
}
}
}
1 change: 0 additions & 1 deletion test/esinstall/exports-only/snowpack.config.js
@@ -1,2 +1 @@

module.exports = {};

1 comment on commit c0501f7

@vercel
Copy link

@vercel vercel bot commented on c0501f7 Feb 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.