forked from mtusi2026/mtusi2026lab7
Prepare verified laboratory 7 implementation and evidence
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { run, root, safeFailure } from "./runtime";
|
||||
try {
|
||||
await run([
|
||||
process.execPath,
|
||||
"add",
|
||||
"--dev",
|
||||
"--ignore-scripts",
|
||||
"@types/bun",
|
||||
]);
|
||||
const pkg = await Bun.file(root + "/package.json").json();
|
||||
console.log(
|
||||
JSON.stringify({
|
||||
installed: "development type declarations only",
|
||||
types_bun: pkg.devDependencies?.["@types/bun"],
|
||||
}),
|
||||
);
|
||||
} catch (e) {
|
||||
safeFailure(e);
|
||||
}
|
||||
Reference in New Issue
Block a user