mirror of
https://github.com/denoland/deno.git
synced 2024-12-30 02:59:11 -05:00
7a990d9d42
Fixes https://github.com/denoland/deno/issues/25533. Fixes https://github.com/denoland/deno/issues/25396. Previously we only supported it on `deno install` and `deno cache`, which is annoying if you're using `nodeModulesDir: auto`. Also changes from printing output of lifecycle scripts directly to capturing the output and only printing it on error.
5 lines
221 B
JavaScript
5 lines
221 B
JavaScript
import { sayHello } from "./index.js";
|
|
console.log(sayHello());
|
|
import path from "node:path";
|
|
import fs from "node:fs";
|
|
fs.writeSync(fs.openSync(path.join(process.env.INIT_CWD, "say-hello-output.txt"), "w"), sayHello());
|