Skip to content

Commit

Permalink
ci: update pm
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh committed Apr 25, 2023
1 parent d3726d4 commit e5df93f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
18 changes: 12 additions & 6 deletions __scripts/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,17 @@ for (const example of examples) {
}

console.log(`馃摜\u00A0Installing ${example} with "${pm}"`);
const installResult = await execa(
pm,
["install", "--silent", "--legacy-peer-deps"],
options
);
/** @type {import('execa').ExecaChildProcess<string>} */
let installResult;
if (pm === "npm") {
installResult = await execa(
pm,
["--silent", "--legacy-peer-deps"],
options
);
} else {
installResult = await execa(pm, ["--silent"], options);
}

if (installResult.exitCode) {
console.error(installResult.stderr);
Expand Down Expand Up @@ -120,7 +126,7 @@ for (const example of examples) {
throw new Error(`馃毃\u00A0Error building ${example}`);
}

console.log(`馃暤锔廫u00A0\u00A0Typechecking ${example}`);
console.log(`馃暤锔廫u00A0Typechecking ${example}`);
const typecheckResult = await execa(pm, ["run", "typecheck"], options);

if (typecheckResult.exitCode) {
Expand Down
1 change: 0 additions & 1 deletion _official-tutorial/app/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
////////////////////////////////////////////////////////////////////////////////

import { matchSorter } from "match-sorter";
// @ts-ignore - no types, but it's a tiny function
import sortBy from "sort-by";
import invariant from "tiny-invariant";

Expand Down
1 change: 1 addition & 0 deletions _official-tutorial/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@remix-run/eslint-config": "~1.14.2",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"@types/sort-by": "^1.2.0",
"eslint": "^8.27.0",
"typescript": "^4.8.4"
},
Expand Down
2 changes: 1 addition & 1 deletion basic/app/routes/demos/params/$id.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const loader = async ({ params }: LoaderArgs) => {
// Sometimes your code just blows up and you never anticipated it. Remix will
// automatically catch it and send the UI to the error boundary.
if (params.id === "kaboom") {
// @ts-expect-error
// @ts-expect-error - this is a deliberate error to test the error boundary
lol();
}

Expand Down

0 comments on commit e5df93f

Please sign in to comment.