Comparing version 0.2.5 to 0.2.6
import "../chunk-JUWXSDKJ.js"; | ||
import { execSync } from "child_process"; | ||
import fs from "fs"; | ||
@@ -34,2 +35,4 @@ import path from "path"; | ||
copy(templatesDir, srcDir); | ||
const installCommand = setup.packageManager === "npm" ? "npm i" : setup.packageManager === "yarn" ? "yarn" : "pnpm install"; | ||
execSync(installCommand, { cwd: dir }); | ||
console.log("Done!"); | ||
@@ -36,0 +39,0 @@ }; |
@@ -25,3 +25,3 @@ import { | ||
"@types/node": "^16.11.6", | ||
aocrunner: "^0.2.4", | ||
aocrunner: "^0.2.6", | ||
nodemon: "^2.0.14", | ||
@@ -28,0 +28,0 @@ prettier: "^2.4.1" |
{ | ||
"name": "aocrunner", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "Advent of Code util", | ||
@@ -12,4 +12,3 @@ "bin": "lib/index.js", | ||
"format": "prettier -w src", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"postinstall": "node lib/actions/postinstall.js" | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
@@ -16,0 +15,0 @@ "keywords": [], |
@@ -27,3 +27,3 @@ import type { Setup } from "../types/common" | ||
"@types/node": "^16.11.6", | ||
aocrunner: "^0.2.5", | ||
aocrunner: "^0.2.6", | ||
nodemon: "^2.0.14", | ||
@@ -30,0 +30,0 @@ prettier: "^2.4.1", |
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
18761
666
0
2