@atomicsmash/init-testing 1.1.0-beta.0 → 1.1.0-beta.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.
package/dist/cli.js CHANGED
@@ -125,12 +125,21 @@ await Promise.all([
125
125
  type: "dev",
126
126
  })
127
127
  : false,
128
- ]).then((results) => {
128
+ ])
129
+ .then((results) => {
129
130
  if (results.some((result) => {
130
131
  return result.status === "fulfilled" && result.value === true;
131
132
  })) {
132
133
  packageManager.runCommands();
133
134
  }
135
+ return results[1].status === "fulfilled" && results[1].value === true;
136
+ })
137
+ .then((shouldInstallPlaywright) => {
138
+ if (shouldInstallPlaywright) {
139
+ // Run Playwright installer after package install
140
+ packageManager.commands.basic.push("npx playwright install");
141
+ packageManager.runCommands();
142
+ }
134
143
  }),
135
144
  Promise.allSettled(fileCopies).then((results) => {
136
145
  results.forEach((result) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atomicsmash/init-testing",
3
3
  "type": "module",
4
- "version": "1.1.0-beta.0",
4
+ "version": "1.1.0-beta.1",
5
5
  "description": "Allow us to easily add automated testing setup to any npm setup.",
6
6
  "keywords": [
7
7
  "atomic",