File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import * as readline from "readline"
2
2
import benchmark from "../benchmark"
3
3
import { save } from "../config"
4
4
import calibrate from "./calibrate"
5
- import { version } from "../../package.json"
6
5
7
6
const ask = ( rl , question ) =>
8
7
new Promise ( ( resolve ) => rl . question ( question , resolve ) )
@@ -26,7 +25,7 @@ const init = async () => {
26
25
rl . close ( )
27
26
28
27
save ( {
29
- version,
28
+ version : "1.0.0" ,
30
29
year : ( year ? year : yearData [ 0 ] ) as string ,
31
30
language : ( language || "unknown" ) as string ,
32
31
days : [ ] ,
Original file line number Diff line number Diff line change 1
1
const fs = require ( "fs" )
2
2
const path = require ( "path" )
3
- import { name } from "../../package.json"
4
3
5
4
type Day = {
6
5
day : number
@@ -18,7 +17,7 @@ type Data = {
18
17
days ?: Day [ ]
19
18
}
20
19
21
- const fileName = `${ name } .json`
20
+ const fileName = `aoctimer .json`
22
21
23
22
const configDir = process . cwd ( )
24
23
const configFile = path . join ( configDir , fileName )
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
3
"outDir" : " build" ,
4
+ "rootDir" : " src" ,
4
5
"target" : " ES2020" ,
5
6
"module" : " CommonJS" ,
6
7
"removeComments" : true ,
You can’t perform that action at this time.
0 commit comments