From 3cd37d19c0dd278aabbab5712a2376919b7343e1 Mon Sep 17 00:00:00 2001 From: cheetiedotpy <77159113+g1mmethemoney@users.noreply.github.com> Date: Sun, 28 Jan 2024 23:39:53 +0300 Subject: [PATCH] include prepack in scripts --- src/commands/init.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/init.ts b/src/commands/init.ts index cb6d6b6..afb9645 100644 --- a/src/commands/init.ts +++ b/src/commands/init.ts @@ -236,6 +236,7 @@ async function init(argv: yargs.Arguments, initMode: InitMode) { pkgJson.files = ["out", "!**/*.tsbuildinfo"]; pkgJson.publishConfig = { access: "public" }; pkgJson.scripts.prepublishOnly = selectedPackageManager.build; + pkgJson.scripts.prepack = selectedPackageManager.build; } await fs.outputFile(paths.packageJson, JSON.stringify(pkgJson, null, 2)); });