Comparing version 0.2.15 to 0.2.16
@@ -14,2 +14,3 @@ import { execSync } from "child_process"; | ||
import prettierignoreTXT from "../configs/prettierignoreTXT.js"; | ||
import aocrunnerJSON from "../configs/aocrunnerJSON.js"; | ||
const dirname = path.dirname(fileURLToPath(import.meta.url)); | ||
@@ -30,2 +31,3 @@ const init = async () => { | ||
save(dir, ".prettierignore", prettierignoreTXT(setup)); | ||
save(dir, ".aocrunner.json", aocrunnerJSON(setup)); | ||
if (setup.language === "ts") { | ||
@@ -32,0 +34,0 @@ save(dir, "tsconfig.json", tsconfigJSON(setup)); |
@@ -32,3 +32,3 @@ var __defProp = Object.defineProperty; | ||
"@types/node": "^16.11.6", | ||
aocrunner: "^0.2.15" | ||
aocrunner: "^0.2.16" | ||
}, | ||
@@ -35,0 +35,0 @@ dependencies: {}, |
@@ -25,3 +25,3 @@ import fs from "fs"; | ||
const t1 = process.hrtime.bigint(); | ||
const time = (Number(t1 - t0) / 1e6).toFixed(3); | ||
const time = (Number(t1 - t0) / 1e6).toFixed(2); | ||
console.log(`Part 1 (in ${time}ms):`); | ||
@@ -54,4 +54,3 @@ console.dir(result); | ||
} | ||
inputFile = path.join(...dir, "input.txt"); | ||
console.log(inputFile); | ||
inputFile = path.join(dir.join(path.sep), "input.txt"); | ||
} | ||
@@ -58,0 +57,0 @@ if (!fs.existsSync(inputFile)) { |
{ | ||
"name": "aocrunner", | ||
"version": "0.2.15", | ||
"version": "0.2.16", | ||
"description": "Advent of Code runner", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -14,2 +14,3 @@ import { execSync } from "child_process" | ||
import prettierignoreTXT from "../configs/prettierignoreTXT.js" | ||
import aocrunnerJSON from "../configs/aocrunnerJSON.js" | ||
@@ -39,2 +40,3 @@ import type { Setup } from "../types/common" | ||
save(dir, ".prettierignore", prettierignoreTXT(setup)) | ||
save(dir, ".aocrunner.json", aocrunnerJSON(setup)) | ||
@@ -41,0 +43,0 @@ if (setup.language === "ts") { |
@@ -20,3 +20,3 @@ import type { Setup } from "../types/common" | ||
"@types/node": "^16.11.6", | ||
aocrunner: "^0.2.15", | ||
aocrunner: "^0.2.16", | ||
}, | ||
@@ -23,0 +23,0 @@ dependencies: {}, |
@@ -42,3 +42,3 @@ import fs from "fs" | ||
const t1 = process.hrtime.bigint() | ||
const time = (Number(t1 - t0) / 1e6).toFixed(3) | ||
const time = (Number(t1 - t0) / 1e6).toFixed(2) | ||
@@ -80,4 +80,3 @@ console.log(`Part 1 (in ${time}ms):`) | ||
inputFile = path.join(...dir, "input.txt") | ||
console.log(inputFile) | ||
inputFile = path.join(dir.join(path.sep), "input.txt") | ||
} | ||
@@ -84,0 +83,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
60674
1243