1
0
mirror of https://github.com/theoludwig/programming-challenges.git synced 2025-12-11 00:21:24 +01:00

chore: maintenance

This commit is contained in:
Divlo
2022-02-19 18:30:29 +01:00
parent bc1d34f126
commit 696de1580d
35 changed files with 3421 additions and 4107 deletions

View File

@@ -4,7 +4,7 @@ import fs from 'node:fs'
import { replaceInFile } from 'replace-in-file'
import date from 'date-and-time'
import { copyDirectory } from '../utils/copyDirectory'
import { copyDirectory } from '../utils/copyDirectory.js'
const TEMPLATE_PATH = path.join(__dirname, '..', '..', 'templates')
const TEMPLATE_DOCKER_PATH = path.join(TEMPLATE_PATH, 'docker')
@@ -87,7 +87,7 @@ class Template {
const { destination, githubUser, name } = options
await copyDirectory(TEMPLATE_CHALLENGE_PATH, destination)
await this.replaceInDestination({
name: name,
name,
description: this.getDescription(githubUser),
destination
})