pinokiod 3.3.0 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ class Playwright {
6
6
  let p = this.kernel.path("bin/playwright")
7
7
  await rimraf(p)
8
8
  await fs.promises.mkdir(p, { recursive: true }).catch((e) => { })
9
- await this.kernel.bin.exec({
9
+ const cmd = {
10
10
  message: [
11
11
  "npm init -y playwright@latest -- --lang js --quiet --install-deps",
12
12
  //"npm install npm corepack playwright@1.49.1 --loglevel verbose",
@@ -22,7 +22,11 @@ class Playwright {
22
22
  env: {
23
23
  PLAYWRIGHT_BROWSERS_PATH: this.kernel.bin.path("playwright/browsers")
24
24
  }
25
- }, ondata)
25
+ }
26
+ if (this.kernel.platform === "linux") {
27
+ cmd.sudo = true
28
+ }
29
+ await this.kernel.bin.exec(cmd, ondata)
26
30
  console.log("INSTALL FINISHED")
27
31
  let pwpath = this.kernel.bin.path("playwright/js/node_modules/playwright")
28
32
  this.kernel.playwright = (await this.kernel.loader.load(pwpath)).resolved
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {