@code4rena/skeleton
Advanced tools
Comparing version
@@ -17,2 +17,3 @@ "use strict"; | ||
} | ||
const hasBin = !!(actualPkg.bin || actualPkg.directories?.bin); | ||
const csBin = variables.dogfood ? "./bin/code-skeleton.ts" : "code-skeleton"; | ||
@@ -38,5 +39,12 @@ const skeleton = { | ||
posttest: "npm run lint", | ||
prepack: "tsc --project tsconfig.build.json", | ||
"skeleton:apply": `${csBin} apply`, | ||
"skeleton:verify": `${csBin} verify`, | ||
...(hasBin | ||
? { | ||
"update-shebang": "./scripts/update-shebang.ts", | ||
prepack: "tsc --project tsconfig.build.json && npm run update-shebang", | ||
} | ||
: { | ||
prepack: "tsc --project tsconfig.build.json", | ||
}), | ||
}, | ||
@@ -102,4 +110,7 @@ tap: { | ||
} | ||
if (hasBin) { | ||
skeleton["scripts/update-shebang.ts"] = (0, code_skeleton_1.copy)((0, node_path_1.join)(__dirname, "content", "update-shebang.ts")); | ||
} | ||
return skeleton; | ||
} | ||
exports.default = default_1; |
{ | ||
"name": "@code4rena/skeleton", | ||
"version": "1.0.11", | ||
"version": "1.1.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
17932
9.65%14
7.69%331
14.14%