Skip to content

Commit

Permalink
Patchright Release [ReadMe]
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinyzu committed Nov 3, 2024
1 parent a0c7787 commit 8b219cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@
## Install it from NPM

```bash
# Run from your project's root directory
npm init patchright@latest
# Or create a new project
npm init patchright@latest new-project
# Install Patchright from NPM
npm i patchright
```

```bash
Expand Down
12 changes: 6 additions & 6 deletions patchright_nodejs_rebranding.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ function renameImportsAndExportsInDirectory(directoryPath) {
}


// Write the Projects README to the README which is used in the release
fs.readFile("../README.md", "utf8", (err, data) => {
console.log(data);
fs.writeFile("README.md", data, "utf8", (err) => {});
});

// Renaming the folders and using context managers to ensure they finished
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-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
fs.readFile("packages/patchright-core/package.json", "utf8", (err, data) => {
Expand Down

0 comments on commit 8b219cf

Please sign in to comment.