Skip to content

Commit 3cca3c3

Browse files
authored
chore: make pnpm prettier windows compatible (electron-userland#8668)
1 parent a1ee041 commit 3cca3c3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"lint-staged": "lint-staged",
1717
"lint-deps": "node ./test/out/helpers/checkDeps.js",
1818
"pretest": "pnpm lint-deps && pnpm lint",
19-
"prettier": "prettier 'packages/**/*.{ts, js}' 'test/src/**/*.ts' --write",
19+
"prettier": "prettier 'packages/**/*.{ts,js}' test/src/**/*.ts --write",
2020
"///": "Please see https://github.com/electron-userland/electron-builder/blob/master/CONTRIBUTING.md#run-test-using-cli how to run particular test instead full (and very slow) run",
2121
"test": "node ./test/out/helpers/runTests.js skipArtifactPublisher",
2222
"test-all": "pnpm compile && pnpm pretest && pnpm ci:test",

test/src/globTest.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -110,22 +110,22 @@ test.ifNotWindows(
110110
)
111111
)
112112

113-
test.ifNotWindows(
114-
"symlinks everywhere w/ static framework", () =>
115-
assertPack("test-app-symlink-framework",
113+
test.ifNotWindows("symlinks everywhere w/ static framework", () =>
114+
assertPack(
115+
"test-app-symlink-framework",
116116
{
117117
targets: Platform.LINUX.createTarget(DIR_TARGET),
118118
config: {
119-
files: ["!hello-world"]
120-
}
119+
files: ["!hello-world"],
120+
},
121121
},
122122
{
123123
isInstallDepsBefore: true,
124124
projectDirCreated: async projectDir => {
125125
await modifyPackageJson(projectDir, data => {
126126
data.dependencies = {
127127
debug: "4.1.1",
128-
...data.dependencies
128+
...data.dependencies,
129129
}
130130
})
131131
return fs.symlink(path.join(projectDir, "index.js"), path.join(projectDir, "foo.js"))

0 commit comments

Comments
 (0)