Skip to content

Commit

Permalink
fix: chmod ug+x .husky/pre-commit after writing structure
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Aug 29, 2023
1 parent 5538725 commit 00489b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/steps/writing/writeStructure.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { $ } from "execa";

import { Options } from "../../shared/types.js";
import { createStructure } from "./creation/index.js";
import { writeStructureWorker } from "./writeStructureWorker.js";

export async function writeStructure(options: Options) {
await writeStructureWorker(await createStructure(options), ".");

// https://github.com/JoshuaKGoldberg/template-typescript-node-package/issues/718
await $`chmod ug+x .husky/pre-commit`;
}

0 comments on commit 00489b2

Please sign in to comment.