Skip to content

Commit bb5500d

Browse files
committed
WIP
1 parent 7a6e6e8 commit bb5500d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/actions/init.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as readline from "readline"
22
import benchmark from "../benchmark"
33
import { save } from "../config"
44
import calibrate from "./calibrate"
5-
import { version } from "../../package.json"
65

76
const ask = (rl, question) =>
87
new Promise((resolve) => rl.question(question, resolve))
@@ -26,7 +25,7 @@ const init = async () => {
2625
rl.close()
2726

2827
save({
29-
version,
28+
version: "1.0.0",
3029
year: (year ? year : yearData[0]) as string,
3130
language: (language || "unknown") as string,
3231
days: [],

src/config/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const fs = require("fs")
22
const path = require("path")
3-
import { name } from "../../package.json"
43

54
type Day = {
65
day: number
@@ -18,7 +17,7 @@ type Data = {
1817
days?: Day[]
1918
}
2019

21-
const fileName = `${name}.json`
20+
const fileName = `aoctimer.json`
2221

2322
const configDir = process.cwd()
2423
const configFile = path.join(configDir, fileName)

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compilerOptions": {
33
"outDir": "build",
4+
"rootDir": "src",
45
"target": "ES2020",
56
"module": "CommonJS",
67
"removeComments": true,

0 commit comments

Comments
 (0)