Skip to content

Commit

Permalink
Merge pull request #5 from regseb/patch-1
Browse files Browse the repository at this point in the history
fix: Use relative path
  • Loading branch information
Vinyzu authored Nov 19, 2024
2 parents f841dbb + 200fb32 commit c46df34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions patchright_nodejs_rebranding.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ fs.rename("packages/playwright-core", "packages/patchright-core", (err) => {
fs.rename("packages/playwright", "packages/patchright", (err) => {
// Write the Projects README to the README which is used in the release
fs.readFile("../README.md", "utf8", (err, data) => {
fs.writeFileSync("/packages/patchright/README.md", data, "utf8", (err) => {});
fs.writeFileSync("packages/patchright/README.md", data, "utf8", (err) => {});
});
fs.writeFileSync("/packages/patchright-core/README.md", "# patchright-core\n\nThis package contains the no-browser flavor of [Patchright-NodeJS](https://github.com/Kaliiiiiiiiii-Vinyzu/patchright-nodejs).", "utf8", (err) => {});
fs.writeFileSync("packages/patchright-core/README.md", "# patchright-core\n\nThis package contains the no-browser flavor of [Patchright-NodeJS](https://github.com/Kaliiiiiiiiii-Vinyzu/patchright-nodejs).", "utf8", (err) => {});

// Package.Json Files
// playwright-core/package.json
Expand Down Expand Up @@ -155,6 +155,6 @@ fs.rename("packages/playwright-core", "packages/patchright-core", (err) => {
});

// Usage example: pass the directory path as an argument
renameImportsAndExportsInDirectory("./packages/patchright");
renameImportsAndExportsInDirectory("packages/patchright");
})
})

0 comments on commit c46df34

Please sign in to comment.