Skip to content

fix create build paths #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix create build paths
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
  • Loading branch information
ShMcK committed Jun 2, 2020
commit e13ed55f2b1d6ec7a0fa434d61af943b8f00233f
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coderoad/cli",
"version": "0.1.2",
"version": "0.1.3",
"description": "A CLI to build the configuration file for Coderoad Tutorials",
"keywords": [
"coderoad",
Expand Down
1 change: 0 additions & 1 deletion src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { parse } from "./utils/parse";
import { getArg } from "./utils/args";
import { getCommits, CommitLogObject } from "./utils/commits";
import { validateSchema } from "./utils/validate";
import { build as help } from "./help";
import * as T from "../typings/tutorial";

const write = util.promisify(fs.writeFile);
Expand Down
4 changes: 1 addition & 3 deletions src/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import ncp from "ncp";
import * as path from "path";
import { promisify } from "util";
import { getArg } from "./utils/args";
import { create as help } from "./help";

const copy = promisify(ncp);

Expand Down Expand Up @@ -62,9 +61,8 @@ async function create(args: string[]): Promise<void> {

// TODO: copy master yaml
const pathToYaml = path.join(templateDirectory, `${lang}-${testRunner}`);
const targetYamlPath = path.join(localPath, "coderoad.yaml");
try {
await copy(pathToYaml, targetYamlPath, {
await copy(pathToYaml, localPath, {
clobber: false,
});
} catch (e) {
Expand Down