Skip to content

Commit

Permalink
docs: update hooks examples [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
getlarge committed Mar 3, 2023
1 parent 0c9af37 commit 9cc4ecf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ async function refreshPackageJson(implicitDeps = [], skipDev = false) {
const options = {
projectRoot: data.root,
root: process.cwd(),
externalDependencies: 'all',
};
const packageJson = createPackageJson(projectName, projectGraph, options);
for (const dep of implicitDeps) {
Expand All @@ -314,9 +313,7 @@ async function refreshPackageJson(implicitDeps = [], skipDev = false) {
// packageJson.dependencies = sortObjectByKeys(packageJson.dependencies);
// packageJson.devDependencies = sortObjectByKeys(packageJson.devDependencies);
const packageJsonPath = `apps/${projectName}/package.json`;
if (existsSync(packageJsonPath)) {
unlinkSync(packageJsonPath);
}
existsSync(packageJsonPath) && unlinkSync(packageJsonPath);
writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2));

// generate and store lock file
Expand Down

0 comments on commit 9cc4ecf

Please sign in to comment.