Skip to content

Commit 2a801c1

Browse files
committed
use explicit project definition.
1 parent 127279f commit 2a801c1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pkgm.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ async function shim(args: string[], basePath: string) {
212212
for await (const entry of Deno.readDir(bin_prefix)) {
213213
if (!entry.isFile && !entry.isSymlink) continue;
214214
const name = entry.name;
215-
const shim = `#!/usr/bin/env -S pkgx --shebang --quiet ${name}`;
215+
const shim =
216+
`#!/usr/bin/env -S pkgx +${pkg.project}=${pkg.version} --shebang --quiet -- ${name}`;
216217

217218
if (existsSync(join(basePath, "bin", name))) {
218219
await Deno.remove(join(basePath, "bin", name));

0 commit comments

Comments
 (0)