Skip to content

Commit 5474c62

Browse files
Merge pull request #1732 from glimmerjs/fix-post-install
Fix bench post-install
2 parents 426b32c + 1e2cace commit 5474c62

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

bin/bench-packages.mts

+5-1
Original file line numberDiff line numberDiff line change
@@ -220,5 +220,9 @@ if (process.argv[1] === import.meta.filename) {
220220
roots: { benchmark: BENCHMARK_ROOT, workspace: WORKSPACE_ROOT },
221221
format: true,
222222
});
223-
await $({ cwd: BENCHMARK_ROOT, verbose: true })`pnpm install --ignore-workspace`;
223+
await $({
224+
cwd: BENCHMARK_ROOT,
225+
verbose: true,
226+
env: { CI: 'false' },
227+
})`pnpm install --ignore-workspace --no-lockfile`;
224228
}

bin/post-install.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
if [ "$CI" != "" ]; then
4+
echo "We don't run postinstall in CI"
5+
6+
exit 0
7+
fi
8+
9+
node --disable-warning=ExperimentalWarning --experimental-strip-types ./bin/bench-packages.mts
10+

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"link:all": "esyes ./bin/link-all.mts",
2424
"lint:fix": "turbo test:lint -- --fix && prettier -w .",
2525
"lint:format": "prettier -c .",
26-
"postinstall": "node --disable-warning=ExperimentalWarning --experimental-strip-types ./bin/bench-packages.mts",
26+
"postinstall": "./bin/post-install.sh",
2727
"repo:lint:all": "turbo run lint:all",
2828
"repo:lint:files": "turbo run //#test:lint",
2929
"repo:lint:fix": "turbo run test:lint -- --fix && prettier -w .",

0 commit comments

Comments
 (0)