pkg-pr-new 0.0.40 → 0.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -2
- package/index.ts +7 -0
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -95,6 +95,11 @@ const main = defineCommand({
|
|
|
95
95
|
enum: ["npm", "bun", "pnpm", "yarn"],
|
|
96
96
|
default: "npm",
|
|
97
97
|
},
|
|
98
|
+
bin: {
|
|
99
|
+
type: "boolean",
|
|
100
|
+
description:
|
|
101
|
+
"Set to true if your package is a binary application and you would like to show an execute command instead of an install command.",
|
|
102
|
+
},
|
|
98
103
|
},
|
|
99
104
|
run: async ({ args }) => {
|
|
100
105
|
const paths =
|
|
@@ -126,6 +131,7 @@ const main = defineCommand({
|
|
|
126
131
|
const isPeerDepsEnabled = !!args.peerDeps;
|
|
127
132
|
const isOnlyTemplates = !!args["only-templates"];
|
|
128
133
|
|
|
134
|
+
const isBinaryApplication = !!args.binaryApplication;
|
|
129
135
|
const comment: Comment = args.comment as Comment;
|
|
130
136
|
const selectedPackageManager = args.packageManager as
|
|
131
137
|
| "npm"
|
|
@@ -485,6 +491,7 @@ const main = defineCommand({
|
|
|
485
491
|
"sb-key": key,
|
|
486
492
|
"sb-shasums": JSON.stringify(shasums),
|
|
487
493
|
"sb-run-id": GITHUB_RUN_ID,
|
|
494
|
+
"sb-bin": `${isBinaryApplication}`,
|
|
488
495
|
"sb-package-manager": selectedPackageManager,
|
|
489
496
|
"sb-only-templates": `${isOnlyTemplates}`,
|
|
490
497
|
},
|